{"type": "func", "start": 6442781568, "end": 6442781628, "name": "sub_180050B80", "pseudocode": "// \n// sub_180050B80 from 0x180050b80 to 0x180050bbc (60 bytes)\n// \n// 2 xrefs:\n// > sub_180033290 @ 0x1800336c9\n// > sub_1800338B0 @ 0x180033a8a\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_180050B80(__int64 a1, int a2)\n{\n  if ( !*(_DWORD *)(a1 + 8) )\n    return *(_QWORD *)(a1 + 112);\n  if ( a2 < 0 )\n  {\n    if ( *(int *)(a1 + 128) >= 3 )\n      return *(_QWORD *)(a1 + 112) + 32LL * *(int *)(a1 + 136);\n    return *(_QWORD *)(a1 + 112);\n  }\n  if ( a2 < *(_DWORD *)(a1 + 64) )\n    return *(_QWORD *)(a1 + 112) + 32LL * a2;\n  else\n    return 0;\n}", "assembly": "; \n; sub_180050B80 from 0x180050b80 to 0x180050bbc (60 bytes)\n; \n; 2 xrefs:\n; > sub_180033290 @ 0x1800336c9\n; > sub_1800338B0 @ 0x180033a8a\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\ncmp     dword ptr [rcx+8], 0                                           ; +0x0, 0x180050b80\njz      short loc_180050BB7                                            ; +0x4, 0x180050b84\ntest    edx, edx                                                       ; +0x6, 0x180050b86\njns     short loc_180050BA3                                            ; +0x8, 0x180050b88\ncmp     dword ptr [rcx+80h], 3                                         ; +0xa, 0x180050b8a\njl      short loc_180050BB7                                            ; +0x11, 0x180050b91\nmovsxd  rax, dword ptr [rcx+88h]                                       ; +0x13, 0x180050b93\nshl     rax, 5                                                         ; +0x1a, 0x180050b9a\nadd     rax, [rcx+70h]                                                 ; +0x1e, 0x180050b9e\nretn                                                                   ; +0x22, 0x180050ba2\ncmp     edx, [rcx+40h]                                                 ; +0x23, 0x180050ba3\njl      short loc_180050BAB                                            ; +0x26, 0x180050ba6\nxor     eax, eax                                                       ; +0x28, 0x180050ba8\nretn                                                                   ; +0x2a, 0x180050baa\nmovsxd  rax, edx                                                       ; +0x2b, 0x180050bab\nshl     rax, 5                                                         ; +0x2e, 0x180050bae\nadd     rax, [rcx+70h]                                                 ; +0x32, 0x180050bb2\nretn                                                                   ; +0x36, 0x180050bb6\nmov     rax, [rcx+70h]                                                 ; +0x37, 0x180050bb7\nretn                                                                   ; +0x3b, 0x180050bbb", "xrefs": ["sub_180033290 @ 0x1800336c9", "sub_1800338B0 @ 0x180033a8a"], "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"}