Function at 0x1400139f0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov dword [rsp + 0x58], r9d
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rbp + 0x858]
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x10], 0
je 0x140013d4c
cmp qword [rdx + 0x10], 0
je 0x140013d4c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp - 0x48], xmm1
xor eax, eax
mov word [rbp - 0x58], ax
mov dword [rbp - 0x70], eax
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x70]
call fcn.140013810
test al, al
jne 0x140013ad1
call fcn.140024740
mov r10, qword [rax]
lea rcx, str.Error_querying_pipe
mov qword [rsp + 0x30], rcx
lea r15, str.Sledgehammer
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
mov r9d, 0x166
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeinclude_sledgehammerimpl.inl
lea rdx, [0x1403b8fe8]
mov rcx, rax
call qword [r10 + 0x18]
mov ebx, 0xe0005000
jmp 0x140013d3f
mov edx, 1
mov ecx, dword [rbp - 0x70]
call fcn.140094930
test al, al
jne 0x140013b2f
call fcn.140024740
mov r10, qword [rax]
lea rcx, str.Unable_to_verify_pipe
mov qword [rsp + 0x30], rcx
lea r15, str.Sledgehammer
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
mov r9d, 0x16e
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeinclude_sledgehammerimpl.inl
lea rdx, [0x1403b8fe8]
mov rcx, rax
call qword [r10 + 0x18]
mov ebx, 0xe0005001
jmp 0x140013d3f
mov r13d, 1
cmp dword [rbp + 0x850], r13d
cmova r13d, dword [rbp + 0x850]
mov eax, 0x3e8
cmp edi, eax
cmova eax, edi
mov dword [rsp + 0x50], eax
mov rax, qword [rbx + 0x10]
lea edi, [rax + rax]
mov dword [rsp + 0x54], edi
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
cmp qword [rbx + 0x18], 8
jb 0x140013b71
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov r12, rax
lea rax, vtable.mb::common::system::ScopedAny_wchar_t____ptr64__void____ptr64____cdecl___void____ptr64___void____ptr64___cdecl_LocalFree_void____ptr64___0__0__4_.0
mov qword [rbp - 0x68], rax
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x60], r12
test r12, r12
jne 0x140013be4
call fcn.140024740
mov r10, qword [rax]
lea rcx, str.Allocation_error
mov qword [rsp + 0x30], rcx
lea r15, str.Sledgehammer
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
mov r9d, 0x17c
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeinclude_sledgehammerimpl.inl
lea rdx, [0x1403b8fe8]
mov rcx, rax
call qword [r10 + 0x18]
mov ebx, 0xe0001008
jmp 0x140013d20
mov r14d, ebx
test r13d, r13d
je 0x140013d1b
lea r15, str.Sledgehammer
nop word [rax + rax]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call fcn.140286140
mov dword [rbp - 0x6c], ebx
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140013c21
mov rcx, qword [rsi]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x30]
mov r8d, edi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
je 0x140013cae
mov eax, dword [rbp - 0x6c]
shr eax, 1
je 0x140013cfc
cmp eax, 0x400
ja 0x140013cfc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], bx
mov r8d, eax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.14000d3a0
nop
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140025640
nop
lea rcx, [rsp + 0x68]
call fcn.14000c340
jmp 0x140013d20
call fcn.140024740
mov rbx, rax
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Unable_to_connect_pipe:__u
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 2
mov r9d, 0x191
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeinclude_sledgehammerimpl.inl
lea rdx, [0x1403b8fe8]
mov rcx, rbx
call qword [rdi + 0x20]
mov edi, dword [rsp + 0x54]
xor ebx, ebx
lea eax, [r13 - 1]
cmp r14d, eax
jae 0x140013d0f
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp r14d, r13d
jb 0x140013c00
mov ebx, 0xe0005002
lea rax, vtable.mb::common::system::ScopedAny_wchar_t____ptr64__void____ptr64____cdecl___void____ptr64___void____ptr64___cdecl_LocalFree_void____ptr64___0__0__4_.0
mov qword [rbp - 0x68], rax
test r12, r12
je 0x140013d39
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x58]
call fcn.14000c340
mov eax, ebx
jmp 0x140013db1
call fcn.140024740
mov rcx, rax
cmp qword [rbx + 0x18], 8
jb 0x140013d5e
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x140013d68
mov rsi, qword [rsi]
mov rax, qword [rax]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rsi
lea rdx, str.Invalid_parameter__ls__ls
mov qword [rsp + 0x30], rdx
lea r15, str.Sledgehammer
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
mov r9d, 0x15e
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeinclude_sledgehammerimpl.inl
lea rdx, [0x1403b8fe8]
call qword [rax + 0x20]
mov eax, 0xe0001005
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140282c10
add rsp, 0x8e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret