{"type": "func", "start": 6442799936, "end": 6442800110, "name": "sub_180055340", "pseudocode": "// \n// sub_180055340 from 0x180055340 to 0x1800553ee (174 bytes)\n// \n// 2 xrefs:\n// > sub_1800C8380 @ 0x1800c8663\n// > <???> @ 0x1801f8cdc\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_180055340(__int64 a1, _QWORD *a2)\n{\n  int v2; // esi\n  __int64 i; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v9; // rax\n  __int64 v10; // rcx\n  char v11; // [rsp+40h] [rbp+8h] BYREF\n  char v12; // [rsp+50h] [rbp+18h] BYREF\n\n  v2 = 0;\n  if ( *(int *)(a1 + 12) <= 0 )\n    return 2;\n  for ( i = 0; ; ++i )\n  {\n    if ( !*(_BYTE *)(i + *(_QWORD *)(a1 + 32)) )\n    {\n      v6 = *(_QWORD *)(a1 + 24);\n      v11 = 0;\n      (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v6 + 8 * i) + 48LL))(*(_QWORD *)(v6 + 8 * i), &v11);\n      if ( v11 )\n      {\n        v7 = *(_QWORD *)(a1 + 24);\n        v12 = 0;\n        (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v7 + 8 * i) + 64LL))(*(_QWORD *)(v7 + 8 * i), &v12);\n        if ( v12 )\n          break;\n      }\n    }\n    if ( ++v2 >= *(_DWORD *)(a1 + 12) )\n      return 2;\n  }\n  *(_BYTE *)(v2 + *(_QWORD *)(a1 + 32)) = 1;\n  v9 = *(_QWORD *)(a1 + 24);\n  ++*(_DWORD *)(a1 + 16);\n  v10 = *(_QWORD *)(v9 + 8LL * v2);\n  *a2 = v10;\n  return 0;\n}", "assembly": "; \n; sub_180055340 from 0x180055340 to 0x1800553ee (174 bytes)\n; \n; 2 xrefs:\n; > sub_1800C8380 @ 0x1800c8663\n; > <???> @ 0x1801f8cdc\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, 0x180055340\npush    rsi                                                            ; +0x5, 0x180055345\npush    rdi                                                            ; +0x6, 0x180055346\npush    r14                                                            ; +0x7, 0x180055347\nsub     rsp, 20h                                                       ; +0x9, 0x180055349\nxor     esi, esi                                                       ; +0xd, 0x18005534d\nmov     r14, rdx                                                       ; +0xf, 0x18005534f\nmov     rbx, rcx                                                       ; +0x12, 0x180055352\ncmp     [rcx+0Ch], esi                                                 ; +0x15, 0x180055355\njle     short loc_1800553B2                                            ; +0x18, 0x180055358\nmov     edi, esi                                                       ; +0x1a, 0x18005535a\nnop     dword ptr [rax+00h]                                            ; +0x1c, 0x18005535c\nmov     rax, [rbx+20h]                                                 ; +0x20, 0x180055360\ncmp     byte ptr [rdi+rax], 0                                          ; +0x24, 0x180055364\njnz     short loc_1800553A8                                            ; +0x28, 0x180055368\nmov     rax, [rbx+18h]                                                 ; +0x2a, 0x18005536a\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x2e, 0x18005536e\nmov     [rsp+38h+arg_0], 0                                             ; +0x33, 0x180055373\nmov     rcx, [rax+rdi*8]                                               ; +0x38, 0x180055378\nmov     rax, [rcx]                                                     ; +0x3c, 0x18005537c\ncall    qword ptr [rax+30h]                                            ; +0x3f, 0x18005537f\ncmp     [rsp+38h+arg_0], 0                                             ; +0x42, 0x180055382\njz      short loc_1800553A8                                            ; +0x47, 0x180055387\nmov     rax, [rbx+18h]                                                 ; +0x49, 0x180055389\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x4d, 0x18005538d\nmov     [rsp+38h+arg_10], 0                                            ; +0x52, 0x180055392\nmov     rcx, [rax+rdi*8]                                               ; +0x57, 0x180055397\nmov     rax, [rcx]                                                     ; +0x5b, 0x18005539b\ncall    qword ptr [rax+40h]                                            ; +0x5e, 0x18005539e\ncmp     [rsp+38h+arg_10], 0                                            ; +0x61, 0x1800553a1\njnz     short loc_1800553C5                                            ; +0x66, 0x1800553a6\ninc     esi                                                            ; +0x68, 0x1800553a8\ninc     rdi                                                            ; +0x6a, 0x1800553aa\ncmp     esi, [rbx+0Ch]                                                 ; +0x6d, 0x1800553ad\njl      short loc_180055360                                            ; +0x70, 0x1800553b0\nmov     eax, 2                                                         ; +0x72, 0x1800553b2\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x77, 0x1800553b7\nadd     rsp, 20h                                                       ; +0x7c, 0x1800553bc\npop     r14                                                            ; +0x80, 0x1800553c0\npop     rdi                                                            ; +0x82, 0x1800553c2\npop     rsi                                                            ; +0x83, 0x1800553c3\nretn                                                                   ; +0x84, 0x1800553c4\nmov     rax, [rbx+20h]                                                 ; +0x85, 0x1800553c5\nmovsxd  rcx, esi                                                       ; +0x89, 0x1800553c9\nmov     byte ptr [rcx+rax], 1                                          ; +0x8c, 0x1800553cc\nmov     rax, [rbx+18h]                                                 ; +0x90, 0x1800553d0\ninc     dword ptr [rbx+10h]                                            ; +0x94, 0x1800553d4\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x97, 0x1800553d7\nmov     rcx, [rax+rcx*8]                                               ; +0x9c, 0x1800553dc\nxor     eax, eax                                                       ; +0xa0, 0x1800553e0\nmov     [r14], rcx                                                     ; +0xa2, 0x1800553e2\nadd     rsp, 20h                                                       ; +0xa5, 0x1800553e5\npop     r14                                                            ; +0xa9, 0x1800553e9\npop     rdi                                                            ; +0xab, 0x1800553eb\npop     rsi                                                            ; +0xac, 0x1800553ec\nretn                                                                   ; +0xad, 0x1800553ed", "xrefs": ["sub_1800C8380 @ 0x1800c8663", "<???> @ 0x1801f8cdc"], "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"}