{"type": "func", "start": 6443342896, "end": 6443343049, "name": "sub_1800D9C30", "pseudocode": "// \n// sub_1800D9C30 from 0x1800d9c30 to 0x1800d9cc9 (153 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016ce78\n// > <???> @ 0x1801ff174\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:54:13 +0000\n// \n\n__int64 __fastcall sub_1800D9C30(__int64 a1, __int64 a2, unsigned __int8 a3, unsigned __int8 a4)\n{\n  _QWORD *v4; // rbx\n  _QWORD *v5; // rsi\n  _QWORD *v9; // rdi\n  __int64 result; // rax\n\n  v4 = *(_QWORD **)(a1 + 40);\n  v5 = (_QWORD *)(a1 + 40);\n  if ( v4 == (_QWORD *)(a1 + 40) )\n    return 0;\n  while ( 1 )\n  {\n    v9 = v4 - 1;\n    if ( !v4 )\n      v9 = nullptr;\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))*v9)(v9) == a3 )\n    {\n      result = (*(__int64 (__fastcall **)(_QWORD *, __int64, _QWORD, _QWORD))(*v9 + 80LL))(v9, a2, a3, a4);\n      if ( (_DWORD)result )\n        break;\n    }\n    v4 = (_QWORD *)*v4;\n    if ( v4 == v5 )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D9C30 from 0x1800d9c30 to 0x1800d9cc9 (153 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016ce78\n; > <???> @ 0x1801ff174\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:54:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800d9c30\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800d9c35\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800d9c3a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800d9c3f\npush    r12                                                            ; +0x14, 0x1800d9c44\npush    r14                                                            ; +0x16, 0x1800d9c46\npush    r15                                                            ; +0x18, 0x1800d9c48\nsub     rsp, 20h                                                       ; +0x1a, 0x1800d9c4a\nmov     rbx, [rcx+28h]                                                 ; +0x1e, 0x1800d9c4e\nlea     rsi, [rcx+28h]                                                 ; +0x22, 0x1800d9c52\nmovzx   r14d, r9b                                                      ; +0x26, 0x1800d9c56\nmovzx   ebp, r8b                                                       ; +0x2a, 0x1800d9c5a\nmov     r15, rdx                                                       ; +0x2e, 0x1800d9c5e\ncmp     rbx, rsi                                                       ; +0x31, 0x1800d9c61\njz      short loc_1800D9CA8                                            ; +0x34, 0x1800d9c64\nxor     r12d, r12d                                                     ; +0x36, 0x1800d9c66\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x1800d9c69\ntest    rbx, rbx                                                       ; +0x40, 0x1800d9c70\nlea     rdi, [rbx-8]                                                   ; +0x43, 0x1800d9c73\ncmovz   rdi, r12                                                       ; +0x47, 0x1800d9c77\nmov     rcx, rdi                                                       ; +0x4b, 0x1800d9c7b\nmov     rax, [rdi]                                                     ; +0x4e, 0x1800d9c7e\ncall    qword ptr [rax]                                                ; +0x51, 0x1800d9c81\ncmp     al, bpl                                                        ; +0x53, 0x1800d9c83\njnz     short loc_1800D9CA0                                            ; +0x56, 0x1800d9c86\nmov     rax, [rdi]                                                     ; +0x58, 0x1800d9c88\nmovzx   r9d, r14b                                                      ; +0x5b, 0x1800d9c8b\nmovzx   r8d, bpl                                                       ; +0x5f, 0x1800d9c8f\nmov     rdx, r15                                                       ; +0x63, 0x1800d9c93\nmov     rcx, rdi                                                       ; +0x66, 0x1800d9c96\ncall    qword ptr [rax+50h]                                            ; +0x69, 0x1800d9c99\ntest    eax, eax                                                       ; +0x6c, 0x1800d9c9c\njnz     short loc_1800D9CAA                                            ; +0x6e, 0x1800d9c9e\nmov     rbx, [rbx]                                                     ; +0x70, 0x1800d9ca0\ncmp     rbx, rsi                                                       ; +0x73, 0x1800d9ca3\njnz     short loc_1800D9C70                                            ; +0x76, 0x1800d9ca6\nxor     eax, eax                                                       ; +0x78, 0x1800d9ca8\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7a, 0x1800d9caa\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x7f, 0x1800d9caf\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x84, 0x1800d9cb4\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x89, 0x1800d9cb9\nadd     rsp, 20h                                                       ; +0x8e, 0x1800d9cbe\npop     r15                                                            ; +0x92, 0x1800d9cc2\npop     r14                                                            ; +0x94, 0x1800d9cc4\npop     r12                                                            ; +0x96, 0x1800d9cc6\nretn                                                                   ; +0x98, 0x1800d9cc8", "xrefs": ["<???> @ 0x18016ce78", "<???> @ 0x1801ff174"], "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"}