{"type": "func", "start": 6442752064, "end": 6442752115, "name": "sub_180049840", "pseudocode": "// \n// sub_180049840 from 0x180049840 to 0x180049873 (51 bytes)\n// \n// 5 xrefs:\n// > sub_18004B0F0 @ 0x18004b224\n// > sub_18004B0F0 @ 0x18004b2ae\n// > sub_18004F360 @ 0x18004f476\n// > sub_18004F5A0 @ 0x18004f6f8\n// > <???> @ 0x1801f8448\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_180049840(__int64 a1)\n{\n  int v2; // eax\n\n  if ( *(int *)(a1 + 8) <= 0 )\n    return 0xFFFFFFFFLL;\n  v2 = sub_18004A6B0();\n  if ( v2 < 0 )\n    return 0xFFFFFFFFLL;\n  else\n    return *(unsigned int *)(*(_QWORD *)(a1 + 40) + 4LL * v2);\n}", "assembly": "; \n; sub_180049840 from 0x180049840 to 0x180049873 (51 bytes)\n; \n; 5 xrefs:\n; > sub_18004B0F0 @ 0x18004b224\n; > sub_18004B0F0 @ 0x18004b2ae\n; > sub_18004F360 @ 0x18004f476\n; > sub_18004F5A0 @ 0x18004f6f8\n; > <???> @ 0x1801f8448\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, 0x180049840\nsub     rsp, 20h                                                       ; +0x2, 0x180049842\ncmp     dword ptr [rcx+8], 0                                           ; +0x6, 0x180049846\nmov     rbx, rcx                                                       ; +0xa, 0x18004984a\njle     short loc_180049868                                            ; +0xd, 0x18004984d\ncall    sub_18004A6B0                                                  ; +0xf, 0x18004984f\ntest    eax, eax                                                       ; +0x14, 0x180049854\njs      short loc_180049868                                            ; +0x16, 0x180049856\nmovsxd  rdx, eax                                                       ; +0x18, 0x180049858\nmov     rax, [rbx+28h]                                                 ; +0x1b, 0x18004985b\nmov     eax, [rax+rdx*4]                                               ; +0x1f, 0x18004985f\nadd     rsp, 20h                                                       ; +0x22, 0x180049862\npop     rbx                                                            ; +0x26, 0x180049866\nretn                                                                   ; +0x27, 0x180049867\nmov     eax, 0FFFFFFFFh                                                ; +0x28, 0x180049868\nadd     rsp, 20h                                                       ; +0x2d, 0x18004986d\npop     rbx                                                            ; +0x31, 0x180049871\nretn                                                                   ; +0x32, 0x180049872", "xrefs": ["sub_18004B0F0 @ 0x18004b224", "sub_18004B0F0 @ 0x18004b2ae", "sub_18004F360 @ 0x18004f476", "sub_18004F5A0 @ 0x18004f6f8", "<???> @ 0x1801f8448"], "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"}