Function at 0x1800047c8
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 [0x18003f54c], 0
mov sil, cl
movaps xmmword [rax - 0x18], xmm6
mov r15d, 1
jne 0x180004976
lea rcx, [0x18003f580]
call qword [0x18003f670]
mov rax, qword [0x18003f580]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [0x18003f630], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], r15d
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003e5a8], eax
movups xmmword [0x18003e598], xmm0
call qword [0x18003f678]
mov ebx, eax
call qword [0x18003f678]
mov dword [0x18003e660], eax
mov dword [0x18003e658], r15d
mov dword [0x18003e65c], ebx
call qword [0x18003f660]
mov rbx, rax
call qword [0x18003f660]
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 [0x18003e5d0], eax
movups xmmword [0x18003e5c0], xmm0
call qword [0x18003f668]
mov ebx, eax
call qword [0x18003f668]
mov dword [0x18003e5b8], eax
mov dword [0x18003e5b0], r15d
mov dword [0x18003e5b4], ebx
call fcn.180001730
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [0x180042ef8], 0
mov rbx, rax
jne 0x18000491e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
je 0x18000491e
lea ecx, [r15 + 0xf]
call fcn.180031a20
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180004909
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea edx, [r15 + 0xf]
mov rcx, rdi
call fcn.180031a5c
and qword [0x180042f08], 0
mov dword [0x180042ef8], ebx
jmp 0x18000491e
mov rax, qword [0x180042f18]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [0x180042f18], rdi
lea rdx, [fcn.1800046fc]
lea rcx, [0x18003f670]
call fcn.180001c9c
lea rdx, [fcn.180004758]
lea rcx, [0x18003f678]
call fcn.180001c9c
lea rdx, [fcn.18000477c]
lea rcx, [0x18003f660]
call fcn.180001c9c
lea rdx, [fcn.1800047a4]
lea rcx, [0x18003f668]
call fcn.180001c9c
call fcn.1800018e8
mov byte [0x18003f54c], r15b
test sil, sil
je 0x180004a8c
cmp byte [0x18003f574], 0
jne 0x180004b76
movd xmm1, dword [0x18003f5cc]
movsd xmm0, qword [0x18003e4d8]
cvtdq2pd xmm1, xmm1
ucomisd xmm0, xmm1
jp 0x1800049ac
je 0x180004a80
lea rcx, [0x18003f580]
call qword [0x18003f670]
lea rcx, [0x18003f630]
call fcn.1800046fc
mov rax, qword [0x18003f630]
mov edi, dword [0x18003f5cc]
mov qword [rbp - 0x2c], rax
mov rax, qword [0x18003f580]
mov qword [rbp - 0x24], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], edi
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003e5a8], eax
movups xmmword [0x18003e598], xmm0
call fcn.180004758
mov ebx, eax
call qword [0x18003f678]
mov dword [0x18003e660], eax
mov eax, dword [0x18003f5cc]
mov dword [rbp - 0x30], eax
mov dword [0x18003e658], edi
mov dword [0x18003e65c], ebx
call fcn.18000477c
mov qword [rbp - 0x2c], rax
call qword [0x18003f660]
mov edi, dword [0x18003f5cc]
mov qword [rbp - 0x24], rax
movups xmm0, xmmword [rbp - 0x30]
mov eax, dword [rbp - 0x20]
mov dword [0x18003e5d0], eax
movups xmmword [0x18003e5c0], xmm0
call fcn.1800047a4
mov ebx, eax
call qword [0x18003f668]
movd xmm0, dword [0x18003f5cc]
cvtdq2pd xmm0, xmm0
mov dword [0x18003e5b0], edi
mov dword [0x18003e5b4], ebx
mov dword [0x18003e5b8], eax
movsd qword [0x18003e4d8], xmm0
mov byte [0x18003f574], r15b
jmp 0x180004b76
cmp byte [0x18003f574], 0
je 0x180004b76
movsd xmm6, qword [0x180039490]
movsd xmm0, qword [0x18003e4d8]
ucomisd xmm0, xmm6
jp 0x180004ab5
je 0x180004b6f
lea rcx, [0x18003f580]
call qword [0x18003f670]
lea rcx, [0x18003f630]
call fcn.1800046fc
mov rax, qword [0x18003f630]
mov qword [rbp - 0x2c], rax
mov rax, qword [0x18003f580]
mov qword [rbp - 0x24], rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x30], r15d
movups xmm0, xmmword [rbp - 0x30]
mov dword [0x18003e5a8], eax
movups xmmword [0x18003e598], xmm0
call fcn.180004758
mov ebx, eax
call qword [0x18003f678]
mov dword [0x18003e660], eax
mov dword [0x18003e658], r15d
mov dword [0x18003e65c], ebx
mov dword [rbp - 0x30], r15d
call fcn.18000477c
mov qword [rbp - 0x2c], rax
call qword [0x18003f660]
mov qword [rbp - 0x24], rax
movups xmm0, xmmword [rbp - 0x30]
mov eax, dword [rbp - 0x20]
mov dword [0x18003e5d0], eax
movups xmmword [0x18003e5c0], xmm0
call fcn.1800047a4
mov ebx, eax
call qword [0x18003f668]
mov dword [0x18003e5b8], eax
movsd qword [0x18003e4d8], xmm6
mov dword [0x18003e5b0], r15d
mov dword [0x18003e5b4], ebx
mov byte [0x18003f574], 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