Function at 0x52ac14
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 0x52b0cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x52b018
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 [0x58ff04]
mov eax, dword [eax]
call fcn.004868fc
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 0x52ad51
mov dword [ebp - 0xc], 0xffffffff
jmp 0x52b00b
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 0x52af5f
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 [0x5900b4]
mov edx, dword [edx]
cmp dword [edx + eax*8 + 0xb0], 0
je 0x52ae2b
xor eax, eax
push ebp
push 0x52ae1c
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 0x52af67
lea eax, [ebp - 0xa90]
mov edx, edi
mov ecx, 0x9f7
call fcn.00405088
mov eax, dword [ebp - 0xa90]
call fcn.00511984
dec eax
jne 0x52ae63
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 0x52b09d
lea eax, [ebp - 0xa94]
mov edx, edi
mov ecx, 0x9f7
call fcn.00405088
mov eax, dword [ebp - 0xa94]
call fcn.0051154c
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.00511724
fstp qword [ebp - 0x28]
wait
fld qword [ebp - 0x20]
fcomp dword [0x52b0e0]
fnstsw ax
sahf
jbe 0x52af53
fld qword [ebp - 0x28]
fmul dword [0x52b0e4]
call fcn.00403170
push edx
push eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x5900b4]
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 [0x5900b4]
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 [0x52b0e4]
call fcn.00403170
push edx
push eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x5900b4]
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 [0x5900b4]
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 [0x58ff04]
mov eax, dword [eax]
call fcn.00486080
test ebx, ebx
jne 0x52ad73
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x5900b4]
mov edx, dword [edx]
cmp dword [edx + eax*8 + 0xb0], 0
je 0x52af8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52b09d
mov eax, dword [0x58ff04]
mov eax, dword [eax]
call fcn.00486080
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 0x52affe
cmp eax, 0xf4240
jbe 0x52b00b
jmp 0x52b000
jle 0x52b00b
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 0x52b09d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b0d2
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