{"type": "func", "start": 6442820160, "end": 6442820323, "name": "sub_18005A240", "pseudocode": "// \n// sub_18005A240 from 0x18005a240 to 0x18005a2e3 (163 bytes)\n// \n// 10 xrefs:\n// > sub_180068660 @ 0x18006867f\n// > sub_1800696B0 @ 0x1800696d1\n// > sub_1800923A0 @ 0x18009243e\n// > sub_180092F10 @ 0x1800930b3\n// > sub_180098A50 @ 0x180099176\n// > sub_1800E1DB0 @ 0x1800e1e8b\n// > sub_1800E9660 @ 0x1800e96f8\n// > sub_1800E98E0 @ 0x1800e9935\n// > sub_180107B20 @ 0x180107b35\n// > <???> @ 0x1801f8f64\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:53:21 +0000\n// \n\n__int64 __fastcall sub_18005A240(__int64 *a1, __int64 a2, char a3)\n{\n  __int64 v5; // rdx\n  __int64 v6; // rdx\n\n  if ( (_BYTE)a2 )\n  {\n    v5 = *a1;\n    *((_DWORD *)a1 + 26) = 1065353216;\n    *((_DWORD *)a1 + 33) = 0;\n    sub_1800EC270(a1 + 7, v5);\n    sub_1800EC270(a1 + 9, *a1);\n    if ( a3 )\n    {\n      v6 = *a1;\n      a1[18] = 1065353216;\n      a1[17] = 0;\n      sub_1800EC270(a1 + 19, v6);\n    }\n  }\n  *((_DWORD *)a1 + 32) = *((_DWORD *)a1 + 26);\n  a1[15] = 1065353216;\n  *(__int64 *)((char *)a1 + 108) = 0;\n  *((_DWORD *)a1 + 33) = 0;\n  *((_DWORD *)a1 + 29) = 1065353216;\n  sub_18005A480(a1, a2);\n  return 0;\n}", "assembly": "; \n; sub_18005A240 from 0x18005a240 to 0x18005a2e3 (163 bytes)\n; \n; 10 xrefs:\n; > sub_180068660 @ 0x18006867f\n; > sub_1800696B0 @ 0x1800696d1\n; > sub_1800923A0 @ 0x18009243e\n; > sub_180092F10 @ 0x1800930b3\n; > sub_180098A50 @ 0x180099176\n; > sub_1800E1DB0 @ 0x1800e1e8b\n; > sub_1800E9660 @ 0x1800e96f8\n; > sub_1800E98E0 @ 0x1800e9935\n; > sub_180107B20 @ 0x180107b35\n; > <???> @ 0x1801f8f64\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:53:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005a240\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18005a245\npush    rdi                                                            ; +0xa, 0x18005a24a\nsub     rsp, 20h                                                       ; +0xb, 0x18005a24b\nxor     esi, esi                                                       ; +0xf, 0x18005a24f\nmovzx   edi, r8b                                                       ; +0x11, 0x18005a251\nmov     rbx, rcx                                                       ; +0x15, 0x18005a255\ntest    dl, dl                                                         ; +0x18, 0x18005a258\njz      short loc_18005A2A7                                            ; +0x1a, 0x18005a25a\nmov     rdx, [rbx]                                                     ; +0x1c, 0x18005a25c\nmov     dword ptr [rcx+68h], 3F800000h                                 ; +0x1f, 0x18005a25f\nmov     [rcx+84h], esi                                                 ; +0x26, 0x18005a266\nadd     rcx, 38h ; '8'                                                 ; +0x2c, 0x18005a26c\ncall    sub_1800EC270                                                  ; +0x30, 0x18005a270\nmov     rdx, [rbx]                                                     ; +0x35, 0x18005a275\nlea     rcx, [rbx+48h]                                                 ; +0x38, 0x18005a278\ncall    sub_1800EC270                                                  ; +0x3c, 0x18005a27c\ntest    dil, dil                                                       ; +0x41, 0x18005a281\njz      short loc_18005A2A7                                            ; +0x44, 0x18005a284\nmov     rdx, [rbx]                                                     ; +0x46, 0x18005a286\nlea     rcx, [rbx+98h]                                                 ; +0x49, 0x18005a289\nmov     qword ptr [rbx+90h], 3F800000h                                 ; +0x50, 0x18005a290\nmov     [rbx+88h], rsi                                                 ; +0x5b, 0x18005a29b\ncall    sub_1800EC270                                                  ; +0x62, 0x18005a2a2\nmov     eax, [rbx+68h]                                                 ; +0x67, 0x18005a2a7\nmov     rcx, rbx                                                       ; +0x6a, 0x18005a2aa\nmov     [rbx+80h], eax                                                 ; +0x6d, 0x18005a2ad\nmov     qword ptr [rbx+78h], 3F800000h                                 ; +0x73, 0x18005a2b3\nmov     [rbx+6Ch], rsi                                                 ; +0x7b, 0x18005a2bb\nmov     [rbx+84h], esi                                                 ; +0x7f, 0x18005a2bf\nmov     dword ptr [rbx+74h], 3F800000h                                 ; +0x85, 0x18005a2c5\ncall    sub_18005A480                                                  ; +0x8c, 0x18005a2cc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x91, 0x18005a2d1\nxor     eax, eax                                                       ; +0x96, 0x18005a2d6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x98, 0x18005a2d8\nadd     rsp, 20h                                                       ; +0x9d, 0x18005a2dd\npop     rdi                                                            ; +0xa1, 0x18005a2e1\nretn                                                                   ; +0xa2, 0x18005a2e2", "xrefs": ["sub_180068660 @ 0x18006867f", "sub_1800696B0 @ 0x1800696d1", "sub_1800923A0 @ 0x18009243e", "sub_180092F10 @ 0x1800930b3", "sub_180098A50 @ 0x180099176", "sub_1800E1DB0 @ 0x1800e1e8b", "sub_1800E9660 @ 0x1800e96f8", "sub_1800E98E0 @ 0x1800e9935", "sub_180107B20 @ 0x180107b35", "<???> @ 0x1801f8f64"], "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"}