Function at 0x52426c
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, 0xfffff568
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa98], ebx
mov dword [ebp - 0xa94], ebx
mov dword [ebp - 0xa90], ebx
mov dword [ebp - 0xa8c], ebx
mov dword [ebp - 0xa88], ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.004052c8
lea edi, [ebp - 0xa2f]
xor eax, eax
push ebp
push 0x524723
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x524670
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0xc
call fcn.0040379c
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0xffffffff
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
lea edx, [ebp - 0xa88]
mov eax, dword [0x587abc]
mov eax, dword [eax]
call fcn.0048623c
mov eax, dword [ebp - 0xa88]
lea edx, [ebp - 0x2c]
call fcn.0040abcc
lea eax, [ebp - 0xa74]
xor ecx, ecx
mov edx, 0x44
call fcn.0040379c
mov dword [ebp - 0xa74], 0x44
mov dword [ebp - 0xa48], 0x101
mov word [ebp - 0xa44], bx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0xa74]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004052d8
push eax
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
call fcn.004052d8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x5243a9
mov dword [ebp - 0xc], 0xffffffff
jmp 0x524663
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, eax
mov eax, esi
call fcn.00404e08
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xa7c]
mov dword [eax], edx
jmp 0x5245b7
mov eax, edi
xor ecx, ecx
mov edx, 0x9f7
call fcn.0040379c
push 0
lea eax, [ebp - 0x18]
push eax
push pe_nt_image_headers32
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
mov ebx, eax
lea eax, [ebp - 0xa8c]
mov edx, edi
mov ecx, 0x9f7
call fcn.00405088
mov edx, dword [ebp - 0xa8c]
mov eax, esi
call fcn.004050e0
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
cmp dword [edx + eax*8 + 0xb0], 0
je 0x524483
xor eax, eax
push ebp
push 0x524474
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xa84]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0xa84]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xa80]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5245bf
lea eax, [ebp - 0xa90]
mov edx, edi
mov ecx, 0x9f7
call fcn.00405088
mov eax, dword [ebp - 0xa90]
call fcn.00510a9c
dec eax
jne 0x5244bb
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x138], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5246f5
lea eax, [ebp - 0xa94]
mov edx, edi
mov ecx, 0x9f7
call fcn.00405088
mov eax, dword [ebp - 0xa94]
call fcn.00510674
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0xa98]
mov edx, edi
mov ecx, 0x9f7
call fcn.00405088
mov eax, dword [ebp - 0xa98]
call fcn.0051083c
fstp qword [ebp - 0x28]
wait
fld qword [ebp - 0x20]
fcomp dword [0x524738]
fnstsw ax
sahf
jbe 0x5245ab
fld qword [ebp - 0x28]
fmul dword [0x52473c]
call fcn.00403170
push edx
push eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
pop dword [edx + eax*8 + 0x48]
pop dword [edx + eax*8 + 0x4c]
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
mov ecx, dword [ebp - 4]
lea edx, [edx + eax*8 + 0x48]
mov eax, dword [edx]
mov dword [ecx + 0x90], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x94], eax
fld qword [ebp - 0x20]
fmul dword [0x52473c]
call fcn.00403170
push edx
push eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
pop dword [edx + eax*8 + 0x50]
pop dword [edx + eax*8 + 0x54]
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
mov ecx, dword [ebp - 4]
lea edx, [edx + eax*8 + 0x50]
mov eax, dword [edx]
mov dword [ecx + 0x68], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x6c], eax
mov eax, dword [0x587abc]
mov eax, dword [eax]
call fcn.004859c0
test ebx, ebx
jne 0x5243cb
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
cmp dword [edx + eax*8 + 0xb0], 0
je 0x5245e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5246f5
mov eax, dword [0x587abc]
mov eax, dword [eax]
call fcn.004859c0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa84]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xa84]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0xa84]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xa80]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x94]
mov eax, dword [eax + 0x90]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x68]
sbb edx, dword [ecx + 0x6c]
cmp edx, 0
jne 0x524656
cmp eax, 0xf4240
jbe 0x524663
jmp 0x524658
jle 0x524663
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x138], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5246f5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52472a
lea eax, [ebp - 0xa98]
mov edx, 5
call fcn.00404e2c
lea eax, [ebp - 0x2c]
call fcn.00404e08
lea eax, [ebp - 8]
call fcn.00404e08
ret