Function at 0x1800047ac
Capabilities:
Suspend thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp byte [0x18004057c], 0
mov sil, cl
movaps xmmword [rax - 0x18], xmm6
mov r15d, 1
jne 0x18000495a
lea rcx, [0x1800405b0]
call qword [0x1800406a0]
mov rax, qword [0x1800405b0]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [0x180040660], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], r15d
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003f5e8], eax
movups xmmword [0x18003f5d8], xmm0
call qword [0x1800406a8]
mov ebx, eax
call qword [0x1800406a8]
mov dword [0x18003f690], eax
mov dword [0x18003f688], r15d
mov dword [0x18003f68c], ebx
call qword [0x180040690]
mov rbx, rax
call qword [0x180040690]
mov qword [rbp - 0x24], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x2c], rbx
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003f610], eax
movups xmmword [0x18003f600], xmm0
call qword [0x180040698]
mov ebx, eax
call qword [0x180040698]
mov dword [0x18003f5f8], eax
mov dword [0x18003f5f0], r15d
mov dword [0x18003f5f4], ebx
call fcn.18000173c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [0x180043f28], 0
mov rbx, rax
jne 0x180004902
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
je 0x180004902
lea ecx, [r15 + 0xf]
call fcn.180031d00
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800048ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea edx, [r15 + 0xf]
mov rcx, rdi
call fcn.180031d3c
and qword [0x180043f38], 0
mov dword [0x180043f28], ebx
jmp 0x180004902
mov rax, qword [0x180043f48]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [0x180043f48], rdi
lea rdx, [fcn.1800046e0]
lea rcx, [0x1800406a0]
call fcn.180001ca8
lea rdx, [fcn.18000473c]
lea rcx, [0x1800406a8]
call fcn.180001ca8
lea rdx, [fcn.180004760]
lea rcx, [0x180040690]
call fcn.180001ca8
lea rdx, [fcn.180004788]
lea rcx, [0x180040698]
call fcn.180001ca8
call fcn.1800018f4
mov byte [0x18004057c], r15b
test sil, sil
je 0x180004a70
cmp byte [0x1800405a4], 0
jne 0x180004b5a
movd xmm1, dword [0x1800405fc]
movsd xmm0, qword [0x18003f518]
cvtdq2pd xmm1, xmm1
ucomisd xmm0, xmm1
jp 0x180004990
je 0x180004a64
lea rcx, [0x1800405b0]
call qword [0x1800406a0]
lea rcx, [0x180040660]
call fcn.1800046e0
mov rax, qword [0x180040660]
mov edi, dword [0x1800405fc]
mov qword [rbp - 0x2c], rax
mov rax, qword [0x1800405b0]
mov qword [rbp - 0x24], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], edi
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003f5e8], eax
movups xmmword [0x18003f5d8], xmm0
call fcn.18000473c
mov ebx, eax
call qword [0x1800406a8]
mov dword [0x18003f690], eax
mov eax, dword [0x1800405fc]
mov dword [rbp - 0x30], eax
mov dword [0x18003f688], edi
mov dword [0x18003f68c], ebx
call fcn.180004760
mov qword [rbp - 0x2c], rax
call qword [0x180040690]
mov edi, dword [0x1800405fc]
mov qword [rbp - 0x24], rax
movups xmm0, xmmword [rbp - 0x30]
mov eax, dword [rbp - 0x20]
mov dword [0x18003f610], eax
movups xmmword [0x18003f600], xmm0
call fcn.180004788
mov ebx, eax
call qword [0x180040698]
movd xmm0, dword [0x1800405fc]
cvtdq2pd xmm0, xmm0
mov dword [0x18003f5f0], edi
mov dword [0x18003f5f4], ebx
mov dword [0x18003f5f8], eax
movsd qword [0x18003f518], xmm0
mov byte [0x1800405a4], r15b
jmp 0x180004b5a
cmp byte [0x1800405a4], 0
je 0x180004b5a
movsd xmm6, qword [0x18003a498]
movsd xmm0, qword [0x18003f518]
ucomisd xmm0, xmm6
jp 0x180004a99
je 0x180004b53
lea rcx, [0x1800405b0]
call qword [0x1800406a0]
lea rcx, [0x180040660]
call fcn.1800046e0
mov rax, qword [0x180040660]
mov qword [rbp - 0x2c], rax
mov rax, qword [0x1800405b0]
mov qword [rbp - 0x24], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], r15d
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003f5e8], eax
movups xmmword [0x18003f5d8], xmm0
call fcn.18000473c
mov ebx, eax
call qword [0x1800406a8]
mov dword [0x18003f690], eax
mov dword [0x18003f688], r15d
mov dword [0x18003f68c], ebx
mov dword [rbp - 0x30], r15d
call fcn.180004760
mov qword [rbp - 0x2c], rax
call qword [0x180040690]
mov qword [rbp - 0x24], rax
movups xmm0, xmmword [rbp - 0x30]
mov eax, dword [rbp - 0x20]
mov dword [0x18003f610], eax
movups xmmword [0x18003f600], xmm0
call fcn.180004788
mov ebx, eax
call qword [0x180040698]
mov dword [0x18003f5f8], eax
movsd qword [0x18003f518], xmm6
mov dword [0x18003f5f0], r15d
mov dword [0x18003f5f4], ebx
mov byte [0x1800405a4], 0
movaps xmm6, xmmword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret