{"type": "func", "start": 6443353840, "end": 6443354357, "name": "sub_1800DC6F0", "pseudocode": "// \n// sub_1800DC6F0 from 0x1800dc6f0 to 0x1800dc8f5 (517 bytes)\n// \n// 2 xrefs:\n// > sub_1800DC1C0 @ 0x1800dc4d1\n// > <???> @ 0x1801badb8\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_1800DC6F0(__int64 a1, __int64 *a2)\n{\n  int *v4; // rsi\n  char v5; // al\n  int v6; // eax\n  int v7; // eax\n  __int64 v8; // rcx\n  int v9; // eax\n  int v10; // eax\n  _DWORD v12[6]; // [rsp+20h] [rbp-28h] BYREF\n\n  v4 = (int *)(a2[1] + 8LL * *((int *)a2 + 4));\n  v5 = *(_BYTE *)(a1 + 24);\n  if ( (v5 & 3) == 0 )\n  {\n    if ( (v5 & 0xC) != 0 )\n    {\n      v9 = *((_DWORD *)a2 + 7);\n      v4[1] = 2;\n      *v4 = v9 + 48;\n      ++*((_DWORD *)a2 + 7);\n    }\n    else if ( (v5 & 0x10) != 0 )\n    {\n      v10 = *((_DWORD *)a2 + 8);\n      v4[1] = 3;\n      *v4 = 4 * v10 + 32;\n      ++*((_DWORD *)a2 + 8);\n    }\n    goto LABEL_32;\n  }\n  if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02E4LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n  {\n    v6 = 4 * *((_DWORD *)a2 + 6) + 24;\n  }\n  else if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02E0LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n  {\n    v6 = 0;\n  }\n  else if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02E1LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n  {\n    v6 = 4;\n  }\n  else if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02E2LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n  {\n    v6 = 8;\n  }\n  else if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02F4LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n  {\n    v6 = 12;\n  }\n  else if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02F5LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n  {\n    v6 = 16;\n  }\n  else\n  {\n    if ( *(_QWORD *)(a1 + 4) != 0x11CFC9F3A36D02E3LL || *(_QWORD *)(a1 + 12) != 0x54534544C7BFLL )\n      return 1;\n    v6 = 20;\n  }\n  *v4 = v6;\n  v7 = *(_DWORD *)(a1 + 24);\n  v8 = *a2;\n  v12[0] = 24;\n  v12[1] = 16;\n  v12[2] = v7;\n  v12[3] = 2;\n  v12[4] = -32768;\n  v12[5] = 0x7FFF;\n  if ( (*(int (__fastcall **)(__int64, __int64, _DWORD *))(*(_QWORD *)v8 + 48LL))(v8, 4, v12) >= 0 )\n  {\n    if ( *(_QWORD *)(a1 + 4) == 0x11CFC9F3A36D02E4LL && *(_QWORD *)(a1 + 12) == 0x54534544C7BFLL )\n    {\n      v4[1] = 1;\n      ++*((_DWORD *)a2 + 6);\n    }\n    else\n    {\n      v4[1] = 0;\n      ++*((_DWORD *)a2 + 5);\n    }\nLABEL_32:\n    ++*((_DWORD *)a2 + 4);\n  }\n  return 1;\n}", "assembly": "; \n; sub_1800DC6F0 from 0x1800dc6f0 to 0x1800dc8f5 (517 bytes)\n; \n; 2 xrefs:\n; > sub_1800DC1C0 @ 0x1800dc4d1\n; > <???> @ 0x1801badb8\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     [rsp+arg_10], rbx                                              ; +0x0, 0x1800dc6f0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800dc6f5\npush    rdi                                                            ; +0xa, 0x1800dc6fa\nsub     rsp, 40h                                                       ; +0xb, 0x1800dc6fb\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800dc6ff\nxor     rax, rsp                                                       ; +0x16, 0x1800dc706\nmov     [rsp+48h+var_10], rax                                          ; +0x19, 0x1800dc709\nmov     rax, [rdx+8]                                                   ; +0x1e, 0x1800dc70e\nmov     rbx, rdx                                                       ; +0x22, 0x1800dc712\nmovsxd  r8, dword ptr [rdx+10h]                                        ; +0x25, 0x1800dc715\nmov     rdi, rcx                                                       ; +0x29, 0x1800dc719\nlea     rsi, [rax+r8*8]                                                ; +0x2c, 0x1800dc71c\nmovzx   eax, byte ptr [rcx+18h]                                        ; +0x30, 0x1800dc720\ntest    al, 3                                                          ; +0x34, 0x1800dc724\njz      loc_1800DC89E                                                  ; +0x36, 0x1800dc726\nmov     rax, [rcx+4]                                                   ; +0x3c, 0x1800dc72c\ncmp     rax, cs:qword_1801212F0                                        ; +0x40, 0x1800dc730\njnz     short loc_1800DC755                                            ; +0x47, 0x1800dc737\nmov     rax, [rcx+0Ch]                                                 ; +0x49, 0x1800dc739\ncmp     rax, cs:qword_1801212F8                                        ; +0x4d, 0x1800dc73d\njnz     short loc_1800DC755                                            ; +0x54, 0x1800dc744\nmov     eax, [rdx+18h]                                                 ; +0x56, 0x1800dc746\nlea     eax, ds:18h[rax*4]                                             ; +0x59, 0x1800dc749\njmp     loc_1800DC824                                                  ; +0x60, 0x1800dc750\nmov     rax, [rcx+4]                                                   ; +0x65, 0x1800dc755\ncmp     rax, cs:qword_180121290                                        ; +0x69, 0x1800dc759\njnz     short loc_1800DC776                                            ; +0x70, 0x1800dc760\nmov     rax, [rcx+0Ch]                                                 ; +0x72, 0x1800dc762\ncmp     rax, cs:qword_180121298                                        ; +0x76, 0x1800dc766\njnz     short loc_1800DC776                                            ; +0x7d, 0x1800dc76d\nxor     eax, eax                                                       ; +0x7f, 0x1800dc76f\njmp     loc_1800DC824                                                  ; +0x81, 0x1800dc771\nmov     rax, [rcx+4]                                                   ; +0x86, 0x1800dc776\ncmp     rax, cs:qword_1801212A0                                        ; +0x8a, 0x1800dc77a\njnz     short loc_1800DC79A                                            ; +0x91, 0x1800dc781\nmov     rax, [rcx+0Ch]                                                 ; +0x93, 0x1800dc783\ncmp     rax, cs:qword_1801212A8                                        ; +0x97, 0x1800dc787\njnz     short loc_1800DC79A                                            ; +0x9e, 0x1800dc78e\nmov     eax, 4                                                         ; +0xa0, 0x1800dc790\njmp     loc_1800DC824                                                  ; +0xa5, 0x1800dc795\nmov     rax, [rcx+4]                                                   ; +0xaa, 0x1800dc79a\ncmp     rax, cs:qword_1801212B0                                        ; +0xae, 0x1800dc79e\njnz     short loc_1800DC7BB                                            ; +0xb5, 0x1800dc7a5\nmov     rax, [rcx+0Ch]                                                 ; +0xb7, 0x1800dc7a7\ncmp     rax, cs:qword_1801212B8                                        ; +0xbb, 0x1800dc7ab\njnz     short loc_1800DC7BB                                            ; +0xc2, 0x1800dc7b2\nmov     eax, 8                                                         ; +0xc4, 0x1800dc7b4\njmp     short loc_1800DC824                                            ; +0xc9, 0x1800dc7b9\nmov     rax, [rcx+4]                                                   ; +0xcb, 0x1800dc7bb\ncmp     rax, cs:qword_1801212C0                                        ; +0xcf, 0x1800dc7bf\njnz     short loc_1800DC7DC                                            ; +0xd6, 0x1800dc7c6\nmov     rax, [rcx+0Ch]                                                 ; +0xd8, 0x1800dc7c8\ncmp     rax, cs:qword_1801212C8                                        ; +0xdc, 0x1800dc7cc\njnz     short loc_1800DC7DC                                            ; +0xe3, 0x1800dc7d3\nmov     eax, 0Ch                                                       ; +0xe5, 0x1800dc7d5\njmp     short loc_1800DC824                                            ; +0xea, 0x1800dc7da\nmov     rax, [rcx+4]                                                   ; +0xec, 0x1800dc7dc\ncmp     rax, cs:qword_1801212D0                                        ; +0xf0, 0x1800dc7e0\njnz     short loc_1800DC7FD                                            ; +0xf7, 0x1800dc7e7\nmov     rax, [rcx+0Ch]                                                 ; +0xf9, 0x1800dc7e9\ncmp     rax, cs:qword_1801212D8                                        ; +0xfd, 0x1800dc7ed\njnz     short loc_1800DC7FD                                            ; +0x104, 0x1800dc7f4\nmov     eax, 10h                                                       ; +0x106, 0x1800dc7f6\njmp     short loc_1800DC824                                            ; +0x10b, 0x1800dc7fb\nmov     rax, [rcx+4]                                                   ; +0x10d, 0x1800dc7fd\ncmp     rax, cs:qword_1801212E0                                        ; +0x111, 0x1800dc801\njnz     loc_1800DC8D3                                                  ; +0x118, 0x1800dc808\nmov     rax, [rcx+0Ch]                                                 ; +0x11e, 0x1800dc80e\ncmp     rax, cs:qword_1801212E8                                        ; +0x122, 0x1800dc812\njnz     loc_1800DC8D3                                                  ; +0x129, 0x1800dc819\nmov     eax, 14h                                                       ; +0x12f, 0x1800dc81f\nmov     [rsi], eax                                                     ; +0x134, 0x1800dc824\nlea     r8, [rsp+48h+var_28]                                           ; +0x136, 0x1800dc826\nmov     eax, [rcx+18h]                                                 ; +0x13b, 0x1800dc82b\nmov     rcx, [rdx]                                                     ; +0x13e, 0x1800dc82e\nmov     edx, 4                                                         ; +0x141, 0x1800dc831\nmov     [rsp+48h+var_28], 18h                                          ; +0x146, 0x1800dc836\nmov     [rsp+48h+var_24], 10h                                          ; +0x14e, 0x1800dc83e\nmov     [rsp+48h+var_20], eax                                          ; +0x156, 0x1800dc846\nmov     [rsp+48h+var_1C], 2                                            ; +0x15a, 0x1800dc84a\nmov     [rsp+48h+var_18], 0FFFF8000h                                   ; +0x162, 0x1800dc852\nmov     [rsp+48h+var_14], 7FFFh                                        ; +0x16a, 0x1800dc85a\nmov     rax, [rcx]                                                     ; +0x172, 0x1800dc862\ncall    qword ptr [rax+30h]                                            ; +0x175, 0x1800dc865\ntest    eax, eax                                                       ; +0x178, 0x1800dc868\njs      short loc_1800DC8D3                                            ; +0x17a, 0x1800dc86a\nmov     rax, [rdi+4]                                                   ; +0x17c, 0x1800dc86c\ncmp     rax, cs:qword_1801212F0                                        ; +0x180, 0x1800dc870\njnz     short loc_1800DC892                                            ; +0x187, 0x1800dc877\nmov     rax, [rdi+0Ch]                                                 ; +0x189, 0x1800dc879\ncmp     rax, cs:qword_1801212F8                                        ; +0x18d, 0x1800dc87d\njnz     short loc_1800DC892                                            ; +0x194, 0x1800dc884\nmov     dword ptr [rsi+4], 1                                           ; +0x196, 0x1800dc886\ninc     dword ptr [rbx+18h]                                            ; +0x19d, 0x1800dc88d\njmp     short loc_1800DC8D0                                            ; +0x1a0, 0x1800dc890\nmov     dword ptr [rsi+4], 0                                           ; +0x1a2, 0x1800dc892\ninc     dword ptr [rbx+14h]                                            ; +0x1a9, 0x1800dc899\njmp     short loc_1800DC8D0                                            ; +0x1ac, 0x1800dc89c\ntest    al, 0Ch                                                        ; +0x1ae, 0x1800dc89e\njz      short loc_1800DC8B6                                            ; +0x1b0, 0x1800dc8a0\nmov     eax, [rdx+1Ch]                                                 ; +0x1b2, 0x1800dc8a2\nadd     eax, 30h ; '0'                                                 ; +0x1b5, 0x1800dc8a5\nmov     dword ptr [rsi+4], 2                                           ; +0x1b8, 0x1800dc8a8\nmov     [rsi], eax                                                     ; +0x1bf, 0x1800dc8af\ninc     dword ptr [rdx+1Ch]                                            ; +0x1c1, 0x1800dc8b1\njmp     short loc_1800DC8D0                                            ; +0x1c4, 0x1800dc8b4\ntest    al, 10h                                                        ; +0x1c6, 0x1800dc8b6\njz      short loc_1800DC8D0                                            ; +0x1c8, 0x1800dc8b8\nmov     eax, [rdx+20h]                                                 ; +0x1ca, 0x1800dc8ba\nmov     dword ptr [rsi+4], 3                                           ; +0x1cd, 0x1800dc8bd\nlea     eax, ds:20h[rax*4]                                             ; +0x1d4, 0x1800dc8c4\nmov     [rsi], eax                                                     ; +0x1db, 0x1800dc8cb\ninc     dword ptr [rdx+20h]                                            ; +0x1dd, 0x1800dc8cd\ninc     dword ptr [rbx+10h]                                            ; +0x1e0, 0x1800dc8d0\nmov     eax, 1                                                         ; +0x1e3, 0x1800dc8d3\nmov     rcx, [rsp+48h+var_10]                                          ; +0x1e8, 0x1800dc8d8\nxor     rcx, rsp; StackCookie                                          ; +0x1ed, 0x1800dc8dd\ncall    __security_check_cookie                                        ; +0x1f0, 0x1800dc8e0\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x1f5, 0x1800dc8e5\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x1fa, 0x1800dc8ea\nadd     rsp, 40h                                                       ; +0x1ff, 0x1800dc8ef\npop     rdi                                                            ; +0x203, 0x1800dc8f3\nretn                                                                   ; +0x204, 0x1800dc8f4", "xrefs": ["sub_1800DC1C0 @ 0x1800dc4d1", "<???> @ 0x1801badb8"], "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"}