{"type": "func", "start": 6442781632, "end": 6442781703, "name": "sub_180050BC0", "pseudocode": "// \n// sub_180050BC0 from 0x180050bc0 to 0x180050c07 (71 bytes)\n// \n// 1 xrefs:\n// > sub_180033290 @ 0x1800336b2\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_180050BC0(__int64 a1, int a2)\n{\n  if ( !*(_DWORD *)(a1 + 8) )\n    return *(_QWORD *)(a1 + 104);\n  if ( a2 < 0 )\n  {\n    if ( *(int *)(a1 + 128) >= 3 )\n      return *(_QWORD *)(a1 + 104) + 40LL * *(int *)(a1 + 136);\n    return *(_QWORD *)(a1 + 104);\n  }\n  if ( a2 < *(_DWORD *)(a1 + 64) )\n    return *(_QWORD *)(a1 + 104) + 40LL * a2;\n  else\n    return 0;\n}", "assembly": "; \n; sub_180050BC0 from 0x180050bc0 to 0x180050c07 (71 bytes)\n; \n; 1 xrefs:\n; > sub_180033290 @ 0x1800336b2\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; \ncmp     dword ptr [rcx+8], 0                                           ; +0x0, 0x180050bc0\nmov     r8, rcx                                                        ; +0x4, 0x180050bc4\njz      short loc_180050C02                                            ; +0x7, 0x180050bc7\ntest    edx, edx                                                       ; +0x9, 0x180050bc9\njns     short loc_180050BEA                                            ; +0xb, 0x180050bcb\ncmp     dword ptr [rcx+80h], 3                                         ; +0xd, 0x180050bcd\njl      short loc_180050C02                                            ; +0x14, 0x180050bd4\nmovsxd  rax, dword ptr [rcx+88h]                                       ; +0x16, 0x180050bd6\nlea     rdx, [rax+rax*4]                                               ; +0x1d, 0x180050bdd\nmov     rax, [rcx+68h]                                                 ; +0x21, 0x180050be1\nlea     rax, [rax+rdx*8]                                               ; +0x25, 0x180050be5\nretn                                                                   ; +0x29, 0x180050be9\ncmp     edx, [rcx+40h]                                                 ; +0x2a, 0x180050bea\njl      short loc_180050BF2                                            ; +0x2d, 0x180050bed\nxor     eax, eax                                                       ; +0x2f, 0x180050bef\nretn                                                                   ; +0x31, 0x180050bf1\nmovsxd  rax, edx                                                       ; +0x32, 0x180050bf2\nlea     rcx, [rax+rax*4]                                               ; +0x35, 0x180050bf5\nmov     rax, [r8+68h]                                                  ; +0x39, 0x180050bf9\nlea     rax, [rax+rcx*8]                                               ; +0x3d, 0x180050bfd\nretn                                                                   ; +0x41, 0x180050c01\nmov     rax, [rcx+68h]                                                 ; +0x42, 0x180050c02\nretn                                                                   ; +0x46, 0x180050c06", "xrefs": ["sub_180033290 @ 0x1800336b2"], "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"}