{"type": "func", "start": 6442785552, "end": 6442785678, "name": "sub_180051B10", "pseudocode": "// \n// sub_180051B10 from 0x180051b10 to 0x180051b8e (126 bytes)\n// \n// 9 xrefs:\n// > sub_180033290 @ 0x180033805\n// > sub_1800510D0 @ 0x1800513cf\n// > sub_180051410 @ 0x180051456\n// > sub_180051410 @ 0x1800519e5\n// > sub_180051B10 @ 0x180051b4a\n// > sub_180051B90 @ 0x180051f6d\n// > <???> @ 0x180181c74\n// > <???> @ 0x180181c84\n// > <???> @ 0x1801f8a60\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:17 +0000\n// \n\n__int64 __fastcall sub_180051B10(__int64 a1, int a2)\n{\n  int v3; // eax\n  __int64 v4; // rsi\n  unsigned int v5; // edi\n\n  if ( *(int *)(a1 + 128) < 2 )\n    return -131;\n  if ( !*(_DWORD *)(a1 + 8) )\n    return -131;\n  v3 = *(_DWORD *)(a1 + 64);\n  if ( a2 >= v3 )\n    return -131;\n  if ( a2 >= 0 )\n    return *(_QWORD *)(*(_QWORD *)(a1 + 96) + 16LL * a2 + 8);\n  v4 = 0;\n  v5 = 0;\n  if ( v3 > 0 )\n  {\n    do\n      v4 += sub_180051B10(a1, v5++);\n    while ( (signed int)v5 < *(_DWORD *)(a1 + 64) );\n  }\n  return v4;\n}", "assembly": "; \n; sub_180051B10 from 0x180051b10 to 0x180051b8e (126 bytes)\n; \n; 9 xrefs:\n; > sub_180033290 @ 0x180033805\n; > sub_1800510D0 @ 0x1800513cf\n; > sub_180051410 @ 0x180051456\n; > sub_180051410 @ 0x1800519e5\n; > sub_180051B10 @ 0x180051b4a\n; > sub_180051B90 @ 0x180051f6d\n; > <???> @ 0x180181c74\n; > <???> @ 0x180181c84\n; > <???> @ 0x1801f8a60\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:17 +0000\n; \npush    rbx                                                            ; +0x0, 0x180051b10\nsub     rsp, 20h                                                       ; +0x2, 0x180051b12\ncmp     dword ptr [rcx+80h], 2                                         ; +0x6, 0x180051b16\nmov     rbx, rcx                                                       ; +0xd, 0x180051b1d\njl      short loc_180051B81                                            ; +0x10, 0x180051b20\ncmp     dword ptr [rcx+8], 0                                           ; +0x12, 0x180051b22\njz      short loc_180051B81                                            ; +0x16, 0x180051b26\nmov     eax, [rcx+40h]                                                 ; +0x18, 0x180051b28\ncmp     edx, eax                                                       ; +0x1b, 0x180051b2b\njge     short loc_180051B81                                            ; +0x1d, 0x180051b2d\ntest    edx, edx                                                       ; +0x1f, 0x180051b2f\njns     short loc_180051B6C                                            ; +0x21, 0x180051b31\nmov     [rsp+28h+arg_0], rsi                                           ; +0x23, 0x180051b33\nxor     esi, esi                                                       ; +0x28, 0x180051b38\nmov     [rsp+28h+arg_8], rdi                                           ; +0x2a, 0x180051b3a\nmov     edi, esi                                                       ; +0x2f, 0x180051b3f\ntest    eax, eax                                                       ; +0x31, 0x180051b41\njle     short loc_180051B59                                            ; +0x33, 0x180051b43\nmov     edx, edi                                                       ; +0x35, 0x180051b45\nmov     rcx, rbx                                                       ; +0x37, 0x180051b47\ncall    sub_180051B10                                                  ; +0x3a, 0x180051b4a\nadd     rsi, rax                                                       ; +0x3f, 0x180051b4f\ninc     edi                                                            ; +0x42, 0x180051b52\ncmp     edi, [rbx+40h]                                                 ; +0x44, 0x180051b54\njl      short loc_180051B45                                            ; +0x47, 0x180051b57\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x49, 0x180051b59\nmov     rax, rsi                                                       ; +0x4e, 0x180051b5e\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x51, 0x180051b61\nadd     rsp, 20h                                                       ; +0x56, 0x180051b66\npop     rbx                                                            ; +0x5a, 0x180051b6a\nretn                                                                   ; +0x5b, 0x180051b6b\nlea     eax, [rdx+rdx]                                                 ; +0x5c, 0x180051b6c\nmovsxd  rcx, eax                                                       ; +0x5f, 0x180051b6f\nmov     rax, [rbx+60h]                                                 ; +0x62, 0x180051b72\nmov     rax, [rax+rcx*8+8]                                             ; +0x66, 0x180051b76\nadd     rsp, 20h                                                       ; +0x6b, 0x180051b7b\npop     rbx                                                            ; +0x6f, 0x180051b7f\nretn                                                                   ; +0x70, 0x180051b80\nmov     rax, 0FFFFFFFFFFFFFF7Dh                                        ; +0x71, 0x180051b81\nadd     rsp, 20h                                                       ; +0x78, 0x180051b88\npop     rbx                                                            ; +0x7c, 0x180051b8c\nretn                                                                   ; +0x7d, 0x180051b8d", "xrefs": ["sub_180033290 @ 0x180033805", "sub_1800510D0 @ 0x1800513cf", "sub_180051410 @ 0x180051456", "sub_180051410 @ 0x1800519e5", "sub_180051B10 @ 0x180051b4a", "sub_180051B90 @ 0x180051f6d", "<???> @ 0x180181c74", "<???> @ 0x180181c84", "<???> @ 0x1801f8a60"], "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"}