{"type": "func", "start": 6443323808, "end": 6443323893, "name": "sub_1800D51A0", "pseudocode": "// \n// sub_1800D51A0 from 0x1800d51a0 to 0x1800d51f5 (85 bytes)\n// \n// 4 xrefs:\n// > sub_180018CF0 @ 0x180018d32\n// > sub_180025F50 @ 0x180025f92\n// > sub_1800363B0 @ 0x1800363f2\n// > sub_18003D900 @ 0x18003d942\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:54:10 +0000\n// \n\n__int64 __fastcall sub_1800D51A0(__int64 a1, _DWORD *a2, int a3)\n{\n  if ( a3 == 256 )\n  {\n    *a2 = *(_DWORD *)(a1 + 2284);\n    return 0;\n  }\n  else if ( a3 == 1024 )\n  {\n    *a2 = *(_DWORD *)(a1 + 2288);\n    return 0;\n  }\n  else\n  {\n    if ( a3 == 512 )\n      *a2 = *(_DWORD *)(*(_QWORD *)(a1 + 632) + 16LL * *(unsigned __int8 *)(*(int *)(a1 + 3068) + a1 + 656));\n    return 0;\n  }\n}", "assembly": "; \n; sub_1800D51A0 from 0x1800d51a0 to 0x1800d51f5 (85 bytes)\n; \n; 4 xrefs:\n; > sub_180018CF0 @ 0x180018d32\n; > sub_180025F50 @ 0x180025f92\n; > sub_1800363B0 @ 0x1800363f2\n; > sub_18003D900 @ 0x18003d942\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:54:10 +0000\n; \nmov     r9, rcx                                                        ; +0x0, 0x1800d51a0\ncmp     r8d, 100h                                                      ; +0x3, 0x1800d51a3\njnz     short loc_1800D51B7                                            ; +0xa, 0x1800d51aa\nmov     eax, [rcx+8ECh]                                                ; +0xc, 0x1800d51ac\nmov     [rdx], eax                                                     ; +0x12, 0x1800d51b2\nxor     eax, eax                                                       ; +0x14, 0x1800d51b4\nretn                                                                   ; +0x16, 0x1800d51b6\ncmp     r8d, 400h                                                      ; +0x17, 0x1800d51b7\njnz     short loc_1800D51CB                                            ; +0x1e, 0x1800d51be\nmov     eax, [rcx+8F0h]                                                ; +0x20, 0x1800d51c0\nmov     [rdx], eax                                                     ; +0x26, 0x1800d51c6\nxor     eax, eax                                                       ; +0x28, 0x1800d51c8\nretn                                                                   ; +0x2a, 0x1800d51ca\ncmp     r8d, 200h                                                      ; +0x2b, 0x1800d51cb\njnz     short loc_1800D51F2                                            ; +0x32, 0x1800d51d2\nmovsxd  rax, dword ptr [rcx+0BFCh]                                     ; +0x34, 0x1800d51d4\nmovzx   ecx, byte ptr [rax+rcx+290h]                                   ; +0x3b, 0x1800d51db\nmov     rax, [r9+278h]                                                 ; +0x43, 0x1800d51e3\nadd     rcx, rcx                                                       ; +0x4a, 0x1800d51ea\nmov     ecx, [rax+rcx*8]                                               ; +0x4d, 0x1800d51ed\nmov     [rdx], ecx                                                     ; +0x50, 0x1800d51f0\nxor     eax, eax                                                       ; +0x52, 0x1800d51f2\nretn                                                                   ; +0x54, 0x1800d51f4", "xrefs": ["sub_180018CF0 @ 0x180018d32", "sub_180025F50 @ 0x180025f92", "sub_1800363B0 @ 0x1800363f2", "sub_18003D900 @ 0x18003d942"], "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"}