{"type": "func", "start": 6443204464, "end": 6443204523, "name": "sub_1800B7F70", "pseudocode": "// \n// sub_1800B7F70 from 0x1800b7f70 to 0x1800b7fab (59 bytes)\n// \n// 2 xrefs:\n// > sub_1800D7EC0 @ 0x1800d8ab4\n// > <???> @ 0x1801fd254\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:53:59 +0000\n// \n\n_BYTE *__fastcall sub_1800B7F70(_BYTE *a1, int a2, char *a3, int a4)\n{\n  _BYTE *i; // rbx\n  int v6; // r8d\n\n  for ( i = a1; *a1; --a2 )\n  {\n    if ( !a2 )\n      break;\n    ++a1;\n  }\n  v6 = a4 + 1;\n  if ( a2 <= a4 + 1 )\n    v6 = a2;\n  sub_1800B7D20(a1, a3, v6);\n  return i;\n}", "assembly": "; \n; sub_1800B7F70 from 0x1800b7f70 to 0x1800b7fab (59 bytes)\n; \n; 2 xrefs:\n; > sub_1800D7EC0 @ 0x1800d8ab4\n; > <???> @ 0x1801fd254\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:53:59 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800b7f70\nsub     rsp, 20h                                                       ; +0x2, 0x1800b7f72\ncmp     byte ptr [rcx], 0                                              ; +0x6, 0x1800b7f76\nmov     r10, r8                                                        ; +0x9, 0x1800b7f79\nmov     rbx, rcx                                                       ; +0xc, 0x1800b7f7c\njz      short loc_1800B7F8F                                            ; +0xf, 0x1800b7f7f\ntest    edx, edx                                                       ; +0x11, 0x1800b7f81\njz      short loc_1800B7F8F                                            ; +0x13, 0x1800b7f83\ninc     rcx                                                            ; +0x15, 0x1800b7f85\ndec     edx                                                            ; +0x18, 0x1800b7f88\ncmp     byte ptr [rcx], 0                                              ; +0x1a, 0x1800b7f8a\njnz     short loc_1800B7F81                                            ; +0x1d, 0x1800b7f8d\nlea     r8d, [r9+1]                                                    ; +0x1f, 0x1800b7f8f\ncmp     edx, r8d                                                       ; +0x23, 0x1800b7f93\ncmovle  r8d, edx                                                       ; +0x26, 0x1800b7f96\nmov     rdx, r10                                                       ; +0x2a, 0x1800b7f9a\ncall    sub_1800B7D20                                                  ; +0x2d, 0x1800b7f9d\nmov     rax, rbx                                                       ; +0x32, 0x1800b7fa2\nadd     rsp, 20h                                                       ; +0x35, 0x1800b7fa5\npop     rbx                                                            ; +0x39, 0x1800b7fa9\nretn                                                                   ; +0x3a, 0x1800b7faa", "xrefs": ["sub_1800D7EC0 @ 0x1800d8ab4", "<???> @ 0x1801fd254"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}