Function at 0x4081b0
Capabilities:
Connect pipe
Create pipe
Create thread
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c3ac
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x425008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor edi, edi
cmp dword [esi], 0
jne 0x408257
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x4081f2
mov eax, dword [eax]
push 0
push 0
push 0x64
push 0x64
push 2
push 4
push 0x80003
push eax
call ebx
test eax, eax
je 0x40820f
cmp eax, 0xffffffff
jne 0x408222
push 0x4b0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xc
jl 0x4081e2
jmp 0x408224
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408257
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x408236
mov eax, dword [edi]
jmp 0x408238
mov eax, edi
push 0
push 0
push 0x64
push 0x64
push 2
push 4
push 0x80003
push eax
call ebx
test eax, eax
je 0x40826d
cmp eax, 0xffffffff
je 0x40826d
mov dword [esi], eax
mov ecx, esi
call fcn.00408710
test al, al
jne 0x4083eb
mov ecx, esi
call fcn.004088e0
mov eax, dword [0x428d1c]
test eax, eax
jne 0x4082a8
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40829a
mov ecx, eax
call fcn.00401420
jmp 0x40829c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], eax
cmp dword [edi + 0x14], 0x10
movzx ebx, word [eax + 4]
movzx eax, bx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
jb 0x4082bf
mov eax, dword [edi]
jmp 0x4082c1
mov eax, edi
push 0
lea ecx, [ebp - 0x20]
push ecx
push 2
lea ecx, [ebp - 0x10]
push ecx
push 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x40834b
cmp dword [edi + 0x14], 0x10
jb 0x4082e6
mov edi, dword [edi]
mov ebx, dword [0x428d1c]
test ebx, ebx
jne 0x408325
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x408316
mov ecx, eax
call fcn.00401420
mov ebx, eax
jmp 0x408318
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], ebx
push edi
push str.__27____30____4___s.__2__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x60
push 0x4225d3
push ebx
call fcn.004025a0
add esp, 0x1c
mov ecx, esi
call fcn.004088e0
mov cx, word [ebp - 0x10]
mov ax, cx
shr bx, 8
shr ax, 8
cmp al, bl
ja 0x40836d
jne 0x408257
cmp cl, byte [ebp - 0x14]
jb 0x408257
mov edi, dword [0x428d1c]
test edi, edi
jne 0x4083b0
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x40839d
mov ecx, eax
call fcn.00401420
mov edi, eax
jmp 0x40839f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov cx, word [ebp - 0x10]
mov dword [0x428d1c], edi
mov eax, dword [ebp - 0x14]
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, cl
push eax
movzx eax, cx
shr eax, 8
push eax
push str.__28___d._d____29___d._d.__1__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x63
push 0x4225d3
push edi
call fcn.004025a0
add esp, 0x28
mov ecx, esi
call fcn.00408670
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push 0x407f00
push 0
push 0
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x408433
cmp eax, 0xffffffff
je 0x408433
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push 0x407e80
push 0
push 0
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x428d1c]
mov dword [esi + 0x1c], 0
test edi, edi
jne 0x408479
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x40846a
mov ecx, eax
call fcn.00401420
mov edi, eax
jmp 0x40846c
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], edi
push str.__30____31____4__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6f
push 0x4225d3
push edi
call fcn.004025a0
add esp, 0x18
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004084b0
int3