Function at 0x140045c48
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x110], xmm6
mov qword [rbp + 0x108], 0xfffffffffffffffe
mov r13, rdx
mov rsi, rcx
call fcn.140067fe8
mov r12, rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0xc0], xmm0
lea rax, [rsi + 0x58]
mov qword [rbp + 0xf8], rax
lea rax, [rsi + 0x30]
mov qword [rbp + 0x100], rax
xor r14d, r14d
lea rdi, [rbp - 0x48]
cmp r14, 2
jae 0x140045e2d
mov r15, qword [rsi + 0x28]
cmp r15, 0xffffffffffffffff
je 0x140045ccb
mov qword [rsi + 0x28], 0xffffffffffffffff
jmp 0x140045d4b
test r14, r14
sete dl
mov rcx, rsi
call fcn.1400685de
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140045d4b
call fcn.1400372c2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea rdx, str.void___cdecl_crashpad::ExceptionHandlerServer::Run_crashpad::ExceptionHandlerServer::Delegate__
lea r8, str.xplat_third_partycrashpadutilwinexception_handler_server.cc
mov r9d, 0x13c
call fcn.1400372da
mov rcx, rdi
lea rdx, str.Check_failed:_pipe___INVALID_HANDLE_VALUE
call fcn.14000345f
mov rcx, rax
lea rdx, [0x140146f36]
call fcn.14000345f
mov rcx, rax
lea rdx, str.CreateNamedPipe
call fcn.14000345f
mov rcx, rdi
call fcn.14003730a
mov r15, 0xffffffffffffffff
mov ecx, 0x30
call fcn.1400e7770
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r13
mov rcx, qword [rbp + 0x100]
mov qword [rax + 0x18], rcx
mov rcx, qword [rbp + 0xf8]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], r12
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
lea r8, [0x1400461bc]
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rbx, [r14*8 + 0xc0]
add rbx, rbp
mov qword [rbp - 0x48], rax
mov rcx, rbx
mov rdx, rdi
call fcn.14004617c
cmp qword [rbx], 0
jne 0x140045e25
call fcn.1400372c2
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea rdx, str.void___cdecl_crashpad::ExceptionHandlerServer::Run_crashpad::ExceptionHandlerServer::Delegate__
lea r8, str.xplat_third_partycrashpadutilwinexception_handler_server.cc
mov r9d, 0x14b
call fcn.1400372da
mov rcx, rdi
lea rdx, str.Check_failed:_thread_handles_i_.is_valid__
call fcn.14000345f
mov rcx, rax
lea rdx, [0x140146f36]
call fcn.14000345f
mov rcx, rax
lea rdx, [0x14013d6e9]
call fcn.14000345f
mov rcx, rdi
call fcn.14003730a
inc r14
jmp 0x140045caa
mov rax, qword [r13]
mov rcx, r13
call qword [rax]
xor r13d, r13d
lea r14, [rbp - 0x48]
mov qword [rbp - 0x48], r13
mov qword [rbp + 0xd8], r13
mov dword [rbp + 0xf4], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rbp + 0xf4]
lea r8, [rbp + 0xd8]
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rax, qword [rbp + 0xd8]
test rax, rax
je 0x140045eec
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp + 0x100]
call fcn.14005d1dc
mov rcx, qword [rbp + 0xf8]
lea rdx, [rbp + 0xe8]
call fcn.1400462d8
mov r15, qword [rbp + 0xe8]
test r15, r15
je 0x140045ec8
mov rcx, r15
call fcn.14004635a
mov edx, 0x88
mov rcx, r15
call fcn.1400e7768
mov bl, byte [rsi + 0x68]
mov rdi, qword [rsi + 0x60]
mov rcx, qword [rbp + 0x100]
call fcn.14005d1f4
test bl, bl
jne 0x140045e3d
test rdi, rdi
jne 0x140045e3d
lea rdi, [rbp - 0x3c]
xor ebx, ebx
xorps xmm6, xmm6
lea r14, [rbp - 0x48]
lea r15, [rbp + 0xd8]
cmp rbx, 2
jae 0x140045f2f
movups xmmword [rdi], xmm6
mov qword [rdi + 0x10], 0
mov dword [rbp - 0x48], 1
mov qword [rbp - 0x44], r12
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.1400681a8
inc rbx
jmp 0x140045f00
xor edi, edi
mov rbx, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp rdi, 2
je 0x140045f52
mov rcx, qword [rbp + rdi*8 + 0xc0]
mov edx, 0xffffffff
call rbx
inc rdi
jmp 0x140045f38
mov rcx, qword [rbp + 0x100]
call fcn.14005d1dc
mov r15, qword [rbp + 0xf8]
mov rdi, qword [r15]
mov rax, qword [rdi]
mov qword [rbp - 0x48], rax
cmp rax, rdi
je 0x140045faa
lea r14, [rbp - 0x48]
mov rbx, qword [rax + 0x20]
test rbx, rbx
je 0x140045f96
mov rcx, rbx
call fcn.14004635a
mov edx, 0x88
mov rcx, rbx
call fcn.1400e7768
mov rcx, r14
call fcn.14001480c
mov rax, qword [rbp - 0x48]
cmp rax, rdi
jne 0x140045f78
mov rdi, qword [r15]
mov r8, qword [rdi + 8]
mov rcx, r15
mov rdx, r15
call fcn.140046cb0
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [rsi + 0x60], 0
mov rcx, qword [rbp + 0x100]
call fcn.14005d1f4
mov esi, 8
lea rcx, [rsi + rbp]
add rcx, 0xc0
call fcn.14004508a
add rsi, 0xfffffffffffffff8
cmp rsi, 0xfffffffffffffff8
jne 0x140045fdd
movaps xmm6, xmmword [rbp + 0x110]
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret