Function at 0x40ae80
Capabilities:
Connect pipe

Disassembly:
push 0xffffffffffffffff
push 0x47b489
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4a0034]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0034]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x44]
xor edi, edi
cmp dword [esi + 0x48], 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x40b0da
mov ebx, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
mov eax, dword [esi + 0x3c]
lea edx, [esp + 0x24]
push edx
push eax
call ebx
cmp eax, edi
jne 0x40b0da
call ebp
cmp eax, 0x3e5
je 0x40af31
cmp eax, 0x217
jne 0x40b0da
mov ecx, dword [esi + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x24]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40b10b
push 4
call fcn.0040b294
add esp, 4
cmp eax, edi
je 0x40af62
lea ecx, [esp + 0xe4]
mov dword [eax], ecx
jmp 0x40af64
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], edi
mov dword [esp + 0xfc], edi
push 4
mov dword [esp + 0x110], 1
call fcn.0040b294
add esp, 4
cmp eax, edi
je 0x40afab
lea edx, [esp + 0x80]
mov dword [eax], edx
jmp 0x40afad
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
push 0x48
lea eax, [esp + 0xa0]
push edi
push eax
mov byte [esp + 0x118], 3
call fcn.0044f2d0
add esp, 0xc
lea ecx, [esp + 0xe4]
call fcn.00409490
push 0x48
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.0044f2d0
add esp, 0xc
lea ecx, [esp + 0x80]
call fcn.00409490
mov eax, dword [esi + 0x3c]
lea edx, [esp + 0x9c]
push edx
push eax
call fcn.0040a610
add esp, 8
cmp eax, edi
je 0x40b03d
call ebp
push eax
push str.Get_Error:__d_n
call fcn.0044f572
add esp, 8
jmp 0x40b0a3
push str.Proc_Request_n
call fcn.0044f572
mov ecx, dword [esi]
add esp, 4
lea eax, [esp + 0x38]
push eax
cmp ecx, edi
je 0x40b065
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xa0]
push eax
call edx
jmp 0x40b074
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.0040ab00
mov eax, dword [esi + 0x3c]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.0040a790
add esp, 8
cmp eax, edi
je 0x40b099
call ebp
push eax
push str.Send_Error_:__d_n
call fcn.0044f572
add esp, 8
mov ecx, dword [esi + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea ecx, [esp + 0x80]
call fcn.00403fb0
lea ecx, [esp + 0xe4]
mov dword [esp + 0x10c], 0xffffffff
call fcn.00403fb0
cmp dword [esi + 0x48], 5
je 0x40af00
mov dword [esi + 0x48], 2
xor eax, eax
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.0044f172
add esp, 0xfc
ret
mov ecx, esi
call fcn.0040aac0
mov eax, 1
jmp 0x40b0e3