{"type": "func", "start": 6443356528, "end": 6443356630, "name": "sub_1800DD170", "pseudocode": "// \n// sub_1800DD170 from 0x1800dd170 to 0x1800dd1d6 (102 bytes)\n// \n// 5 xrefs:\n// > sub_1800DE150 @ 0x1800de2a5\n// > sub_1800DE460 @ 0x1800de607\n// > sub_1800DE730 @ 0x1800de75c\n// > sub_1800DE7C0 @ 0x1800de7ce\n// > sub_1800DE830 @ 0x1800ded0e\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 11:22:35 +0000\n// \n\n__int64 __fastcall sub_1800DD170(__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_1801B5290 + 1);\n  if ( *(&xmmword_1801B5290 + 1) )\n    return (*(&xmmword_1801B5290 + 1))((unsigned int)((a1 - (__int64)&unk_1801B3FF8) / 288), a2);\n  return result;\n}", "assembly": "; \n; sub_1800DD170 from 0x1800dd170 to 0x1800dd1d6 (102 bytes)\n; \n; 5 xrefs:\n; > sub_1800DE150 @ 0x1800de2a5\n; > sub_1800DE460 @ 0x1800de607\n; > sub_1800DE730 @ 0x1800de75c\n; > sub_1800DE7C0 @ 0x1800de7ce\n; > sub_1800DE830 @ 0x1800ded0e\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 11:22:35 +0000\n; \nlea     rax, unk_1801B3FF8                                             ; +0x0, 0x1800dd170\nmov     r9d, edx                                                       ; +0x7, 0x1800dd177\nmov     r8, rcx                                                        ; +0xa, 0x1800dd17a\nsub     r8, rax                                                        ; +0xd, 0x1800dd17d\nmov     rax, 0E38E38E38E38E39h                                         ; +0x10, 0x1800dd180\nimul    r8                                                             ; +0x1a, 0x1800dd18a\nmov     r8, rdx                                                        ; +0x1d, 0x1800dd18d\nsar     r8, 4                                                          ; +0x20, 0x1800dd190\nmov     rax, r8                                                        ; +0x24, 0x1800dd194\nshr     rax, 3Fh                                                       ; +0x27, 0x1800dd197\nadd     r8, rax                                                        ; +0x2b, 0x1800dd19b\ncmp     r9d, 40001h                                                    ; +0x2e, 0x1800dd19e\njnz     short loc_1800DD1B0                                            ; +0x35, 0x1800dd1a5\nmov     dword ptr [rcx+4], 1                                           ; +0x37, 0x1800dd1a7\njmp     short loc_1800DD1C0                                            ; +0x3e, 0x1800dd1ae\ncmp     r9d, 40002h                                                    ; +0x40, 0x1800dd1b0\njnz     short loc_1800DD1C0                                            ; +0x47, 0x1800dd1b7\nmov     dword ptr [rcx+4], 0                                           ; +0x49, 0x1800dd1b9\nmov     rax, qword ptr cs:xmmword_1801B5290+8                          ; +0x50, 0x1800dd1c0\ntest    rax, rax                                                       ; +0x57, 0x1800dd1c7\njz      short locret_1800DD1D5                                         ; +0x5a, 0x1800dd1ca\nmov     edx, r9d                                                       ; +0x5c, 0x1800dd1cc\nmov     ecx, r8d                                                       ; +0x5f, 0x1800dd1cf\njmp     rax                                                            ; +0x62, 0x1800dd1d2\nretn                                                                   ; +0x65, 0x1800dd1d5", "xrefs": ["sub_1800DE150 @ 0x1800de2a5", "sub_1800DE460 @ 0x1800de607", "sub_1800DE730 @ 0x1800de75c", "sub_1800DE7C0 @ 0x1800de7ce", "sub_1800DE830 @ 0x1800ded0e"], "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"}