Function at 0x140023610
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009b088]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rdx
mov qword [rsp + 0x30], rcx
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x3c]
test ecx, ecx
jne 0x140023682
mov dword [rax + 0x3c], 1
jmp 0x140023746
cmp ecx, 1
jne 0x1400236b7
lea rcx, [rbp - 8]
call fcn.1400134d0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140022fc0
lea rdx, [0x140099698]
lea rcx, [rbp - 0x80]
call fcn.1400267a0
int3
cmp ecx, 4
jge 0x1400236ec
lea rcx, [rbp - 8]
call fcn.14001d9a0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140022fc0
lea rdx, [0x140099698]
lea rcx, [rbp - 0x80]
call fcn.1400267a0
int3
test byte [rax + 8], 1
jne 0x140023722
lea rcx, [rbp - 8]
call fcn.14001ef30
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140022fc0
lea rdx, [0x140099698]
lea rcx, [rbp - 0x80]
call fcn.1400267a0
int3
mov dword [rax + 0x3c], 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 0x50]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140023746
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [rbp - 0x80]
mov qword [rbp - 8], rax
xor r14d, r14d
mov qword [rbp - 0x48], r14
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, vtable.std::_Func_base_void___.0
mov qword [rbp - 0x80], rax
lea rax, vtable.std::_Func_impl_class__lambda_54b34ec251212bb2b2890553dc13a4ca___class_std::allocator_int___void___.0
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x138], r14
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x1400237de
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140003af0]
lea rdx, [rbp + 0x100]
mov rcx, rdi
call rbx
mov qword [rbp + 0x138], rax
lea rcx, [rbp - 0x80]
call fcn.1400037a0
nop
mov rdi, qword [rsp + 0x30]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140003af0]
mov rcx, rdi
call rbx
mov rbx, qword [rsp + 0x30]
add rbx, 0x10
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x3c], 2
mov rax, qword [rsp + 0x30]
inc dword [rax + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [rsp + 0x30]
mov edx, dword [r9 + 0xc]
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], r14d
mov eax, edx
neg eax
sbb ecx, ecx
and ecx, 0x10000
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea r8, [0x140023470]
lea rcx, [rsp + 0x68]
call fcn.14002a0ec
mov rdx, rax
mov rcx, qword [rsp + 0x30]
add rcx, 0x58
mov r8b, 1
call fcn.14000e0c0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 0x68]
inc rax
test rax, 0xfffffffffffffffe
jne 0x140023946
call fcn.14002a284
movsxd rbx, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140013490
mov rdi, rax
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14000c6f0
nop
mov r8, rax
lea rcx, [rbp + 0x40]
call fcn.140023aa0
nop
lea r8, str.._Last_Windows_error:
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140009ff0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000bee0
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400043d0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.140022fc0
lea rdx, [0x140099698]
lea rcx, [rbp + 0x80]
call fcn.1400267a0
nop
mov eax, dword [rsp + 0x60]
mov dword [rcx + 0x70], eax
mov rsi, qword [rbp + 0x138]
test rsi, rsi
je 0x140023985
mov rax, qword [rsi]
lea rcx, [rbp + 0x100]
cmp rsi, rcx
setne bl
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140003af0]
movzx edx, bl
mov rcx, rsi
call rdi
mov qword [rbp + 0x138], r14
mov rdi, qword [rbp + 0x138]
test rdi, rdi
je 0x1400239a7
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140003af0]
mov rcx, rdi
call rbx
nop
lea rcx, [rbp + 0x100]
call fcn.1400037a0
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140024b90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret