{"type": "func", "start": 6443457600, "end": 6443457747, "name": "sub_1800F5C40", "pseudocode": "// \n// sub_1800F5C40 from 0x1800f5c40 to 0x1800f5cd3 (147 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18018ec68\n// > <???> @ 0x18018ecc0\n// > <???> @ 0x1801b0100\n// > <???> @ 0x1802008fc\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:54:23 +0000\n// \n\n__int64 __fastcall sub_1800F5C40(__int64 a1)\n{\n  __int64 v1; // rdi\n  __int64 v2; // rbx\n  int i; // ebp\n  int j; // esi\n  __int64 v5; // rcx\n\n  v1 = *(_QWORD *)(a1 + 8);\n  v2 = 0;\n  if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 24LL))(v1) )\n    v2 = v1;\n  if ( *(_QWORD *)(v1 + 56) )\n  {\n    for ( i = 0; i < *(_DWORD *)(v1 + 24); ++i )\n    {\n      for ( j = 0; j < *(_DWORD *)(v1 + 28); ++j )\n      {\n        v5 = *(_QWORD *)(*(_QWORD *)(v1 + 56) + 8LL * (j + *(_DWORD *)(v1 + 28) * i));\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 40LL))(v5);\n      }\n    }\n    *(_DWORD *)(v1 + 48) = 0;\n  }\n  if ( v2 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 32LL))(v2);\n  return 0;\n}", "assembly": "; \n; sub_1800F5C40 from 0x1800f5c40 to 0x1800f5cd3 (147 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18018ec68\n; > <???> @ 0x18018ecc0\n; > <???> @ 0x1801b0100\n; > <???> @ 0x1802008fc\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:54:23 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800f5c40\nsub     rsp, 20h                                                       ; +0x2, 0x1800f5c42\nmov     [rsp+28h+arg_10], rdi                                          ; +0x6, 0x1800f5c46\nmov     rdi, [rcx+8]                                                   ; +0xb, 0x1800f5c4b\nmov     rcx, rdi                                                       ; +0xf, 0x1800f5c4f\nmov     rax, [rdi]                                                     ; +0x12, 0x1800f5c52\ncall    qword ptr [rax+18h]                                            ; +0x15, 0x1800f5c55\nxor     ebx, ebx                                                       ; +0x18, 0x1800f5c58\ntest    al, al                                                         ; +0x1a, 0x1800f5c5a\ncmovnz  rbx, rdi                                                       ; +0x1c, 0x1800f5c5c\ncmp     qword ptr [rdi+38h], 0                                         ; +0x20, 0x1800f5c60\njz      short loc_1800F5CB8                                            ; +0x25, 0x1800f5c65\nmov     [rsp+28h+arg_0], rbp                                           ; +0x27, 0x1800f5c67\nxor     ebp, ebp                                                       ; +0x2c, 0x1800f5c6c\ncmp     [rdi+18h], ebp                                                 ; +0x2e, 0x1800f5c6e\njle     short loc_1800F5CAC                                            ; +0x31, 0x1800f5c71\nmov     [rsp+28h+arg_8], rsi                                           ; +0x33, 0x1800f5c73\nxor     esi, esi                                                       ; +0x38, 0x1800f5c78\ncmp     [rdi+1Ch], esi                                                 ; +0x3a, 0x1800f5c7a\njle     short loc_1800F5CA0                                            ; +0x3d, 0x1800f5c7d\nnop                                                                    ; +0x3f, 0x1800f5c7f\nmov     eax, ebp                                                       ; +0x40, 0x1800f5c80\nimul    eax, [rdi+1Ch]                                                 ; +0x42, 0x1800f5c82\nadd     eax, esi                                                       ; +0x46, 0x1800f5c86\nmovsxd  rcx, eax                                                       ; +0x48, 0x1800f5c88\nmov     rax, [rdi+38h]                                                 ; +0x4b, 0x1800f5c8b\nmov     rcx, [rax+rcx*8]                                               ; +0x4f, 0x1800f5c8f\nmov     rax, [rcx]                                                     ; +0x53, 0x1800f5c93\ncall    qword ptr [rax+28h]                                            ; +0x56, 0x1800f5c96\ninc     esi                                                            ; +0x59, 0x1800f5c99\ncmp     esi, [rdi+1Ch]                                                 ; +0x5b, 0x1800f5c9b\njl      short loc_1800F5C80                                            ; +0x5e, 0x1800f5c9e\ninc     ebp                                                            ; +0x60, 0x1800f5ca0\ncmp     ebp, [rdi+18h]                                                 ; +0x62, 0x1800f5ca2\njl      short loc_1800F5C78                                            ; +0x65, 0x1800f5ca5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x67, 0x1800f5ca7\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x6c, 0x1800f5cac\nmov     dword ptr [rdi+30h], 0                                         ; +0x71, 0x1800f5cb1\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x78, 0x1800f5cb8\ntest    rbx, rbx                                                       ; +0x7d, 0x1800f5cbd\njz      short loc_1800F5CCB                                            ; +0x80, 0x1800f5cc0\nmov     rax, [rbx]                                                     ; +0x82, 0x1800f5cc2\nmov     rcx, rbx                                                       ; +0x85, 0x1800f5cc5\ncall    qword ptr [rax+20h]                                            ; +0x88, 0x1800f5cc8\nxor     eax, eax                                                       ; +0x8b, 0x1800f5ccb\nadd     rsp, 20h                                                       ; +0x8d, 0x1800f5ccd\npop     rbx                                                            ; +0x91, 0x1800f5cd1\nretn                                                                   ; +0x92, 0x1800f5cd2", "xrefs": ["<???> @ 0x18018ec68", "<???> @ 0x18018ecc0", "<???> @ 0x1801b0100", "<???> @ 0x1802008fc"], "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"}