{"type": "func", "start": 6443204720, "end": 6443204793, "name": "sub_1800B8070", "pseudocode": "// \n// sub_1800B8070 from 0x1800b8070 to 0x1800b80b9 (73 bytes)\n// \n// 2 xrefs:\n// > sub_1800FE610 @ 0x1800fe9b9\n// > <???> @ 0x1801fd260\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nchar *__fastcall sub_1800B8070(_BYTE *a1, int a2)\n{\n  _BYTE *i; // rax\n  int v3; // eax\n  char *v4; // r8\n\n  for ( i = a1; *i; ++i )\n    ;\n  v3 = (_DWORD)i - (_DWORD)a1;\n  v4 = &a1[v3 - 1];\n  if ( !v3 )\n    return nullptr;\n  while ( 1 )\n  {\n    --v3;\n    if ( *v4 == a2 )\n      break;\n    --v4;\n    if ( !v3 )\n      return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; sub_1800B8070 from 0x1800b8070 to 0x1800b80b9 (73 bytes)\n; \n; 2 xrefs:\n; > sub_1800FE610 @ 0x1800fe9b9\n; > <???> @ 0x1801fd260\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     byte ptr [rcx], 0                                              ; +0x0, 0x1800b8070\nmov     r9d, edx                                                       ; +0x3, 0x1800b8073\nmov     r8, rcx                                                        ; +0x6, 0x1800b8076\nmov     rax, rcx                                                       ; +0x9, 0x1800b8079\njz      short loc_1800B8088                                            ; +0xc, 0x1800b807c\nxchg    ax, ax                                                         ; +0xe, 0x1800b807e\ninc     rax                                                            ; +0x10, 0x1800b8080\ncmp     byte ptr [rax], 0                                              ; +0x13, 0x1800b8083\njnz     short loc_1800B8080                                            ; +0x16, 0x1800b8086\nsub     eax, r8d                                                       ; +0x18, 0x1800b8088\nlea     ecx, [rax-1]                                                   ; +0x1b, 0x1800b808b\nmovsxd  rdx, ecx                                                       ; +0x1e, 0x1800b808e\nadd     r8, rdx                                                        ; +0x21, 0x1800b8091\ntest    eax, eax                                                       ; +0x24, 0x1800b8094\njz      short loc_1800B80B2                                            ; +0x26, 0x1800b8096\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x1800b8098\nmovsx   ecx, byte ptr [r8]                                             ; +0x30, 0x1800b80a0\ndec     eax                                                            ; +0x34, 0x1800b80a4\ncmp     ecx, r9d                                                       ; +0x36, 0x1800b80a6\njz      short loc_1800B80B5                                            ; +0x39, 0x1800b80a9\ndec     r8                                                             ; +0x3b, 0x1800b80ab\ntest    eax, eax                                                       ; +0x3e, 0x1800b80ae\njnz     short loc_1800B80A0                                            ; +0x40, 0x1800b80b0\nxor     eax, eax                                                       ; +0x42, 0x1800b80b2\nretn                                                                   ; +0x44, 0x1800b80b4\nmov     rax, r8                                                        ; +0x45, 0x1800b80b5\nretn                                                                   ; +0x48, 0x1800b80b8", "xrefs": ["sub_1800FE610 @ 0x1800fe9b9", "<???> @ 0x1801fd260"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}