{"type": "func", "start": 6442802304, "end": 6442802466, "name": "sub_180055C80", "pseudocode": "// \n// sub_180055C80 from 0x180055c80 to 0x180055d22 (162 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18018226c\n// > <???> @ 0x18018227c\n// > <???> @ 0x1801ac3d0\n// > <???> @ 0x1801f8d60\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:53:19 +0000\n// \n\n__int64 __fastcall sub_180055C80(__int64 *a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rdi\n  unsigned int v4; // ebx\n  __int64 v5; // rax\n  __int64 v6; // rsi\n  _DWORD *v7; // rcx\n\n  v3 = *a1;\n  v4 = 0;\n  v5 = *(_QWORD *)(*a1 + 232);\n  if ( *(int *)(v5 + 96) > 0 )\n  {\n    v6 = 0;\n    do\n    {\n      v7 = *(_DWORD **)(v6 + *(_QWORD *)(v5 + 104));\n      if ( *v7 )\n      {\n        if ( *v7 == 2 )\n        {\n          LOBYTE(a3) = v7[12] != 0;\n          sub_18009BC60(v3, v4, a3);\n        }\n      }\n      else\n      {\n        sub_18009C0C0(v3, v4);\n      }\n      v5 = *(_QWORD *)(v3 + 232);\n      ++v4;\n      v6 += 8;\n    }\n    while ( (signed int)v4 < *(_DWORD *)(v5 + 96) );\n  }\n  memset((void *)(v3 + 564), 0, 0x100u);\n  *(_QWORD *)(v3 + 856) = 0;\n  *(_BYTE *)(v3 + 844) = 1;\n  return 0;\n}", "assembly": "; \n; sub_180055C80 from 0x180055c80 to 0x180055d22 (162 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18018226c\n; > <???> @ 0x18018227c\n; > <???> @ 0x1801ac3d0\n; > <???> @ 0x1801f8d60\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:53:19 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180055c80\npush    rdi                                                            ; +0x5, 0x180055c85\nsub     rsp, 20h                                                       ; +0x6, 0x180055c86\nmov     rdi, [rcx]                                                     ; +0xa, 0x180055c8a\nxor     ebx, ebx                                                       ; +0xd, 0x180055c8d\nmov     rax, [rdi+0E8h]                                                ; +0xf, 0x180055c8f\ncmp     [rax+60h], ebx                                                 ; +0x16, 0x180055c96\njle     short loc_180055CEF                                            ; +0x19, 0x180055c99\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1b, 0x180055c9b\nxor     esi, esi                                                       ; +0x20, 0x180055ca0\nmov     rax, [rax+68h]                                                 ; +0x22, 0x180055ca2\nmov     rcx, [rsi+rax]                                                 ; +0x26, 0x180055ca6\nmov     eax, [rcx]                                                     ; +0x2a, 0x180055caa\ntest    eax, eax                                                       ; +0x2c, 0x180055cac\njnz     short loc_180055CC1                                            ; +0x2e, 0x180055cae\nmovss   xmm2, dword ptr [rcx+38h]                                      ; +0x30, 0x180055cb0\nmov     edx, ebx                                                       ; +0x35, 0x180055cb5\nmov     rcx, rdi                                                       ; +0x37, 0x180055cb7\ncall    sub_18009C0C0                                                  ; +0x3a, 0x180055cba\njmp     short loc_180055CD8                                            ; +0x3f, 0x180055cbf\ncmp     eax, 2                                                         ; +0x41, 0x180055cc1\njnz     short loc_180055CD8                                            ; +0x44, 0x180055cc4\ncmp     dword ptr [rcx+30h], 0                                         ; +0x46, 0x180055cc6\nmov     edx, ebx                                                       ; +0x4a, 0x180055cca\nmov     rcx, rdi                                                       ; +0x4c, 0x180055ccc\nsetnz   r8b                                                            ; +0x4f, 0x180055ccf\ncall    sub_18009BC60                                                  ; +0x53, 0x180055cd3\nmov     rax, [rdi+0E8h]                                                ; +0x58, 0x180055cd8\ninc     ebx                                                            ; +0x5f, 0x180055cdf\nadd     rsi, 8                                                         ; +0x61, 0x180055ce1\ncmp     ebx, [rax+60h]                                                 ; +0x65, 0x180055ce5\njl      short loc_180055CA2                                            ; +0x68, 0x180055ce8\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x6a, 0x180055cea\nlea     rcx, [rdi+234h]; void *                                        ; +0x6f, 0x180055cef\nxor     edx, edx; Val                                                  ; +0x76, 0x180055cf6\nmov     r8d, 100h; Size                                                ; +0x78, 0x180055cf8\ncall    memset                                                         ; +0x7e, 0x180055cfe\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x83, 0x180055d03\nxor     eax, eax                                                       ; +0x88, 0x180055d08\nmov     qword ptr [rdi+358h], 0                                        ; +0x8a, 0x180055d0a\nmov     byte ptr [rdi+34Ch], 1                                         ; +0x95, 0x180055d15\nadd     rsp, 20h                                                       ; +0x9c, 0x180055d1c\npop     rdi                                                            ; +0xa0, 0x180055d20\nretn                                                                   ; +0xa1, 0x180055d21", "xrefs": ["<???> @ 0x18018226c", "<???> @ 0x18018227c", "<???> @ 0x1801ac3d0", "<???> @ 0x1801f8d60"], "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"}