Function at 0x140016890
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, rdx
mov rsi, rcx
xor r13d, r13d
mov ebx, r13d
mov dword [rsp + 0x30], ebx
call fcn.140059da0
mov r12, rax
lea rax, [0x140016010]
mov qword [rsp + 0x20], rax
lea r9, [0x140015ca0]
lea edx, [r13 + 8]
lea r8d, [r13 + 2]
lea rcx, [rsp + 0x40]
call fcn.1400591f0
nop
mov r14d, r13d
mov rdi, qword [rsi + 0x28]
cmp rdi, 0xffffffffffffffff
je 0x140016918
mov qword [rsi + 0x28], 0xffffffffffffffff
jmp 0x1400169a4
test r14, r14
sete dl
mov rcx, rsi
call fcn.14001a3f0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140016993
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
mov r9d, 0x13b
lea r8, str................._artifacts_sentry0.4.186crashpadutilwinexception_handler_server.cc
lea rdx, str.void___cdecl_crashpad::ExceptionHandlerServer::Run_class_crashpad::ExceptionHandlerServer::Delegate__
lea rcx, [rbp - 0x78]
call fcn.14000d7d0
nop
or ebx, 1
mov dword [rsp + 0x30], ebx
lea rdx, str.Check_failed:_pipe___INVALID_HANDLE_VALUE
mov rcx, rax
call fcn.140001010
mov rcx, rax
lea rdx, [0x14006bcdc]
call fcn.140001010
mov rcx, rax
lea rdx, str.CreateNamedPipe
call fcn.140001010
nop
test bl, 1
je 0x1400169a4
and ebx, 0xfffffffe
lea rcx, [rbp - 0x78]
call fcn.14000dae0
mov ecx, 0x30
call fcn.14005884c
mov r9, rax
mov qword [rbp + 0x90], rax
test rax, rax
je 0x1400169e2
mov rax, qword [rsi + 0x20]
mov qword [r9], rax
mov qword [r9 + 8], rdi
mov qword [r9 + 0x10], r15
lea rax, [rsi + 0x30]
mov qword [r9 + 0x18], rax
lea rax, [rsi + 0x58]
mov qword [r9 + 0x20], rax
mov qword [r9 + 0x28], r12
jmp 0x1400169e5
mov r9, r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
lea r8, [0x140016790]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
mov rcx, qword [rsp + r14*8 + 0x40]
test rcx, rcx
je 0x140016a1b
cmp rcx, rax
je 0x140016b1f
call fcn.140019e10
mov qword [rsp + r14*8 + 0x40], rdi
test rdi, rdi
jne 0x140016a89
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
mov r9d, 0x14a
lea r8, str................._artifacts_sentry0.4.186crashpadutilwinexception_handler_server.cc
lea rdx, str.void___cdecl_crashpad::ExceptionHandlerServer::Run_class_crashpad::ExceptionHandlerServer::Delegate__
lea rcx, [rbp - 0x78]
call fcn.14000d7d0
nop
or ebx, 2
mov dword [rsp + 0x30], ebx
lea rdx, str.Check_failed:_thread_handles_i_.is_valid__
mov rcx, rax
call fcn.140001010
mov rcx, rax
lea rdx, [0x14006bcdc]
call fcn.140001010
mov rcx, rax
lea rdx, [0x14006cdf8]
call fcn.140001010
nop
test bl, 2
je 0x140016a9a
and ebx, 0xfffffffd
lea rcx, [rbp - 0x78]
call fcn.14000dae0
inc r14
cmp r14, 2
jb 0x140016901
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov dword [rsp + 0x20], 0xffffffff
mov qword [rbp + 0x90], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
lea r9, [rbp + 0x90]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140016c56
lea rcx, [rsi + 0x30]
call sub.KERNEL32.dll_EnterCriticalSection
mov r9, qword [rsi + 0x58]
mov rcx, qword [r9 + 8]
mov rax, rcx
mov rdx, r9
cmp byte [rcx + 0x19], 0
jne 0x140016b3f
nop
mov r8, qword [rax + 0x20]
cmp r8, rdi
jae 0x140016b26
mov rax, qword [rax + 0x10]
jmp 0x140016b39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp byte [rdx + 0x19], 0
je 0x140016b33
cmp rdi, r8
cmovb rdx, rax
mov r9, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140016b10
cmp byte [rdx + 0x19], 0
jne 0x140016b48
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x140016b68
nop
cmp rdi, qword [rcx + 0x20]
jae 0x140016b5e
mov rdx, rcx
mov rcx, qword [rcx]
jmp 0x140016b62
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x140016b50
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x58]
call fcn.140017470
test rdi, rdi
je 0x140016c30
mov rdx, 0xffffffffffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov qword [rdi], 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov qword [rdi + 8], 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140016be4
call fcn.140019e10
mov qword [rdi + 0x68], r13
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x140016bf6
call fcn.140019e10
mov qword [rdi + 0x60], r13
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x140016c08
call fcn.140019e10
mov qword [rdi + 0x58], r13
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140016c1a
call fcn.140019e10
mov qword [rdi + 0x50], r13
lea rcx, [rdi + 0x18]
call sub.KERNEL32.dll_DeleteCriticalSection
mov edx, 0x88
mov rcx, rdi
call fcn.140058888
cmp byte [rsi + 0x68], 0
jne 0x140016c3d
cmp qword [rsi + 0x60], 0
je 0x140016c4c
lea rcx, [rsi + 0x30]
call sub.KERNEL32.dll_LeaveCriticalSection
nop
jmp 0x140016aaf
lea rcx, [rsi + 0x30]
call sub.KERNEL32.dll_LeaveCriticalSection
nop
mov ebx, 2
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x6c], xmm0
mov qword [rsp + 0x7c], r13
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x64], r12
lea r8, [rbp + 0x90]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14001a790
sub rbx, 1
jne 0x140016c60
lea rbx, [rsp + 0x40]
nop word [rax + rax]
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rbx, 8
lea rax, [rsp + 0x50]
cmp rbx, rax
jne 0x140016ca0
lea rdi, [rsi + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_EnterCriticalSection
lea r14, [rsi + 0x58]
mov rbx, qword [r14]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140016de9
nop dword [rax]
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x140016d94
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov qword [rsi], 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov qword [rsi + 8], 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov qword [rsi + 0x10], 0xffffffffffffffff
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x140016d48
call fcn.140019e10
mov qword [rsi + 0x68], r13
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x140016d5a
call fcn.140019e10
mov qword [rsi + 0x60], r13
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140016d6c
call fcn.140019e10
mov qword [rsi + 0x58], r13
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140016d7e
call fcn.140019e10
mov qword [rsi + 0x50], r13
lea rcx, [rsi + 0x18]
call sub.KERNEL32.dll_DeleteCriticalSection
mov edx, 0x88
mov rcx, rsi
call fcn.140058888
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140016dc0
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140016dbb
cmp rbx, qword [rax + 0x10]
jne 0x140016dbb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140016da8
mov rbx, rax
jmp 0x140016ddf
mov rbx, rax
mov rdx, qword [rax]
cmp byte [rdx + 0x19], 0
jne 0x140016ddf
nop dword [rax]
mov rbx, rdx
mov rax, qword [rdx]
mov rdx, rax
cmp byte [rax + 0x19], 0
je 0x140016dd0
cmp byte [rbx + 0x19], 0
je 0x140016ce0
mov rcx, r14
call fcn.140017600
nop
mov rcx, rdi
call sub.KERNEL32.dll_LeaveCriticalSection
nop
lea r9, [0x140016010]
mov edx, 8
lea r8d, [rdx - 6]
lea rcx, [rsp + 0x40]
call fcn.140059260
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140058920
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret