Function at 0x140335320
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 [0x14045d5f0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor ebx, ebx
mov r12, rdx
mov dword [rsp + 0x30], ebx
mov rdi, rcx
call fcn.14004fc30
and qword [rsp + 0x48], rbx
lea r15d, [rbx + 2]
and qword [rsp + 0x50], rbx
mov r13, rax
xor esi, esi
cmp qword [rdi + 0x28], 0xffffffffffffffff
je 0x140335386
mov r14, qword [rdi + 0x28]
or qword [rdi + 0x28], 0xffffffffffffffff
jmp 0x1403353f3
test rsi, rsi
mov rcx, rdi
sete dl
call fcn.14033ab70
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1403353e2
or ebx, 1
call sub.KERNEL32.dll_GetLastError
lea r9d, [r14 + 4]
mov dword [rsp + 0x20], eax
mov r8d, 0x13c
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_exception_handler_server.cc
lea rcx, [rbp - 0x80]
call fcn.14001d3a0
lea rdx, str.Check_failed:_pipe___INVALID_HANDLE_VALUE.
lea rcx, [rax + 0x10]
call fcn.14000c340
mov rcx, rax
lea rdx, str.CreateNamedPipe
call fcn.14000c340
test bl, 1
je 0x1403353f3
and ebx, 0xfffffffe
lea rcx, [rbp - 0x80]
call fcn.14001d920
mov ecx, 0x30
call fcn.1402dfa60
mov r9, rax
test rax, rax
je 0x14033542a
mov rax, qword [rdi + 0x20]
mov qword [r9], rax
lea rax, [rdi + 0x30]
mov qword [r9 + 8], r14
mov qword [r9 + 0x18], rax
lea rax, [rdi + 0x38]
mov qword [r9 + 0x20], rax
mov qword [r9 + 0x10], r12
mov qword [r9 + 0x28], r13
jmp 0x14033542d
xor r9d, r9d
and qword [rsp + 0x28], 0
lea r8, [0x1403350b0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + rsi*8 + 0x48]
mov r14, rax
test rcx, rcx
je 0x14033546a
cmp rcx, rax
je 0x1403356dc
call fcn.140332aa0
and qword [rsp + rsi*8 + 0x48], 0
mov qword [rsp + rsi*8 + 0x48], r14
test r14, r14
jne 0x1403354b9
or ebx, r15d
call sub.KERNEL32.dll_GetLastError
lea r9d, [r14 + 3]
mov dword [rsp + 0x20], eax
mov r8d, 0x14b
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_exception_handler_server.cc
lea rcx, [rbp - 0x80]
call fcn.14001d3a0
lea rdx, str.Check_failed:_thread_handles_i_.is_valid__.
lea rcx, [rax + 0x10]
call fcn.14000c340
mov rcx, rax
lea rdx, [0x14040a178]
call fcn.14000c340
test r15b, bl
je 0x1403354ca
and ebx, 0xfffffffd
lea rcx, [rbp - 0x80]
call fcn.14001d920
inc rsi
cmp rsi, r15
jb 0x140335374
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 8]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x40]
or dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x38]
xor r14d, r14d
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1403355b3
lea rbx, [rdi + 0x30]
xor r12d, r12d
mov rcx, rbx
mov qword [rbp + 0x90], rsi
call fcn.140044530
lea rdx, [rbp + 0x90]
lea rcx, [rdi + 0x38]
call fcn.140335d30
test rsi, rsi
je 0x140335559
mov rcx, rsi
call fcn.140334b10
mov rcx, rsi
call fcn.1402dfaa0
cmp byte [rdi + 0x48], r12b
jne 0x140335565
cmp qword [rdi + 0x40], r12
je 0x1403355aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x40]
or dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1403355b3
jmp 0x140335525
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rbx, r15
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x24]
call fcn.1402e2e70
lea r8, [rbp + 0x90]
mov dword [rsp + 0x58], 1
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x5c], r13
mov rcx, rdi
call fcn.14033ac20
sub rbx, 1
jne 0x1403355b6
lea rbx, [rsp + 0x48]
mov rcx, qword [rbx]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0x58]
add rbx, 8
cmp rbx, rax
jne 0x1403355f2
lea rsi, [rdi + 0x30]
mov rcx, rsi
call fcn.140044530
lea r12, [rdi + 0x38]
mov rdi, qword [r12]
mov rbx, qword [rdi]
jmp 0x14033567b
mov r14, qword [rbx + 0x20]
test r14, r14
je 0x14033563e
mov rcx, r14
call fcn.140334b10
mov rcx, r14
call fcn.1402dfaa0
xor r14d, r14d
cmp byte [rbx + 0x19], r14b
jne 0x14033567b
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x14033565f
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r14b
je 0x140335651
jmp 0x14033567b
mov rax, qword [rbx + 8]
jmp 0x140335672
cmp rbx, qword [rax + 0x10]
jne 0x140335678
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r14b
je 0x140335665
mov rbx, rax
cmp rbx, rdi
jne 0x140335625
mov rcx, r12
call fcn.1403592f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rbx, [rsp + 0x58]
lea rbx, [rbx - 8]
dec r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x1403356ad
call fcn.140332aa0
mov qword [rbx], r14
test r15, r15
jne 0x140335696
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1402e0100
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1402e5e60
int3