Function at 0x140174a10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov r14d, r8d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r12d, r12d
mov qword [rdi + 8], rax
lea r15, [0x140467878]
mov rbx, rax
lea r13, vtable.asio::detail::system_category.0
test rax, rax
jne 0x140174af6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
lea edx, [rbx + 1]
mov esi, eax
mov rax, qword [rcx]
mov rcx, rdi
call qword [case.0x14004487d.0]
mov rcx, qword gs:[0x58]
mov eax, 0x10
mov dword [rsp + 0x34], r12d
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140467838], ecx
jle 0x140174ae5
lea rcx, [0x140467838]
call fcn.140202ac8
cmp dword [0x140467838], 0xffffffff
jne 0x140174ae5
lea rcx, [0x14029b470]
mov qword [0x140467880], r15
mov qword [0x140467878], r13
call fcn.140202ed0
lea rcx, [0x140467838]
call fcn.140202a68
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r15
test esi, esi
jne 0x140174ccd
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x10], rax
cmp qword [rbp + 0x10], r12
jne 0x140174ba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov edx, 1
mov esi, eax
mov rax, qword [rcx]
mov rcx, rdi
call qword [case.0x14004487d.0]
mov rcx, qword gs:[0x58]
mov eax, 0x10
mov dword [rsp + 0x34], r12d
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140467838], ecx
jle 0x140174b92
lea rcx, [0x140467838]
call fcn.140202ac8
cmp dword [0x140467838], 0xffffffff
jne 0x140174b92
lea rcx, [0x14029b470]
mov qword [0x140467880], r15
mov qword [0x140467878], r13
call fcn.140202ed0
lea rcx, [0x140467838]
call fcn.140202a68
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r15
test esi, esi
jne 0x140174cdf
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x28], rax
lea r8, [0x140174d00]
mov r9, rdi
mov dword [rsp + 0x20], r12d
mov edx, r14d
xor ecx, ecx
call fcn.14024baa8
mov qword [rbp + 8], rax
test rax, rax
jne 0x140174c7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov esi, eax
mov rcx, rdi
mov rax, qword [r8]
call qword [case.0x14004487d.0]
test rbx, rbx
je 0x140174c02
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140174c11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x58]
mov dword [rsp + 0x34], r12d
mov rdx, qword [rax]
mov eax, 0x10
mov eax, dword [rax + rdx]
cmp dword [0x140467838], eax
jle 0x140174c6d
lea rcx, [0x140467838]
call fcn.140202ac8
cmp dword [0x140467838], 0xffffffff
jne 0x140174c6d
lea rcx, [0x14029b470]
mov qword [0x140467880], r15
mov qword [0x140467878], r13
call fcn.140202ed0
lea rcx, [0x140467838]
call fcn.140202a68
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r15
test esi, esi
jne 0x140174cbb
test rbx, rbx
je 0x140174c96
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140173f70
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140173f70
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140173f70
int3