; ; sub_18005ADD0 from 0x18005add0 to 0x18005af56 (390 bytes) ; ; 2 xrefs: ; > sub_1800FC980 @ 0x1800fcd06 ; > @ 0x1801f8fdc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x18005add0 push rdi ; +0x5, 0x18005add5 sub rsp, 40h ; +0x6, 0x18005add6 movaps [rsp+48h+var_18], xmm6 ; +0xa, 0x18005adda movaps xmm6, xmm1 ; +0xf, 0x18005addf mov rbx, rcx ; +0x12, 0x18005ade2 test r8b, r8b ; +0x15, 0x18005ade5 jz loc_18005AEB6 ; +0x18, 0x18005ade8 cmp qword ptr [rcx+0A0h], 0 ; +0x1e, 0x18005adee jnz short loc_18005AE0E ; +0x26, 0x18005adf6 ucomiss xmm6, dword ptr [rcx+90h] ; +0x28, 0x18005adf8 jnz short loc_18005AE0E ; +0x2f, 0x18005adff cmp dword ptr [rcx+94h], 0 ; +0x31, 0x18005ae01 jz loc_18005AF44 ; +0x38, 0x18005ae08 mov rdx, [rcx] ; +0x3e, 0x18005ae0e xor edi, edi ; +0x41, 0x18005ae11 mov [rcx+94h], edi ; +0x43, 0x18005ae13 mov [rcx+88h], rdi ; +0x49, 0x18005ae19 movss dword ptr [rcx+90h], xmm6 ; +0x50, 0x18005ae20 add rcx, 98h ; +0x58, 0x18005ae28 call sub_1800EC270 ; +0x5f, 0x18005ae2f movzx eax, word ptr [rbx+98h] ; +0x64, 0x18005ae34 lea r8d, [rdi+18h] ; +0x6b, 0x18005ae3b mov [rbx+98h], ax ; +0x6f, 0x18005ae3f lea rdx, [rsp+48h+arg_18] ; +0x76, 0x18005ae46 movzx eax, word ptr [rbx+9Ah] ; +0x7b, 0x18005ae4b mov r9b, 1 ; +0x82, 0x18005ae52 mov [rbx+9Ah], ax ; +0x85, 0x18005ae55 mov [rbx+0A0h], rdi ; +0x8c, 0x18005ae5c mov rcx, [rbx] ; +0x93, 0x18005ae63 call sub_1800FCF40 ; +0x96, 0x18005ae66 test eax, eax ; +0x9b, 0x18005ae6b jnz loc_18005AF46 ; +0x9d, 0x18005ae6d mov rax, [rsp+48h+arg_18] ; +0xa3, 0x18005ae73 mov r8b, 1 ; +0xa8, 0x18005ae78 mov byte ptr [rax], 0Bh ; +0xab, 0x18005ae7b mov rax, [rsp+48h+arg_18] ; +0xae, 0x18005ae7e mov [rax+8], rbx ; +0xb3, 0x18005ae83 mov rax, [rsp+48h+arg_18] ; +0xb7, 0x18005ae87 movss dword ptr [rax+10h], xmm6 ; +0xbc, 0x18005ae8c mov rdx, [rsp+48h+arg_18] ; +0xc1, 0x18005ae91 mov rcx, [rbx] ; +0xc6, 0x18005ae96 call sub_1800FD370 ; +0xc9, 0x18005ae99 test eax, eax ; +0xce, 0x18005ae9e jz loc_18005AF44 ; +0xd0, 0x18005aea0 mov rbx, [rsp+48h+arg_0] ; +0xd6, 0x18005aea6 movaps xmm6, [rsp+48h+var_18] ; +0xdb, 0x18005aeab add rsp, 40h ; +0xe0, 0x18005aeb0 pop rdi ; +0xe4, 0x18005aeb4 retn ; +0xe5, 0x18005aeb5 mov rdx, [rcx+40h] ; +0xe6, 0x18005aeb6 test rdx, rdx ; +0xea, 0x18005aeba jz short loc_18005AEDD ; +0xed, 0x18005aebd mov rcx, [rcx] ; +0xef, 0x18005aebf lea r8, byte_18014572F ; +0xf2, 0x18005aec2 add rcx, 108C8h ; +0xf9, 0x18005aec9 mov byte ptr [rsp+48h+var_28], 1 ; +0x100, 0x18005aed0 xor r9d, r9d ; +0x105, 0x18005aed5 call sub_1800B6AA0 ; +0x108, 0x18005aed8 movzx eax, word ptr [rbx+38h] ; +0x10d, 0x18005aedd xor edi, edi ; +0x111, 0x18005aee1 mov [rbx+38h], ax ; +0x113, 0x18005aee3 movzx eax, word ptr [rbx+3Ah] ; +0x117, 0x18005aee7 mov [rbx+3Ah], ax ; +0x11b, 0x18005aeeb mov [rbx+40h], rdi ; +0x11f, 0x18005aeef mov rdx, [rbx+50h] ; +0x123, 0x18005aef3 test rdx, rdx ; +0x127, 0x18005aef7 jz short loc_18005AF1A ; +0x12a, 0x18005aefa mov rcx, [rbx] ; +0x12c, 0x18005aefc lea r8, byte_18014572F ; +0x12f, 0x18005aeff add rcx, 108C8h ; +0x136, 0x18005af06 mov byte ptr [rsp+48h+var_28], 1 ; +0x13d, 0x18005af0d xor r9d, r9d ; +0x142, 0x18005af12 call sub_1800B6AA0 ; +0x145, 0x18005af15 movzx eax, word ptr [rbx+48h] ; +0x14a, 0x18005af1a mov [rbx+48h], ax ; +0x14e, 0x18005af1e movzx eax, word ptr [rbx+4Ah] ; +0x152, 0x18005af22 mov [rbx+4Ah], ax ; +0x156, 0x18005af26 movss dword ptr [rbx+68h], xmm6 ; +0x15a, 0x18005af2a movss dword ptr [rbx+80h], xmm6 ; +0x15f, 0x18005af2f mov [rbx+50h], rdi ; +0x167, 0x18005af37 mov [rbx+6Ch], edi ; +0x16b, 0x18005af3b mov [rbx+84h], edi ; +0x16e, 0x18005af3e xor eax, eax ; +0x174, 0x18005af44 mov rbx, [rsp+48h+arg_0] ; +0x176, 0x18005af46 movaps xmm6, [rsp+48h+var_18] ; +0x17b, 0x18005af4b add rsp, 40h ; +0x180, 0x18005af50 pop rdi ; +0x184, 0x18005af54 retn ; +0x185, 0x18005af55