Function at 0x471868
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f84
xor eax, eax
push ebp
push 0x471b27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x3c], 0xc
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0xffffffff
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x4718e4
mov eax, 0x471b40
call fcn.00437918
or ebx, 0xffffffff
jmp 0x471b01
lea eax, [ebp - 0x80]
xor ecx, ecx
mov edx, 0x44
call fcn.004033fc
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x101
mov word [ebp - 0x50], bx
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f94
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x471965
mov eax, 0x471b5c
call fcn.00437918
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
or ebx, 0xffffffff
jmp 0x471b01
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov esi, 0xff
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
call fcn.00404ad0
push esi
mov esi, 0x471b74
lea edi, [ebp - 0x190]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop esi
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x190]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
jne 0x4719db
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4719d1
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x471acb
lea eax, [ebp - 0x194]
lea edx, [ebp - 0x190]
mov ecx, pe_nt_image_headers32
call fcn.00404d40
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 8]
call fcn.00404d9c
xor ebx, ebx
mov edx, dword [ebp - 8]
mov eax, 0x471c7c
call fcn.004050d8
mov edi, eax
test edi, edi
jle 0x471a6a
mov bl, 1
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404ff4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
lea edx, [edi + 2]
mov ecx, 0xff
mov eax, dword [ebp - 8]
call fcn.00404ff4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x471a60
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov esi, 0xff
sub esi, dword [ebp - 0x2c]
jmp 0x471a82
mov esi, 0xff
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
call fcn.00404ad0
test bl, bl
jne 0x471aba
cmp dword [ebp - 0x1c], 0xff
jne 0x471a9b
mov eax, 0x471c88
call fcn.00437918
jmp 0x471aba
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x471ab2
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov esi, 0xff
sub esi, dword [ebp - 0x30]
mov eax, dword [0x496764]
mov eax, dword [eax]
call fcn.004626d4
jmp 0x471980
push 0xffffffffffffffff
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471b2e
lea eax, [ebp - 0x194]
call fcn.00404ad0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404af4
ret