Function at 0x4728cc
Capabilities:
Create pipe
Read file on windows
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x4728d5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1d0]
call fcn.00405568
xor eax, eax
push ebp
push 0x4731e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 0x10]
call fcn.004050b8
mov eax, edi
call fcn.004050b8
lea eax, [ebp - 0x1dc]
call fcn.004050b8
lea eax, [ebp - 0x1e0]
call fcn.004050b8
xor eax, eax
push ebp
push 0x473131
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0x1d8]
call fcn.00409aa8
cmp dword [ebp - 0x214], 0
je 0x472ae5
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x1d0]
call fcn.0040984c
mov edx, dword [ebp - 0x218]
mov eax, 0x473200
call fcn.004056bc
mov esi, eax
test esi, esi
je 0x4729b7
mov eax, dword [ebp - 0x1d0]
call fcn.00405378
lea edx, [esi + 0xa]
cmp eax, edx
jl 0x4729dc
mov eax, dword [ebp - 0x1d0]
cmp byte [eax + esi + 9], 0x2e
je 0x4729dc
mov eax, dword [ebp - 0x1d0]
cmp byte [eax + esi + 9], 0x20
je 0x4729dc
lea edx, [ebp - 0x21c]
xor eax, eax
call fcn.004723b4
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x1dc]
mov ecx, 0x473214
call fcn.004053c4
jmp 0x4729ff
lea edx, [ebp - 0x220]
xor eax, eax
call fcn.004723b4
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x1dc]
mov ecx, 0x473224
call fcn.004053c4
push 0
push pe_nt_image_headers32
push 1
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 0x1dc]
call fcn.00405578
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x472a66
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x228]
call fcn.004675b4
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x224]
mov edx, 0x473234
call fcn.004053c4
mov ecx, dword [ebp - 0x224]
mov dl, 1
mov eax, dword [0x408b20]
call fcn.0040df48
call fcn.00404a48
push 0
lea eax, [ebp - 0x1f0]
push eax
mov eax, dword [ebp - 0x1d8]
call fcn.00405378
push eax
mov eax, dword [ebp - 0x1d8]
call fcn.00405578
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1e9], al
push esi
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x1e9], 0
jne 0x472ae5
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x230]
call fcn.004675b4
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
mov edx, 0x473234
call fcn.004053c4
mov ecx, dword [ebp - 0x22c]
mov dl, 1
mov eax, dword [0x408b20]
call fcn.0040df48
call fcn.00404a48
push 0
push 0
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x1dc]
call fcn.0040aa7c
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x1d0]
mov eax, 0x473258
call fcn.0046990c
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x1d0]
call fcn.00405150
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp + 0x18]
mov eax, 0x47326c
call fcn.0046990c
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x1d0]
call fcn.00405150
cmp byte [0x4db93c], 0
jne 0x472b6f
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.004723b4
jmp 0x472b7a
lea eax, [ebp - 0x1e0]
call fcn.004050b8
cmp byte [0x4db93c], 0
je 0x472c13
mov dword [ebp - 0x210], 0xc
xor eax, eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], 0xffffffff
mov eax, dword [0x4db940]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1f4]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x472bdd
mov ecx, 0x473280
mov dl, 1
mov eax, dword [0x408b20]
call fcn.0040df48
call fcn.00404a48
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x1e8]
push eax
push 0
mov eax, dword [ebp - 0x1f8]
push eax
mov eax, dword [ebp - 0x1f8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x1d0]
call fcn.00472714
mov byte [ebp - 0x1e9], al
jmp 0x472c58
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1d0]
push 0x47329c
push dword [ebp - 0x1e0]
lea eax, [ebp - 0x240]
mov edx, 3
call fcn.00405438
mov eax, dword [ebp - 0x240]
xor ecx, ecx
mov edx, dword [ebp - 0x1d4]
call fcn.004728b0
mov byte [ebp - 0x1e9], al
cmp byte [ebp - 0x1e9], 0
je 0x4730c7
cmp byte [0x4db93c], 0
je 0x472f72
mov eax, 0x1401
call fcn.00409768
mov dword [ebp - 0x204], eax
xor eax, eax
push ebp
push 0x472f6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x200], eax
push 0
lea eax, [ebp - 0x200]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x1f4]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x472cc6
cmp dword [ebp - 0x200], 0
ja 0x472cca
xor eax, eax
jmp 0x472ccc
mov al, 1
mov ebx, eax
test bl, bl
je 0x472f18
push 0
lea eax, [ebp - 0x1fc]
push eax
push 0x1400
mov eax, dword [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x1f4]
push eax
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 0x244]
mov edx, dword [ebp - 0x204]
call fcn.004052b0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x1e4]
mov edx, dword [ebp - 0x1fc]
call fcn.004335e0
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x1e4]
call fcn.00409aa8
cmp dword [ebp - 0x248], 0
je 0x472f18
cmp dword [ebp + 8], 0
jle 0x472d9b
mov edx, dword [ebp + 8]
inc edx
mov cl, 0xa
mov eax, dword [ebp - 0x1e4]
call fcn.00469cf8
mov esi, eax
test esi, esi
jne 0x472d68
mov eax, dword [ebp - 0x1e4]
call fcn.00405378
mov esi, eax
inc esi
lea eax, [ebp - 0x24c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1e4]
call fcn.004055d8
mov edx, dword [ebp - 0x24c]
mov eax, edi
call fcn.00405380
mov eax, dword [edi]
mov dl, 0xa
call fcn.004694dc
sub dword [ebp + 8], eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov eax, 0x4732a8
call fcn.004056bc
dec eax
je 0x472f00
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x1e4]
call fcn.00409aa8
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x1e4]
call fcn.00405150
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 0x1e4]
call fcn.0040984c
mov eax, dword [ebp - 0x254]
push eax
mov eax, 0x4732a8
lea edx, [ebp - 0x258]
call fcn.0040984c
mov eax, dword [ebp - 0x258]
pop edx
call fcn.004056bc
mov esi, eax
test esi, esi
jle 0x472e99
cmp esi, 2
jl 0x472e30
mov eax, dword [ebp - 0x1e4]
cmp byte [eax + esi - 2], 0xd
je 0x472e30
mov eax, dword [ebp - 0x1e4]
cmp byte [eax + esi - 2], 0xa
jne 0x472e99
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x1e4]
call fcn.00405378
mov ecx, eax
mov edx, esi
mov eax, dword [ebp - 0x1e4]
call fcn.004055d8
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov eax, 0x4732bc
call fcn.004056bc
mov esi, eax
test esi, esi
jle 0x472e79
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.00405378
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov edx, esi
call fcn.00405618
lea edx, [ebp - 0x25c]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.00409aa8
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp + 0x10]
call fcn.0040510c
jmp 0x472f00
mov edx, 0x4732bc
mov eax, dword [ebp - 0x1e4]
call fcn.00469d44
mov esi, eax
test esi, esi
jne 0x472ebf
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1e4]
call fcn.0040510c
jmp 0x472f00
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x1e4]
call fcn.00405378
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 0x1e4]
call fcn.004055d8
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x260]
call fcn.00409aa8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp + 0x10]
call fcn.0040510c
mov eax, 0x4732a8
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004056bc
dec eax
jne 0x472f18
cmp dword [ebp + 8], 0
je 0x472f20
test bl, bl
jne 0x472c90
lea edx, [ebp - 0x268]
mov eax, dword [edi]
call fcn.00409aa8
mov edx, dword [ebp - 0x268]
mov eax, edi
call fcn.0040510c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4730c3
mov eax, dword [ebp - 0x204]
call fcn.00402b84
mov eax, dword [ebp - 0x1f4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1f8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 0x1e0]
call fcn.0040a3e4
test al, al
je 0x4730c3
mov eax, dword [ebp - 0x1e0]
call fcn.00472638
cmp edx, 0
jne 0x472fa0
cmp eax, 0
jbe 0x4730c3
jmp 0x472fa6
jle 0x4730c3
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1cc]
call fcn.00403438
lea eax, [ebp - 0x1cc]
call fcn.004031c8
call fcn.00402ce0
jmp 0x473083
lea edx, [ebp - 0x1e4]
lea eax, [ebp - 0x1cc]
call fcn.0040394c
lea eax, [ebp - 0x1cc]
call fcn.004039b8
call fcn.00402ce0
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0x1e4]
call fcn.00409aa8
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x1e4]
call fcn.00405150
cmp dword [ebp - 0x1e4], 0
je 0x473083
cmp dword [ebp + 8], 0
jle 0x47303a
push dword [edi]
push dword [ebp - 0x1e4]
push 0x4732c8
mov eax, edi
mov edx, 3
call fcn.00405438
dec dword [ebp + 8]
mov eax, 0x4732a8
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004056bc
dec eax
je 0x47306b
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 0x1e4]
call fcn.00409aa8
mov edx, dword [ebp - 0x270]
mov eax, dword [ebp + 0x10]
call fcn.0040510c
mov eax, 0x4732a8
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
call fcn.004056bc
dec eax
jne 0x473083
cmp dword [ebp + 8], 0
je 0x47309b
lea eax, [ebp - 0x1cc]
call fcn.00403758
call fcn.00402ce0
test al, al
je 0x472fcc
lea eax, [ebp - 0x1cc]
call fcn.004035b4
call fcn.00402ce0
cmp dword [edi], 0
je 0x4730c3
mov eax, dword [edi]
call fcn.00405378
mov edx, eax
sub edx, 2
mov eax, edi
call fcn.00405704
mov bl, 1
jmp 0x473127
mov eax, dword [ebp - 0x1e8]
sub eax, 0xfffffffd
je 0x4730fd
dec eax
je 0x4730e7
dec eax
jne 0x473113
mov eax, dword [ebp + 0x10]
mov edx, 0x4732d4
call fcn.0040510c
jmp 0x473127
mov eax, dword [ebp + 0x10]
mov edx, 0x4732fc
call fcn.0040510c
push 0x64
call sub.kernel32.dll_Sleep_1
jmp 0x473127
mov eax, dword [ebp + 0x10]
mov edx, 0x47331c
call fcn.0040510c
push 0x64
call sub.kernel32.dll_Sleep_1
jmp 0x473127
mov eax, dword [ebp + 0x10]
mov edx, 0x47331c
call fcn.0040510c
push 0x64
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x473185
cmp dword [ebp - 0x1dc], 0
je 0x473199
mov eax, dword [ebp - 0x1dc]
call fcn.0040a56c
cmp dword [ebp - 0x1e0], 0
je 0x4731ad
mov eax, dword [ebp - 0x1e0]
call fcn.0040a56c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4731ed
lea eax, [ebp - 0x270]
mov edx, 0x18
call fcn.004050dc
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.004050dc
lea eax, [ebp - 0x1d0]
call fcn.004050b8
ret