{"type": "func", "start": 6443324480, "end": 6443324582, "name": "sub_1800D5440", "pseudocode": "// \n// sub_1800D5440 from 0x1800d5440 to 0x1800d54a6 (102 bytes)\n// \n// 5 xrefs:\n// > sub_1800DBAE0 @ 0x1800dbc35\n// > sub_1800DBDF0 @ 0x1800dbf97\n// > sub_1800DC0C0 @ 0x1800dc0ec\n// > sub_1800DC150 @ 0x1800dc15e\n// > sub_1800DC1C0 @ 0x1800dc69e\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_1800D5440(__int64 a1, unsigned int a2)\n{\n  __int64 result; // rax\n\n  if ( a2 == 262145 )\n  {\n    *(_DWORD *)(a1 + 4) = 1;\n  }\n  else if ( a2 == 262146 )\n  {\n    *(_DWORD *)(a1 + 4) = 0;\n  }\n  result = (__int64)*(&xmmword_1801AB210 + 1);\n  if ( *(&xmmword_1801AB210 + 1) )\n    return (*(&xmmword_1801AB210 + 1))((unsigned int)((a1 - (__int64)&unk_1801A9F78) / 288), a2);\n  return result;\n}", "assembly": "; \n; sub_1800D5440 from 0x1800d5440 to 0x1800d54a6 (102 bytes)\n; \n; 5 xrefs:\n; > sub_1800DBAE0 @ 0x1800dbc35\n; > sub_1800DBDF0 @ 0x1800dbf97\n; > sub_1800DC0C0 @ 0x1800dc0ec\n; > sub_1800DC150 @ 0x1800dc15e\n; > sub_1800DC1C0 @ 0x1800dc69e\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\nlea     rax, unk_1801A9F78                                             ; +0x0, 0x1800d5440\nmov     r9d, edx                                                       ; +0x7, 0x1800d5447\nmov     r8, rcx                                                        ; +0xa, 0x1800d544a\nsub     r8, rax                                                        ; +0xd, 0x1800d544d\nmov     rax, 0E38E38E38E38E39h                                         ; +0x10, 0x1800d5450\nimul    r8                                                             ; +0x1a, 0x1800d545a\nmov     r8, rdx                                                        ; +0x1d, 0x1800d545d\nsar     r8, 4                                                          ; +0x20, 0x1800d5460\nmov     rax, r8                                                        ; +0x24, 0x1800d5464\nshr     rax, 3Fh                                                       ; +0x27, 0x1800d5467\nadd     r8, rax                                                        ; +0x2b, 0x1800d546b\ncmp     r9d, 40001h                                                    ; +0x2e, 0x1800d546e\njnz     short loc_1800D5480                                            ; +0x35, 0x1800d5475\nmov     dword ptr [rcx+4], 1                                           ; +0x37, 0x1800d5477\njmp     short loc_1800D5490                                            ; +0x3e, 0x1800d547e\ncmp     r9d, 40002h                                                    ; +0x40, 0x1800d5480\njnz     short loc_1800D5490                                            ; +0x47, 0x1800d5487\nmov     dword ptr [rcx+4], 0                                           ; +0x49, 0x1800d5489\nmov     rax, qword ptr cs:xmmword_1801AB210+8                          ; +0x50, 0x1800d5490\ntest    rax, rax                                                       ; +0x57, 0x1800d5497\njz      short locret_1800D54A5                                         ; +0x5a, 0x1800d549a\nmov     edx, r9d                                                       ; +0x5c, 0x1800d549c\nmov     ecx, r8d                                                       ; +0x5f, 0x1800d549f\njmp     rax                                                            ; +0x62, 0x1800d54a2\nretn                                                                   ; +0x65, 0x1800d54a5", "xrefs": ["sub_1800DBAE0 @ 0x1800dbc35", "sub_1800DBDF0 @ 0x1800dbf97", "sub_1800DC0C0 @ 0x1800dc0ec", "sub_1800DC150 @ 0x1800dc15e", "sub_1800DC1C0 @ 0x1800dc69e"], "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"}