Function at 0x140045a50
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140226b10]
lea rsi, [0x140226b10]
cmp rcx, rsi
je 0x140045a9b
test dword [rcx + 0x1c], 0x200
je 0x140045a9b
cmp byte [rcx + 0x19], 4
jb 0x140045a9b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x16
call fcn.14001f000
mov rcx, qword [0x140226b10]
cmp dword [rbx + 0x2040], 0
mov qword [rsp + 0x30], rdi
je 0x140045b59
cmp rcx, rsi
je 0x140045ad6
test dword [rcx + 0x1c], 0x200
je 0x140045ad6
cmp byte [rcx + 0x19], 4
jb 0x140045ad6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x17
call fcn.14001f000
mov rcx, rbx
call fcn.140045830
mov edi, eax
test eax, eax
je 0x140045b29
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045b17
test dword [rcx + 0x1c], 0x200
je 0x140045b17
cmp byte [rcx + 0x19], 2
jb 0x140045b17
mov edx, 0x18
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov r9d, edi
call fcn.140020860
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045b59
test dword [rcx + 0x1c], 0x200
je 0x140045b59
cmp byte [rcx + 0x19], 4
jb 0x140045b59
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x19
call fcn.14001f000
xor eax, eax
mov dword [rbx + 0x2050], 0
mov qword [rbx + 0x2018], rax
mov qword [rbx + 0x2020], rax
mov qword [rbx + 0x2028], rax
mov qword [rbx + 0x2030], rax
mov rcx, qword [rbx + 0x2038]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov rax, qword [rbx + 0x2038]
mov qword [rbx + 0x2030], rax
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045bcc
test dword [rcx + 0x1c], 0x200
je 0x140045bcc
cmp byte [rcx + 0x19], 4
jb 0x140045bcc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x1a
call fcn.14001f000
mov rcx, qword [rbx + 0x2048]
lea rdx, [rbx + 0x2018]
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
je 0x140045c2e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045c1c
test byte [rcx + 0x1c], 0x20
je 0x140045c1c
cmp byte [rcx + 0x19], 2
jb 0x140045c1c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x1b
mov r9d, eax
call fcn.140020860
mov eax, ebx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 0x217
je 0x140045cc2
cmp eax, 0x3e5
je 0x140045c76
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045b17
test byte [rcx + 0x1c], 0x20
je 0x140045b17
cmp byte [rcx + 0x19], 2
jb 0x140045b17
mov edx, 0x1e
jmp 0x140045b04
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045ca6
test dword [rcx + 0x1c], 0x200
je 0x140045ca6
cmp byte [rcx + 0x19], 4
jb 0x140045ca6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x1d
call fcn.14001f000
mov dword [rbx + 0x2050], 1
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140045cf2
test dword [rcx + 0x1c], 0x200
je 0x140045cf2
cmp byte [rcx + 0x19], 4
jb 0x140045cf2
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b80f8]
mov edx, 0x1c
call fcn.14001f000
mov rcx, qword [rbx + 0x2030]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret