{"type": "func", "start": 6442468496, "end": 6442468626, "name": "sub_180004490", "pseudocode": "// \n// sub_180004490 from 0x180004490 to 0x180004512 (130 bytes)\n// \n// 2 xrefs:\n// > sub_180017E70 @ 0x180017fb1\n// > <???> @ 0x1801f6270\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_180004490(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rsi\n  int v4; // edi\n  int v5; // ebx\n  int v7; // eax\n\n  v2 = *(_QWORD *)(a1 + 32);\n  v4 = 0;\n  v5 = *(_DWORD *)(v2 + 8);\n  if ( (unsigned int)sub_180001340(a2, 1) )\n    return 4294967161LL;\n  if ( v5 > 1 )\n  {\n    do\n    {\n      ++v4;\n      v5 = (unsigned int)v5 >> 1;\n    }\n    while ( (unsigned int)v5 > 1 );\n  }\n  v7 = sub_180001340(a2, v4);\n  if ( v7 == -1 )\n    return 4294967160LL;\n  else\n    return *(unsigned int *)(v2 + 4LL * *(unsigned __int8 *)(*(_QWORD *)(v2 + 32) + 2LL * v7));\n}", "assembly": "; \n; sub_180004490 from 0x180004490 to 0x180004512 (130 bytes)\n; \n; 2 xrefs:\n; > sub_180017E70 @ 0x180017fb1\n; > <???> @ 0x1801f6270\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_0], rbx                                               ; +0x0, 0x180004490\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180004495\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18000449a\npush    rdi                                                            ; +0xf, 0x18000449f\nsub     rsp, 20h                                                       ; +0x10, 0x1800044a0\nmov     rsi, [rcx+20h]                                                 ; +0x14, 0x1800044a4\nmov     rbp, rdx                                                       ; +0x18, 0x1800044a8\nxor     edi, edi                                                       ; +0x1b, 0x1800044ab\nmov     rcx, rbp                                                       ; +0x1d, 0x1800044ad\nmov     ebx, [rsi+8]                                                   ; +0x20, 0x1800044b0\nlea     edx, [rdi+1]                                                   ; +0x23, 0x1800044b3\ncall    sub_180001340                                                  ; +0x26, 0x1800044b6\ntest    eax, eax                                                       ; +0x2b, 0x1800044bb\njz      short loc_1800044C6                                            ; +0x2d, 0x1800044bd\nmov     eax, 0FFFFFF79h                                                ; +0x2f, 0x1800044bf\njmp     short loc_1800044FD                                            ; +0x34, 0x1800044c4\ncmp     ebx, 1                                                         ; +0x36, 0x1800044c6\njle     short loc_1800044D9                                            ; +0x39, 0x1800044c9\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x1800044cb\ninc     edi                                                            ; +0x40, 0x1800044d0\nshr     ebx, 1                                                         ; +0x42, 0x1800044d2\ncmp     ebx, 1                                                         ; +0x44, 0x1800044d4\nja      short loc_1800044D0                                            ; +0x47, 0x1800044d7\nmov     edx, edi                                                       ; +0x49, 0x1800044d9\nmov     rcx, rbp                                                       ; +0x4b, 0x1800044db\ncall    sub_180001340                                                  ; +0x4e, 0x1800044de\ncmp     eax, 0FFFFFFFFh                                                ; +0x53, 0x1800044e3\njnz     short loc_1800044EF                                            ; +0x56, 0x1800044e6\nmov     eax, 0FFFFFF78h                                                ; +0x58, 0x1800044e8\njmp     short loc_1800044FD                                            ; +0x5d, 0x1800044ed\nmov     rcx, [rsi+20h]                                                 ; +0x5f, 0x1800044ef\nmovsxd  rdx, eax                                                       ; +0x63, 0x1800044f3\nmovzx   eax, byte ptr [rcx+rdx*2]                                      ; +0x66, 0x1800044f6\nmov     eax, [rsi+rax*4]                                               ; +0x6a, 0x1800044fa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6d, 0x1800044fd\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x72, 0x180004502\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x77, 0x180004507\nadd     rsp, 20h                                                       ; +0x7c, 0x18000450c\npop     rdi                                                            ; +0x80, 0x180004510\nretn                                                                   ; +0x81, 0x180004511", "xrefs": ["sub_180017E70 @ 0x180017fb1", "<???> @ 0x1801f6270"], "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"}