Function at 0x410090
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 8]
sub esp, 0xc4
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x74], 0x445710
mov dword [ebp - 0x6c], ebx
lea ebx, [ebp - 0x8c]
mov dword [ebp - 0x70], 0x446960
mov dword [ebp - 0x68], 0x4106d6
mov dword [ebp - 0x64], esp
mov dword [esp], ebx
call fcn.004286e0
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4100ff
mov dword [esp + 8], str.isClosed__
mov dword [esp + 4], 0xd0
mov dword [esp], str.src_agent_NamedPipe.cc
mov dword [ebp - 0x88], 0xffffffff
call fcn.0041d680
mov eax, dword [ebp + 0xc]
and eax, 3
mov dword [ebp - 0x94], eax
je 0x410580
mov eax, dword [ebp - 0x94]
or eax, 0x40080000
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x88], 0xffffffff
call fcn.00419650
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4105b0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], eax
call fcn.0041aa60
lea edx, [ebp - 0x44]
mov dword [esp + 0x18], 0x7530
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
sub esp, 0x20
mov dword [ebp - 0x94], eax
call fcn.00417600
test al, al
jne 0x410470
cmp dword [ebp - 0x94], 0xffffffff
je 0x410550
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 4]
mov ecx, edx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x90], edx
call fcn.00440e20
mov eax, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
sub esp, 0x10
mov dword [eax + 0x68], ebx
mov ebx, dword [ebp + 0xc]
mov dword [eax + 0x30], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x88], 1
call fcn.0040fa10
mov ecx, dword [ebp - 0x90]
lea eax, [ecx + 0x2c]
mov dword [ebp - 0x98], eax
mov ecx, eax
mov dword [esp], 0
mov dword [ebp - 0x88], 4
call fcn.00418300
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x90]
sub esp, 4
mov dword [ebp - 0x20], 0
mov dword [ecx + 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp], 1
mov dword [ebp - 0x88], 0
mov ecx, eax
call fcn.00418300
mov ecx, dword [ebp - 0x90]
sub esp, 4
mov edx, dword [ecx + 0x2c]
lea eax, [ecx + 0x18]
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], edx
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x68]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
sub esp, 8
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x94]
test ebx, ebx
sete cl
cmp eax, 0x217
sete dl
test cl, dl
jne 0x410330
test ebx, ebx
jne 0x410330
cmp eax, 0x3e5
je 0x41036d
mov dword [esp + 8], str.false___ConnectNamedPipe_call_failed_
mov dword [esp + 4], 0xfa
mov dword [esp], str.src_agent_NamedPipe.cc
mov dword [ebp - 0x88], 1
call fcn.0041d680
jmp 0x41036d
mov dword [ebp - 0x88], 1
call fcn.00417600
test al, al
jne 0x4103a1
mov dword [esp], 0
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x88], 1
call fcn.00418300
mov ecx, dword [ebp - 0x90]
sub esp, 4
call fcn.0040fec0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41038c
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp eax, 0x435000
jne 0x410620
mov dword [esp], ecx
call fcn.00444a10
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call fcn.00428750
mov ebx, dword [ebp - 4]
leave
ret 0x10
lea eax, [ebp - 0x38]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x30]
test ebx, ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x38], eax
je 0x4105e0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
add eax, eax
mov edx, eax
mov dword [ebp - 0x94], eax
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x20], edx
ja 0x410630
cmp edx, 1
mov eax, dword [ebp - 0x38]
jne 0x410600
mov ebx, dword [ebp + 8]
movzx ecx, word [ebx]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x34], edx
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x88], 5
call fcn.004183f0
mov eax, dword [ebp - 0x20]
mov dword [esp], str.Server_pipe___s__connected
mov dword [esp + 4], eax
mov dword [ebp - 0x88], 6
call fcn.004168d0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x410450
mov dword [esp], eax
call fcn.00444a10
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xa0]
je 0x410343
mov dword [esp], eax
call fcn.00444a10
jmp 0x410343
lea eax, [ebp - 0x38]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x30]
test ebx, ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x38], eax
je 0x4105f0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
add eax, eax
mov edx, eax
mov dword [ebp - 0x98], eax
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x50], edx
ja 0x410683
cmp edx, 1
mov eax, dword [ebp - 0x38]
jne 0x410610
mov ebx, dword [ebp + 8]
movzx ecx, word [ebx]
mov word [eax], cx
mov ebx, dword [ebp - 0x9c]
xor ecx, ecx
mov dword [ebp - 0x34], edx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x88], 2
call fcn.004183f0
mov eax, dword [ebp - 0x94]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], str.opened_server_pipe___s___handle___p
mov dword [esp + 4], eax
mov dword [ebp - 0x88], 3
call fcn.004168d0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x410529
mov dword [esp], eax
call fcn.00444a10
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xa0]
je 0x4101b7
mov dword [esp], eax
call fcn.00444a10
cmp dword [ebp - 0x94], 0xffffffff
jne 0x4101c4
lea esi, [esi]
mov dword [esp + 8], str.handle___INVALID_HANDLE_VALUE___Could_not_open_server_pipe_
mov dword [esp + 4], 0xe7
mov dword [esp], str.src_agent_NamedPipe.cc
mov dword [ebp - 0x88], 1
call fcn.0041d680
jmp 0x4101c4
mov dword [esp + 8], str._openMode__OpenMode::Duplex____0
mov dword [esp + 4], 0xd1
mov dword [esp], str.src_agent_NamedPipe.cc
mov dword [ebp - 0x88], 0xffffffff
call fcn.0041d680
jmp 0x410111
mov dword [esp + 8], str.sd___error_creating_data_pipe_SECURITY_DESCRIPTOR_
mov dword [esp + 4], 0xd8
mov dword [esp], str.src_agent_NamedPipe.cc
mov dword [ebp - 0x88], 1
call fcn.0041d680
mov eax, dword [ebp - 0x4c]
jmp 0x410142
mov dword [esp], 0x44ab64
call fcn.00443ab0
lea esi, [esi]
mov dword [esp], 0x44ab64
call fcn.00443ab0
lea esi, [esi]
test edx, edx
je 0x4103f9
jmp 0x41065f
test edx, edx
je 0x4104c8
jmp 0x4106b2
call eax
jmp 0x41038c
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x88], 1
call fcn.00442b90
mov edx, dword [ebp - 0x20]
sub esp, 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edx
mov ebx, dword [ebp - 0x94]
mov dword [esp + 8], ebx
mov ebx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
jmp 0x4103f9
lea eax, [ebp - 0x50]
mov dword [esp + 4], 0
mov dword [esp], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x88], 1
call fcn.00442b90
mov edx, dword [ebp - 0x50]
sub esp, 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edx
mov ebx, dword [ebp - 0x98]
mov dword [esp + 8], ebx
mov ebx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x38]
jmp 0x4104c8