Function at 0x140183990
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
cmp byte [0x1404f1531], 0
jne 0x140183d77
call fcn.14017cc20
test al, al
jne 0x1401839ef
mov rax, qword [0x140527030]
cmp rax, qword [0x140527038]
je 0x1401839cf
mov qword [0x140527038], rax
mov rax, qword [0x140527018]
cmp rax, qword [0x140527020]
je 0x140183d70
mov qword [0x140527020], rax
jmp 0x140183d70
mov byte [0x1404f1531], 1
mov ecx, 0x9c
call fcn.14038296c
mov rbx, rax
mov dword [rax], 0xffffffff
mov qword [rax + 4], 0
mov dword [rax + 0xc], 0xffffffff
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
mov qword [rax + 0x40], 0
mov qword [rax + 0x48], 0
mov qword [rax + 0x50], 0
mov dword [rax + 0x58], 0
mov qword [rax + 0x5c], 0x1010100
mov qword [rax + 0x64], 0
mov qword [rax + 0x6c], 0
mov qword [rax + 0x74], 0
mov qword [rax + 0x7c], 0
mov qword [rax + 0x84], 0
mov qword [rax + 0x8c], 0
mov dword [rax + 0x94], 0
mov dword [rax + 0x98], 0xffffffff
mov ecx, 0x9c
call fcn.14038296c
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], 0xffffffffffffffff
mov qword [rax + 0x18], 0xffffffffffffffff
mov dword [rax + 0x20], 0
mov qword [rax + 0x24], 0xffffffffffffffff
mov qword [rax + 0x2c], 0xffffffffffffffff
mov qword [rax + 0x34], 0xffffffffffffffff
mov dword [rax + 0x3c], 0
mov qword [rax + 0x40], 0xffffffffffffffff
mov qword [rax + 0x48], 0xffffffffffffffff
mov qword [rax + 0x50], 0xffffffffffffffff
mov qword [rax + 0x58], 0xffffffffffffffff
mov qword [rax + 0x60], 0xffffffffffffffff
mov dword [rax + 0x68], 0
mov qword [rax + 0x6c], 0xffffffffffffffff
mov qword [rax + 0x74], 0xffffffffffffffff
mov qword [rax + 0x7c], 0xffffffffffffffff
mov qword [rax + 0x84], 0xffffffffffffffff
mov qword [rax + 0x8c], 0xffffffffffffffff
mov dword [rax + 0x94], 0
mov dword [rax + 0x98], 0xffffffff
cmp byte [0x1404f13f9], 0
sete cl
mov byte [0x1404f13f9], cl
test cl, cl
je 0x140183d52
mov rcx, qword [0x140527030]
cmp rcx, qword [0x140527038]
je 0x140183ba8
mov qword [0x140527038], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r14d, r14d
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x40]
mov r8, rax
mov rdx, rbx
call fcn.14017d0c0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
cmp rbx, rbp
jne 0x140183c30
mov byte [0x1404f13f9], r14b
mov byte [0x1404f1531], r14b
test rbx, rbx
je 0x140183d77
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x140183c20
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140183d44
mov rcx, rbx
call fcn.14038284c
jmp 0x140183d77
mov rsi, qword [rbx]
mov ecx, 0xfa0
call fcn.14038296c
mov rdi, rax
mov dword [rsp + 0x80], r14d
mov r10, qword [0x140522820]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xfa0
mov r8, rdi
mov rdx, rsi
mov rcx, qword [0x140522810]
call r10
test eax, eax
jne 0x140183cd3
cmp dword [rsp + 0x80], 0xfa0
jne 0x140183cd3
test rdi, rdi
je 0x140183cdb
mov rcx, rdi
call fcn.140183180
test al, al
je 0x140183cdb
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov rdx, qword [0x140527038]
cmp rdx, qword [0x140527040]
je 0x140183cc0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
add qword [0x140527038], 0x10
jmp 0x140183cdb
lea r8, [rsp + 0x30]
lea rcx, [0x140527030]
call fcn.1401ab3c0
jmp 0x140183cdb
mov rcx, rdi
call fcn.14038284c
add rbx, 8
cmp rbx, rbp
jne 0x140183c30
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x140183500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1404f1498], rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140183d70
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140183d4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140183d4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14038284c
jmp 0x140183d70
mov byte [0x1404f13f9], 0
mov rcx, qword [0x1404f1498]
test rcx, rcx
je 0x140183d6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1401832c0
mov byte [0x1404f1531], 0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret