{"type": "func", "start": 6443326256, "end": 6443326683, "name": "sub_1800D5B30", "pseudocode": "// \n// sub_1800D5B30 from 0x1800d5b30 to 0x1800d5cdb (427 bytes)\n// \n// 23 xrefs:\n// > sub_1800183A0 @ 0x1800183e7\n// > sub_18001CAB0 @ 0x18001cb98\n// > sub_18001CDC0 @ 0x18001ce2c\n// > sub_180026050 @ 0x1800272b3\n// > sub_180027710 @ 0x1800277ad\n// > sub_180027710 @ 0x1800278be\n// > sub_180027900 @ 0x180027928\n// > sub_1800364B0 @ 0x1800379a3\n// > sub_180037DA0 @ 0x180037f62\n// > sub_180037DA0 @ 0x180038052\n// > sub_1800380A0 @ 0x1800380c8\n// > sub_18003D6D0 @ 0x18003d71c\n// > sub_18003D6D0 @ 0x18003d76c\n// > sub_18003D6D0 @ 0x18003d883\n// > sub_18003F950 @ 0x18003f9f1\n// > sub_18003F950 @ 0x18003fa3c\n// > sub_18003F950 @ 0x18003fb6b\n// > sub_18003FBA0 @ 0x18003fbcf\n// > sub_18003FBA0 @ 0x18003fc1c\n// > sub_1800D5500 @ 0x1800d550f\n// > <???> @ 0x18018c258\n// > <???> @ 0x18018c294\n// > <???> @ 0x1801fef04\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_1800D5B30(__int64 a1)\n{\n  __int64 v1; // r15\n  char v3; // r12\n  int v4; // ebp\n  _QWORD *v5; // r14\n  _QWORD *v6; // rdi\n  _QWORD *v7; // rbx\n  int *v8; // rcx\n  __int64 v9; // r8\n  __int64 v10; // rax\n  __int64 v11; // rcx\n  __int64 v12; // r8\n  _QWORD *v13; // rcx\n  __int64 v14; // rax\n  char v16; // [rsp+50h] [rbp+8h] BYREF\n\n  v1 = *(_QWORD *)(a1 + 32);\n  v3 = 0;\n  if ( v1 )\n  {\n    sub_1801021C0(v1, 1);\n    v3 = 1;\n  }\n  v4 = 0;\n  *(_WORD *)(a1 + 3048) = 256;\n  if ( *(int *)(a1 + 968) > 0 )\n  {\n    v5 = (_QWORD *)(a1 + 976);\n    do\n    {\n      if ( *v5 )\n      {\n        v6 = (_QWORD *)(*v5 + 8LL);\n        if ( *v6 )\n        {\n          while ( 1 )\n          {\n            v7 = (_QWORD *)*v6;\n            if ( (_QWORD *)*v6 == v6 && (_QWORD *)v6[1] == v6 )\n              break;\n            v8 = (int *)v7[4];\n            if ( v8 )\n            {\n              v9 = *(_QWORD *)(a1 + 1520);\n              v10 = v7[4];\n              if ( v9 )\n              {\n                (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)v8 + 280LL))(v8, *(_QWORD *)(v9 + 8LL * v8[116]));\n                v10 = v7[4];\n              }\n              v8 = (int *)v10;\n              if ( v10 )\n              {\n                sub_1800CFDB0(v10, 128);\n                v8 = (int *)v7[4];\n              }\n            }\n            v16 = 0;\n            if ( v8 )\n            {\n              (*(void (__fastcall **)(int *, char *))(*(_QWORD *)v8 + 168LL))(v8, &v16);\n              if ( v16 )\n                continue;\n            }\n            v11 = v7[4];\n            if ( v11 )\n            {\n              sub_1800CFDB0(v11, 128);\n              v12 = *(_QWORD *)(v7[6] + 1520LL);\n              if ( v12 )\n                (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v7[4] + 280LL))(\n                  v7[4],\n                  *(_QWORD *)(v12 + 8LL * *(int *)(v7[4] + 464LL)));\n            }\n            v13 = (_QWORD *)v7[1];\n            v14 = *v7;\n            *((_BYTE *)v7 + 60) = 0;\n            *v13 = v14;\n            *(_QWORD *)(*v7 + 8LL) = v7[1];\n            v7[1] = v7;\n            *v7 = v7;\n            *((_BYTE *)v7 + 28) = 0;\n          }\n        }\n      }\n      ++v4;\n      ++v5;\n    }\n    while ( v4 < *(_DWORD *)(a1 + 968) );\n  }\n  if ( v3 && v1 )\n    sub_180102300(v1, 1);\n  return 0;\n}", "assembly": "; \n; sub_1800D5B30 from 0x1800d5b30 to 0x1800d5cdb (427 bytes)\n; \n; 23 xrefs:\n; > sub_1800183A0 @ 0x1800183e7\n; > sub_18001CAB0 @ 0x18001cb98\n; > sub_18001CDC0 @ 0x18001ce2c\n; > sub_180026050 @ 0x1800272b3\n; > sub_180027710 @ 0x1800277ad\n; > sub_180027710 @ 0x1800278be\n; > sub_180027900 @ 0x180027928\n; > sub_1800364B0 @ 0x1800379a3\n; > sub_180037DA0 @ 0x180037f62\n; > sub_180037DA0 @ 0x180038052\n; > sub_1800380A0 @ 0x1800380c8\n; > sub_18003D6D0 @ 0x18003d71c\n; > sub_18003D6D0 @ 0x18003d76c\n; > sub_18003D6D0 @ 0x18003d883\n; > sub_18003F950 @ 0x18003f9f1\n; > sub_18003F950 @ 0x18003fa3c\n; > sub_18003F950 @ 0x18003fb6b\n; > sub_18003FBA0 @ 0x18003fbcf\n; > sub_18003FBA0 @ 0x18003fc1c\n; > sub_1800D5500 @ 0x1800d550f\n; > <???> @ 0x18018c258\n; > <???> @ 0x18018c294\n; > <???> @ 0x1801fef04\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\npush    r15                                                            ; +0x0, 0x1800d5b30\nsub     rsp, 40h                                                       ; +0x2, 0x1800d5b32\nmov     r15, [rcx+20h]                                                 ; +0x6, 0x1800d5b36\nmov     [rsp+48h+arg_10], rbp                                          ; +0xa, 0x1800d5b3a\nmov     [rsp+48h+var_10], rsi                                          ; +0xf, 0x1800d5b3f\nmov     rsi, rcx                                                       ; +0x14, 0x1800d5b44\nmov     [rsp+48h+var_20], r12                                          ; +0x17, 0x1800d5b47\nxor     r12b, r12b                                                     ; +0x1c, 0x1800d5b4c\ntest    r15, r15                                                       ; +0x1f, 0x1800d5b4f\njz      short loc_1800D5B64                                            ; +0x22, 0x1800d5b52\nmov     edx, 1                                                         ; +0x24, 0x1800d5b54\nmov     rcx, r15                                                       ; +0x29, 0x1800d5b59\ncall    sub_1801021C0                                                  ; +0x2c, 0x1800d5b5c\nmov     r12b, 1                                                        ; +0x31, 0x1800d5b61\nxor     ebp, ebp                                                       ; +0x34, 0x1800d5b64\nmov     word ptr [rsi+0BE8h], 100h                                     ; +0x36, 0x1800d5b66\ncmp     [rsi+3C8h], ebp                                                ; +0x3f, 0x1800d5b6f\njle     loc_1800D5CAC                                                  ; +0x45, 0x1800d5b75\nmov     [rsp+48h+arg_8], rbx                                           ; +0x4b, 0x1800d5b7b\nmov     [rsp+48h+var_18], rdi                                          ; +0x50, 0x1800d5b80\nmov     [rsp+48h+var_28], r14                                          ; +0x55, 0x1800d5b85\nlea     r14, [rsi+3D0h]                                                ; +0x5a, 0x1800d5b8a\nmov     rdi, [r14]                                                     ; +0x61, 0x1800d5b91\ntest    rdi, rdi                                                       ; +0x64, 0x1800d5b94\njz      loc_1800D5C8B                                                  ; +0x67, 0x1800d5b97\nadd     rdi, 8                                                         ; +0x6d, 0x1800d5b9d\ncmp     qword ptr [rdi], 0                                             ; +0x71, 0x1800d5ba1\njz      loc_1800D5C8B                                                  ; +0x75, 0x1800d5ba5\nnop     dword ptr [rax+rax+00h]                                        ; +0x7b, 0x1800d5bab\nmov     rbx, [rdi]                                                     ; +0x80, 0x1800d5bb0\ncmp     rbx, rdi                                                       ; +0x83, 0x1800d5bb3\njnz     short loc_1800D5BC2                                            ; +0x86, 0x1800d5bb6\ncmp     [rdi+8], rdi                                                   ; +0x88, 0x1800d5bb8\njz      loc_1800D5C8B                                                  ; +0x8c, 0x1800d5bbc\nmov     rcx, [rbx+20h]                                                 ; +0x92, 0x1800d5bc2\ntest    rcx, rcx                                                       ; +0x96, 0x1800d5bc6\njz      short loc_1800D5C08                                            ; +0x99, 0x1800d5bc9\nmov     r8, [rsi+5F0h]                                                 ; +0x9b, 0x1800d5bcb\nmov     rax, rcx                                                       ; +0xa2, 0x1800d5bd2\ntest    r8, r8                                                         ; +0xa5, 0x1800d5bd5\njz      short loc_1800D5BF2                                            ; +0xa8, 0x1800d5bd8\nmovsxd  rdx, dword ptr [rcx+1D0h]                                      ; +0xaa, 0x1800d5bda\nmov     rax, [rcx]                                                     ; +0xb1, 0x1800d5be1\nmov     rdx, [r8+rdx*8]                                                ; +0xb4, 0x1800d5be4\ncall    qword ptr [rax+118h]                                           ; +0xb8, 0x1800d5be8\nmov     rax, [rbx+20h]                                                 ; +0xbe, 0x1800d5bee\nmov     rcx, rax                                                       ; +0xc2, 0x1800d5bf2\ntest    rax, rax                                                       ; +0xc5, 0x1800d5bf5\njz      short loc_1800D5C08                                            ; +0xc8, 0x1800d5bf8\nmov     edx, 80h                                                       ; +0xca, 0x1800d5bfa\ncall    sub_1800CFDB0                                                  ; +0xcf, 0x1800d5bff\nmov     rcx, [rbx+20h]                                                 ; +0xd4, 0x1800d5c04\nmov     [rsp+48h+arg_0], 0                                             ; +0xd8, 0x1800d5c08\ntest    rcx, rcx                                                       ; +0xdd, 0x1800d5c0d\njz      short loc_1800D5C27                                            ; +0xe0, 0x1800d5c10\nmov     rax, [rcx]                                                     ; +0xe2, 0x1800d5c12\nlea     rdx, [rsp+48h+arg_0]                                           ; +0xe5, 0x1800d5c15\ncall    qword ptr [rax+0A8h]                                           ; +0xea, 0x1800d5c1a\ncmp     [rsp+48h+arg_0], 0                                             ; +0xf0, 0x1800d5c20\njnz     short loc_1800D5BB0                                            ; +0xf5, 0x1800d5c25\nmov     rcx, [rbx+20h]                                                 ; +0xf7, 0x1800d5c27\ntest    rcx, rcx                                                       ; +0xfb, 0x1800d5c2b\njz      short loc_1800D5C62                                            ; +0xfe, 0x1800d5c2e\nmov     edx, 80h                                                       ; +0x100, 0x1800d5c30\ncall    sub_1800CFDB0                                                  ; +0x105, 0x1800d5c35\nmov     rax, [rbx+30h]                                                 ; +0x10a, 0x1800d5c3a\nmov     r8, [rax+5F0h]                                                 ; +0x10e, 0x1800d5c3e\ntest    r8, r8                                                         ; +0x115, 0x1800d5c45\njz      short loc_1800D5C62                                            ; +0x118, 0x1800d5c48\nmov     rcx, [rbx+20h]                                                 ; +0x11a, 0x1800d5c4a\nmovsxd  rdx, dword ptr [rcx+1D0h]                                      ; +0x11e, 0x1800d5c4e\nmov     rax, [rcx]                                                     ; +0x125, 0x1800d5c55\nmov     rdx, [r8+rdx*8]                                                ; +0x128, 0x1800d5c58\ncall    qword ptr [rax+118h]                                           ; +0x12c, 0x1800d5c5c\nmov     rcx, [rbx+8]                                                   ; +0x132, 0x1800d5c62\nmov     rax, [rbx]                                                     ; +0x136, 0x1800d5c66\nmov     byte ptr [rbx+3Ch], 0                                          ; +0x139, 0x1800d5c69\nmov     [rcx], rax                                                     ; +0x13d, 0x1800d5c6d\nmov     rcx, [rbx]                                                     ; +0x140, 0x1800d5c70\nmov     rax, [rbx+8]                                                   ; +0x143, 0x1800d5c73\nmov     [rcx+8], rax                                                   ; +0x147, 0x1800d5c77\nmov     [rbx+8], rbx                                                   ; +0x14b, 0x1800d5c7b\nmov     [rbx], rbx                                                     ; +0x14f, 0x1800d5c7f\nmov     byte ptr [rbx+1Ch], 0                                          ; +0x152, 0x1800d5c82\njmp     loc_1800D5BB0                                                  ; +0x156, 0x1800d5c86\ninc     ebp                                                            ; +0x15b, 0x1800d5c8b\nadd     r14, 8                                                         ; +0x15d, 0x1800d5c8d\ncmp     ebp, [rsi+3C8h]                                                ; +0x161, 0x1800d5c91\njl      loc_1800D5B91                                                  ; +0x167, 0x1800d5c97\nmov     r14, [rsp+48h+var_28]                                          ; +0x16d, 0x1800d5c9d\nmov     rdi, [rsp+48h+var_18]                                          ; +0x172, 0x1800d5ca2\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x177, 0x1800d5ca7\nmov     rsi, [rsp+48h+var_10]                                          ; +0x17c, 0x1800d5cac\ntest    r12b, r12b                                                     ; +0x181, 0x1800d5cb1\nmov     r12, [rsp+48h+var_20]                                          ; +0x184, 0x1800d5cb4\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x189, 0x1800d5cb9\njz      short loc_1800D5CD2                                            ; +0x18e, 0x1800d5cbe\ntest    r15, r15                                                       ; +0x190, 0x1800d5cc0\njz      short loc_1800D5CD2                                            ; +0x193, 0x1800d5cc3\nmov     edx, 1                                                         ; +0x195, 0x1800d5cc5\nmov     rcx, r15                                                       ; +0x19a, 0x1800d5cca\ncall    sub_180102300                                                  ; +0x19d, 0x1800d5ccd\nxor     eax, eax                                                       ; +0x1a2, 0x1800d5cd2\nadd     rsp, 40h                                                       ; +0x1a4, 0x1800d5cd4\npop     r15                                                            ; +0x1a8, 0x1800d5cd8\nretn                                                                   ; +0x1aa, 0x1800d5cda", "xrefs": ["sub_1800183A0 @ 0x1800183e7", "sub_18001CAB0 @ 0x18001cb98", "sub_18001CDC0 @ 0x18001ce2c", "sub_180026050 @ 0x1800272b3", "sub_180027710 @ 0x1800277ad", "sub_180027710 @ 0x1800278be", "sub_180027900 @ 0x180027928", "sub_1800364B0 @ 0x1800379a3", "sub_180037DA0 @ 0x180037f62", "sub_180037DA0 @ 0x180038052", "sub_1800380A0 @ 0x1800380c8", "sub_18003D6D0 @ 0x18003d71c", "sub_18003D6D0 @ 0x18003d76c", "sub_18003D6D0 @ 0x18003d883", "sub_18003F950 @ 0x18003f9f1", "sub_18003F950 @ 0x18003fa3c", "sub_18003F950 @ 0x18003fb6b", "sub_18003FBA0 @ 0x18003fbcf", "sub_18003FBA0 @ 0x18003fc1c", "sub_1800D5500 @ 0x1800d550f", "<???> @ 0x18018c258", "<???> @ 0x18018c294", "<???> @ 0x1801fef04"], "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"}