Function at 0x140013f90
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x208], rbx
mov r12d, r8d
mov rsi, rdx
mov r15, rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsi + 8], rax
lea r14, [fcn.140012770]
xor r13d, r13d
test rax, rax
jne 0x1400140b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [r8]
call fcn.140198620
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov rcx, r14
test ebx, ebx
cmove rcx, r13
test rcx, rcx
je 0x1400140b0
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, str.thread.entry_event
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
lea rax, vtable.boost::system::system_error.0
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], r13b
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.1400279f0
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140027a40
lea rdx, [0x140271318]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r15 + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [r15 + 0x10], r13
jne 0x140014195
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
call fcn.140198620
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
mov rcx, r14
test ebx, ebx
cmove rcx, r13
test rcx, rcx
je 0x140014195
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, str.thread.exit_event
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
lea rax, vtable.boost::system::system_error.0
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], r13b
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.1400279f0
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140027a40
lea rdx, [0x140271318]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x50], r13d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, rsi
lea r8, [0x1400142e0]
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r15 + 8], rax
test rax, rax
jne 0x1400142a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
test rdi, rdi
je 0x1400141ef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x1400141fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140198620
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
test ebx, ebx
cmove r14, r13
test r14, r14
je 0x1400142a6
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, str.thread
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
lea rax, vtable.boost::system::system_error.0
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], r13b
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.1400279f0
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140027a40
lea rdx, [0x140271318]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
test rdi, rdi
je 0x1400142c0
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret