Function at 0x40add0
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
push 0xffffffffffffffff
push 0x57f6eb
mov eax, dword fs:[0]
push eax
mov eax, 0x387c
call fcn.00551530
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x3820], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3830], 0
test esi, esi
jne 0x40ae2c
push 0x5e021c
call fcn.0040b1c0
jmp 0x40b03c
push 0x2800
lea eax, [ebp - 0x3810]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x3810]
test edi, edi
je 0x40ae5f
push edi
push esi
push 0x5e0164
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40ae6f
push esi
push 0x5dfb38
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x5e021c
lea ecx, [ebp - 0x381c]
call fcn.0040b1c0
push 0
lea eax, [ebp - 0x382c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3818]
mov dword [ebp - 0x3814], 0
push eax
lea eax, [ebp - 0x3814]
mov dword [ebp - 0x3818], 0
push eax
mov dword [ebp - 0x382c], 0xc
mov dword [ebp - 0x3828], 0
mov dword [ebp - 0x3824], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40afdd
lea eax, [ebp - 0x3888]
mov dword [ebp - 0x3888], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x3818]
mov dword [ebp - 0x3848], eax
mov dword [ebp - 0x384c], eax
xor eax, eax
mov word [ebp - 0x3858], ax
lea eax, [ebp - 0x3840]
push eax
lea eax, [ebp - 0x3888]
mov dword [ebp - 0x385c], 0x101
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x3810]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40afdd
push dword [ebp - 0x3818]
call edi
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00553bc0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x3820]
add esp, 0xc
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x3814]
call esi
test eax, eax
je 0x40afdd
lea eax, [ebp - 0x1010]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afa0
sub eax, edx
lea ecx, [ebp - 0x381c]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0040b4c0
push 0
lea eax, [ebp - 0x3820]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x3814]
call esi
test eax, eax
jne 0x40af95
mov eax, dword [ebp - 0x3814]
test eax, eax
je 0x40aff4
push eax
call edi
mov dword [ebp - 0x3814], 0
push dword [ebp - 0x3840]
call edi
push dword [ebp - 0x383c]
call edi
mov ecx, dword [ebp - 0x381c]
lea ecx, [ecx - 0x10]
call fcn.00408b90
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x381c]
mov dword [ebx], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b03c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret