{"type": "func", "start": 6442512656, "end": 6442512747, "name": "sub_18000F110", "pseudocode": "// \n// sub_18000F110 from 0x18000f110 to 0x18000f16b (91 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c7c8\n// > <???> @ 0x18016ca40\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\n__int64 __fastcall sub_18000F110(__int64 a1, __int64 a2, _DWORD *a3)\n{\n  int v5; // edx\n  _QWORD *v6; // rax\n  __int64 v7; // r10\n  __int64 v8; // rcx\n\n  if ( !a2 )\n    return 31;\n  v5 = 0;\n  if ( a3 )\n    *a3 = 0;\n  v6 = *(_QWORD **)(a1 + 16);\n  if ( v6 )\n  {\n    v7 = *(int *)(a1 + 24);\n    if ( (int)v7 <= 0 )\n      return 9;\n    v8 = 0;\n    while ( *v6 != a2 )\n    {\n      ++v5;\n      ++v8;\n      ++v6;\n      if ( v8 >= v7 )\n        return 9;\n    }\n    if ( a3 )\n      *a3 = v5;\n  }\n  else if ( a2 != *(_QWORD *)(a1 + 96) )\n  {\n    return 9;\n  }\n  return 0;\n}", "assembly": "; \n; sub_18000F110 from 0x18000f110 to 0x18000f16b (91 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c7c8\n; > <???> @ 0x18016ca40\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\nmov     r9, rdx                                                        ; +0x0, 0x18000f110\ntest    rdx, rdx                                                       ; +0x3, 0x18000f113\njnz     short loc_18000F11C                                            ; +0x6, 0x18000f116\nlea     eax, [rdx+1Fh]                                                 ; +0x8, 0x18000f118\nretn                                                                   ; +0xb, 0x18000f11b\nxor     edx, edx                                                       ; +0xc, 0x18000f11c\ntest    r8, r8                                                         ; +0xe, 0x18000f11e\njz      short loc_18000F126                                            ; +0x11, 0x18000f121\nmov     [r8], edx                                                      ; +0x13, 0x18000f123\nmov     rax, [rcx+10h]                                                 ; +0x16, 0x18000f126\ntest    rax, rax                                                       ; +0x1a, 0x18000f12a\njnz     short loc_18000F13B                                            ; +0x1d, 0x18000f12d\ncmp     r9, [rcx+60h]                                                  ; +0x1f, 0x18000f12f\njz      short loc_18000F168                                            ; +0x23, 0x18000f133\nmov     eax, 9                                                         ; +0x25, 0x18000f135\nretn                                                                   ; +0x2a, 0x18000f13a\nmovsxd  r10, dword ptr [rcx+18h]                                       ; +0x2b, 0x18000f13b\ntest    r10d, r10d                                                     ; +0x2f, 0x18000f13f\njle     short loc_18000F135                                            ; +0x32, 0x18000f142\nmov     rcx, rdx                                                       ; +0x34, 0x18000f144\ncmp     [rax], r9                                                      ; +0x37, 0x18000f147\njz      short loc_18000F160                                            ; +0x3a, 0x18000f14a\ninc     edx                                                            ; +0x3c, 0x18000f14c\ninc     rcx                                                            ; +0x3e, 0x18000f14e\nadd     rax, 8                                                         ; +0x41, 0x18000f151\ncmp     rcx, r10                                                       ; +0x45, 0x18000f155\njl      short loc_18000F147                                            ; +0x48, 0x18000f158\nmov     eax, 9                                                         ; +0x4a, 0x18000f15a\nretn                                                                   ; +0x4f, 0x18000f15f\ntest    r8, r8                                                         ; +0x50, 0x18000f160\njz      short loc_18000F168                                            ; +0x53, 0x18000f163\nmov     [r8], edx                                                      ; +0x55, 0x18000f165\nxor     eax, eax                                                       ; +0x58, 0x18000f168\nretn                                                                   ; +0x5a, 0x18000f16a", "xrefs": ["<???> @ 0x18016c7c8", "<???> @ 0x18016ca40"], "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"}