Function at 0x140032780
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rsi, rcx
lea rdi, [rcx + 0x28]
test rdi, rdi
je 0x1400327a7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x30], rdi
lea r14, [0x1401c7a08]
mov rcx, qword [0x1401c7a08]
cmp rcx, r14
je 0x1400327e0
test byte [rcx + 0x1c], 8
je 0x1400327e0
cmp byte [rcx + 0x19], 4
jb 0x1400327e0
mov edx, 0xa
lea r8, [0x14015d648]
mov rcx, qword [rcx + 0x10]
call fcn.140008930
movzx eax, byte [rsi + 0x20]
test al, al
je 0x14003281f
mov rcx, qword [0x1401c7a08]
cmp rcx, r14
je 0x140032815
test byte [rcx + 0x1c], 8
je 0x140032815
cmp byte [rcx + 0x19], 2
jb 0x140032815
mov edx, 0xb
lea r8, [0x14015d648]
mov rcx, qword [rcx + 0x10]
call fcn.140008930
mov rbx, qword [rsp + 0x30]
jmp 0x140032992
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1400328a1
cmp dword [rax + 8], 0
je 0x1400328a1
mov rbx, rax
mov rcx, qword [0x1401c7a08]
cmp rcx, r14
je 0x140032862
test byte [rcx + 0x1c], 8
je 0x140032862
cmp byte [rcx + 0x19], 3
jb 0x140032862
mov edx, 0xc
lea r8, [0x14015d648]
mov rcx, qword [rcx + 0x10]
call fcn.140008930
mov rbx, qword [rsi + 0x18]
cmp dword [rbx + 8], 0
je 0x1400329bb
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbx + 8], eax
je 0x1400329c6
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14013d160
test eax, eax
jne 0x1400329d1
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rbx], xmm0
mov eax, 1
xchg byte [rsi + 0x20], al
xor ebx, ebx
mov qword [rsp + 0x30], rbx
test rdi, rdi
je 0x1400328be
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [rsi + 0x50]
mov dword [rsi + 0x50], 0x200b0000
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebp, 0x200b0000
je 0x140032914
mov rcx, qword [0x1401c7a08]
cmp rcx, r14
je 0x140032914
test byte [rcx + 0x1c], 8
je 0x140032914
cmp byte [rcx + 0x19], 3
jb 0x140032914
mov edx, 0xd
mov r9d, ebp
lea r8, [0x14015d648]
mov rcx, qword [rcx + 0x10]
call fcn.140008960
mov ecx, 0x10
call fcn.14013bb30
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140032971
mov ecx, 0x10
call fcn.14013bb30
test rax, rax
je 0x14003293f
mov qword [rax], rsi
jmp 0x140032942
mov rax, rbx
mov qword [rsp + 0x50], rax
lea r14, [rdi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140031d10]
xor edx, edx
xor ecx, ecx
call fcn.140107f48
mov qword [rdi], rax
test rax, rax
je 0x1400329dc
jmp 0x140032974
mov rdi, rbx
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x18], rdi
test rcx, rcx
je 0x140032992
cmp dword [rcx + 8], 0
jne 0x1400329b5
mov edx, 0x10
call fcn.14013b860
nop
test rbx, rbx
je 0x1400329a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140107de0
nop
mov ecx, 1
call fcn.14013d538
int3
mov ecx, 5
call fcn.14013d538
int3
mov ecx, 2
call fcn.14013d538
nop
mov dword [r14], ebx
mov ecx, 6
call fcn.14013d538
int3