Function at 0x140107ed0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1401d2670]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
lea rdi, [rcx + 0x28]
test rdi, rdi
je 0x140107f06
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x50], rdi
lea r14, [0x1401d2a10]
mov rcx, qword [0x1401d2a10]
cmp rcx, r14
je 0x140107f3f
test byte [rcx + 0x1c], 8
je 0x140107f3f
cmp byte [rcx + 0x19], 4
jb 0x140107f3f
mov edx, 0xa
lea r8, [0x140185830]
mov rcx, qword [rcx + 0x10]
call fcn.14001f730
movzx eax, byte [rsi + 0x20]
test al, al
je 0x140107f7e
mov rcx, qword [0x1401d2a10]
cmp rcx, r14
je 0x140107f74
test byte [rcx + 0x1c], 8
je 0x140107f74
cmp byte [rcx + 0x19], 2
jb 0x140107f74
mov edx, SafeArrayDestroy
lea r8, [0x140185830]
mov rcx, qword [rcx + 0x10]
call fcn.14001f730
mov rbx, qword [rsp + 0x50]
jmp 0x1401080f1
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140108000
cmp dword [rax + 8], 0
je 0x140108000
mov rbx, rax
mov rcx, qword [0x1401d2a10]
cmp rcx, r14
je 0x140107fc1
test byte [rcx + 0x1c], 8
je 0x140107fc1
cmp byte [rcx + 0x19], 3
jb 0x140107fc1
mov edx, SafeArrayDestroy
lea r8, [0x140185830]
mov rcx, qword [rcx + 0x10]
call fcn.14001f730
mov rbx, qword [rsi + 0x18]
cmp dword [rbx + 8], 0
je 0x140108127
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbx + 8], eax
je 0x140108132
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140146344
test eax, eax
jne 0x14010813d
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rbx], xmm0
mov eax, 1
xchg byte [rsi + 0x20], al
xor ebx, ebx
mov qword [rsp + 0x50], rbx
test rdi, rdi
je 0x14010801d
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 0x140108073
mov rcx, qword [0x1401d2a10]
cmp rcx, r14
je 0x140108073
test byte [rcx + 0x1c], 8
je 0x140108073
cmp byte [rcx + 0x19], 3
jb 0x140108073
mov edx, SafeArrayDestroy
mov r9d, ebp
lea r8, [0x140185830]
mov rcx, qword [rcx + 0x10]
call fcn.14001f760
mov ecx, 0x10
call fcn.1401449d4
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1401080d0
mov ecx, 0x10
call fcn.1401449d4
test rax, rax
je 0x14010809e
mov qword [rax], rsi
jmp 0x1401080a1
mov rax, rbx
mov qword [rsp + 0x58], rax
lea r14, [rdi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1401075b0]
xor edx, edx
xor ecx, ecx
call fcn.140115eb8
mov qword [rdi], rax
test rax, rax
je 0x140108148
jmp 0x1401080d3
mov rdi, rbx
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x18], rdi
test rcx, rcx
je 0x1401080f1
cmp dword [rcx + 8], 0
jne 0x140108121
mov edx, 0x10
call fcn.140144a10
nop
test rbx, rbx
je 0x1401080ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401449b0
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.140115864
nop
mov ecx, 1
call fcn.140146ca8
int3
mov ecx, 5
call fcn.140146ca8
int3
mov ecx, 2
call fcn.140146ca8
nop
mov dword [r14], ebx
mov ecx, 6
call fcn.140146ca8
int3