{"type": "func", "start": 6443363184, "end": 6443363319, "name": "sub_1800DEB70", "pseudocode": "// \n// sub_1800DEB70 from 0x1800deb70 to 0x1800debf7 (135 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016d130\n// > <???> @ 0x18016d320\n// > <???> @ 0x18016d4b8\n// > <???> @ 0x18016d688\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_1800DEB70(_DWORD *a1, _DWORD *a2, int *a3, _DWORD *a4, _DWORD *a5)\n{\n  int v5; // eax\n  int v6; // ecx\n  int v7; // ecx\n  int v8; // ecx\n  int v9; // ecx\n\n  if ( a2 )\n    *a2 = a1[9];\n  if ( a3 )\n  {\n    if ( (a1[11] & 0x200) == 0 || (v5 = 6, a1[44]) )\n      v5 = a1[10];\n    *a3 = v5;\n  }\n  if ( a4 )\n    *a4 = a1[26];\n  if ( a5 )\n  {\n    v6 = a1[10];\n    *a5 = 0;\n    v7 = v6 - 1;\n    if ( v7 )\n    {\n      v8 = v7 - 1;\n      if ( !v8 )\n      {\n        *a5 = 16;\n        return 0;\n      }\n      v9 = v8 - 1;\n      if ( !v9 )\n      {\n        *a5 = 24;\n        return 0;\n      }\n      if ( (unsigned int)(v9 - 1) <= 1 )\n      {\n        *a5 = 32;\n        return 0;\n      }\n    }\n    else\n    {\n      *a5 = 8;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800DEB70 from 0x1800deb70 to 0x1800debf7 (135 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016d130\n; > <???> @ 0x18016d320\n; > <???> @ 0x18016d4b8\n; > <???> @ 0x18016d688\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\ntest    rdx, rdx                                                       ; +0x0, 0x1800deb70\njz      short loc_1800DEB7A                                            ; +0x3, 0x1800deb73\nmov     eax, [rcx+24h]                                                 ; +0x5, 0x1800deb75\nmov     [rdx], eax                                                     ; +0x8, 0x1800deb78\ntest    r8, r8                                                         ; +0xa, 0x1800deb7a\njz      short loc_1800DEB9C                                            ; +0xd, 0x1800deb7d\ntest    dword ptr [rcx+2Ch], 200h                                      ; +0xf, 0x1800deb7f\njz      short loc_1800DEB96                                            ; +0x16, 0x1800deb86\ncmp     dword ptr [rcx+0B0h], 0                                        ; +0x18, 0x1800deb88\nmov     eax, 6                                                         ; +0x1f, 0x1800deb8f\njz      short loc_1800DEB99                                            ; +0x24, 0x1800deb94\nmov     eax, [rcx+28h]                                                 ; +0x26, 0x1800deb96\nmov     [r8], eax                                                      ; +0x29, 0x1800deb99\ntest    r9, r9                                                         ; +0x2c, 0x1800deb9c\njz      short loc_1800DEBA7                                            ; +0x2f, 0x1800deb9f\nmov     eax, [rcx+68h]                                                 ; +0x31, 0x1800deba1\nmov     [r9], eax                                                      ; +0x34, 0x1800deba4\nmov     rdx, [rsp+arg_20]                                              ; +0x37, 0x1800deba7\ntest    rdx, rdx                                                       ; +0x3c, 0x1800debac\njz      short loc_1800DEBF4                                            ; +0x3f, 0x1800debaf\nmov     ecx, [rcx+28h]                                                 ; +0x41, 0x1800debb1\nmov     dword ptr [rdx], 0                                             ; +0x44, 0x1800debb4\nsub     ecx, 1                                                         ; +0x4a, 0x1800debba\njz      short loc_1800DEBEE                                            ; +0x4d, 0x1800debbd\nsub     ecx, 1                                                         ; +0x4f, 0x1800debbf\njz      short loc_1800DEBE5                                            ; +0x52, 0x1800debc2\nsub     ecx, 1                                                         ; +0x54, 0x1800debc4\njz      short loc_1800DEBDC                                            ; +0x57, 0x1800debc7\nsub     ecx, 1                                                         ; +0x59, 0x1800debc9\njz      short loc_1800DEBD3                                            ; +0x5c, 0x1800debcc\ncmp     ecx, 1                                                         ; +0x5e, 0x1800debce\njnz     short loc_1800DEBF4                                            ; +0x61, 0x1800debd1\nmov     dword ptr [rdx], 20h ; ' '                                     ; +0x63, 0x1800debd3\nxor     eax, eax                                                       ; +0x69, 0x1800debd9\nretn                                                                   ; +0x6b, 0x1800debdb\nmov     dword ptr [rdx], 18h                                           ; +0x6c, 0x1800debdc\nxor     eax, eax                                                       ; +0x72, 0x1800debe2\nretn                                                                   ; +0x74, 0x1800debe4\nmov     dword ptr [rdx], 10h                                           ; +0x75, 0x1800debe5\nxor     eax, eax                                                       ; +0x7b, 0x1800debeb\nretn                                                                   ; +0x7d, 0x1800debed\nmov     dword ptr [rdx], 8                                             ; +0x7e, 0x1800debee\nxor     eax, eax                                                       ; +0x84, 0x1800debf4\nretn                                                                   ; +0x86, 0x1800debf6", "xrefs": ["<???> @ 0x18016d130", "<???> @ 0x18016d320", "<???> @ 0x18016d4b8", "<???> @ 0x18016d688"], "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"}