Function at 0x140027b80
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.140013a20]
xor r13d, r13d
test rax, rax
jne 0x140027ca0
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.1400cba50
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov rcx, r14
test ebx, ebx
cmove rcx, r13
test rcx, rcx
je 0x140027ca0
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.14004a380
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14004a3d0
lea rdx, [0x1402aaad0]
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 0x140027d85
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.1400cba50
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
mov rcx, r14
test ebx, ebx
cmove rcx, r13
test rcx, rcx
je 0x140027d85
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.14004a380
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14004a3d0
lea rdx, [0x1402aaad0]
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, [0x140027ed0]
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 0x140027e96
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 0x140027ddf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x140027dee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400cba50
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
test ebx, ebx
cmove r14, r13
test r14, r14
je 0x140027e96
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.14004a380
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14004a3d0
lea rdx, [0x1402aaad0]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
test rdi, rdi
je 0x140027eb0
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