{"type": "func", "start": 6442780432, "end": 6442780554, "name": "sub_180050710", "pseudocode": "// \n// sub_180050710 from 0x180050710 to 0x18005078a (122 bytes)\n// \n// 4 xrefs:\n// > sub_1800510D0 @ 0x180051173\n// > sub_180051B90 @ 0x180051d40\n// > sub_180053530 @ 0x18005366d\n// > <???> @ 0x1801f8958\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_180050710(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rbx\n  int v4; // eax\n  unsigned int v5; // edx\n  int v6; // eax\n  int v7[10]; // [rsp+20h] [rbp-28h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 32);\n  sub_180048340((__int64)v7, *(_QWORD *)a2, *(_DWORD *)(a2 + 8));\n  if ( (unsigned int)sub_180048210(v7, 1u) )\n    return 4294967161LL;\n  v4 = *(_DWORD *)(v2 + 8);\n  v5 = 0;\n  if ( v4 > 1 )\n  {\n    do\n    {\n      ++v5;\n      v4 = (unsigned int)v4 >> 1;\n    }\n    while ( (unsigned int)v4 > 1 );\n  }\n  v6 = sub_180048210(v7, v5);\n  if ( v6 == -1 )\n    return 4294967160LL;\n  else\n    return *(unsigned int *)(v2 + 4LL * **(int **)(v2 + 8LL * v6 + 32));\n}", "assembly": "; \n; sub_180050710 from 0x180050710 to 0x18005078a (122 bytes)\n; \n; 4 xrefs:\n; > sub_1800510D0 @ 0x180051173\n; > sub_180051B90 @ 0x180051d40\n; > sub_180053530 @ 0x18005366d\n; > <???> @ 0x1801f8958\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\npush    rbx                                                            ; +0x0, 0x180050710\nsub     rsp, 40h                                                       ; +0x2, 0x180050712\nmov     rbx, [rcx+20h]                                                 ; +0x6, 0x180050716\nlea     rcx, [rsp+48h+var_28]                                          ; +0xa, 0x18005071a\nmov     r8d, [rdx+8]                                                   ; +0xf, 0x18005071f\nmov     rdx, [rdx]                                                     ; +0x13, 0x180050723\ncall    sub_180048340                                                  ; +0x16, 0x180050726\nmov     edx, 1                                                         ; +0x1b, 0x18005072b\nlea     rcx, [rsp+48h+var_28]                                          ; +0x20, 0x180050730\ncall    sub_180048210                                                  ; +0x25, 0x180050735\ntest    eax, eax                                                       ; +0x2a, 0x18005073a\njz      short loc_180050749                                            ; +0x2c, 0x18005073c\nmov     eax, 0FFFFFF79h                                                ; +0x2e, 0x18005073e\nadd     rsp, 40h                                                       ; +0x33, 0x180050743\npop     rbx                                                            ; +0x37, 0x180050747\nretn                                                                   ; +0x38, 0x180050748\nmov     eax, [rbx+8]                                                   ; +0x39, 0x180050749\nxor     edx, edx                                                       ; +0x3c, 0x18005074c\ncmp     eax, 1                                                         ; +0x3e, 0x18005074e\njle     short loc_18005075C                                            ; +0x41, 0x180050751\ninc     edx                                                            ; +0x43, 0x180050753\nshr     eax, 1                                                         ; +0x45, 0x180050755\ncmp     eax, 1                                                         ; +0x47, 0x180050757\nja      short loc_180050753                                            ; +0x4a, 0x18005075a\nlea     rcx, [rsp+48h+var_28]                                          ; +0x4c, 0x18005075c\ncall    sub_180048210                                                  ; +0x51, 0x180050761\ncmp     eax, 0FFFFFFFFh                                                ; +0x56, 0x180050766\njnz     short loc_180050776                                            ; +0x59, 0x180050769\nmov     eax, 0FFFFFF78h                                                ; +0x5b, 0x18005076b\nadd     rsp, 40h                                                       ; +0x60, 0x180050770\npop     rbx                                                            ; +0x64, 0x180050774\nretn                                                                   ; +0x65, 0x180050775\nmovsxd  rcx, eax                                                       ; +0x66, 0x180050776\nmov     rdx, [rbx+rcx*8+20h]                                           ; +0x69, 0x180050779\nmovsxd  rax, dword ptr [rdx]                                           ; +0x6e, 0x18005077e\nmov     eax, [rbx+rax*4]                                               ; +0x71, 0x180050781\nadd     rsp, 40h                                                       ; +0x74, 0x180050784\npop     rbx                                                            ; +0x78, 0x180050788\nretn                                                                   ; +0x79, 0x180050789", "xrefs": ["sub_1800510D0 @ 0x180051173", "sub_180051B90 @ 0x180051d40", "sub_180053530 @ 0x18005366d", "<???> @ 0x1801f8958"], "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"}