Function at 0x5a7e90
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 0x6212bb
mov eax, dword fs:[0]
push eax
mov eax, 0x288c
call fcn.005f33e0
mov eax, dword [0x6be5a4]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x2844]
push eax
lea ecx, [ebp - 0x2834]
mov dword [ebp - 0x2838], ebx
push ecx
lea edx, [ebp - 0x2830]
push edx
mov dword [ebp - 0x2844], 0xc
mov dword [ebp - 0x2840], ebx
mov dword [ebp - 0x283c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x5a7f29
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x69077a
mov ecx, esi
mov byte [esi + 4], bl
call fcn.005a5230
jmp 0x5a80ea
push 0x40
lea eax, [ebp - 0x2894]
push ebx
push eax
mov dword [ebp - 0x2898], 0x44
call fcn.005f6220
add esp, 0xc
lea ecx, [ebp - 0x2898]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x2834]
mov dword [ebp - 0x2858], eax
mov dword [ebp - 0x285c], eax
lea eax, [ebp - 0x2854]
push eax
lea ecx, [ebp - 0x2898]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push edi
xor edx, edx
push ebx
mov dword [ebp - 0x286c], 0x101
mov word [ebp - 0x2868], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5a7fd0
mov edx, dword [ebp - 0x2834]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x2830]
push eax
call edi
push 9
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x689398
mov ecx, esi
mov byte [esi + 4], bl
call fcn.005a5230
jmp 0x5a80ea
mov ecx, dword [ebp - 0x2834]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2834], ebx
mov dword [ebp - 0x2814], 0xf
mov dword [ebp - 0x2818], ebx
mov byte [ebp - 0x2828], bl
push 0x27ff
lea edx, [ebp - 0x280f]
push ebx
push edx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x2810], bl
call fcn.005f6220
mov edx, dword [ebp - 0x2830]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push ebx
lea eax, [ebp - 0x2838]
push eax
push 0x27ff
lea ecx, [ebp - 0x2810]
push ecx
push edx
mov dword [ebp - 0x2838], ebx
call edi
test eax, eax
je 0x5a808d
lea eax, [ebp - 0x2810]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5a8050
sub eax, edx
push eax
lea eax, [ebp - 0x2810]
push eax
lea ecx, [ebp - 0x282c]
call fcn.005a4fc0
mov eax, dword [ebp - 0x2830]
push ebx
lea ecx, [ebp - 0x2838]
push ecx
push 0x27ff
lea edx, [ebp - 0x2810]
push edx
push eax
call edi
test eax, eax
jne 0x5a8044
mov ecx, dword [ebp - 0x2830]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x2854]
push edx
mov dword [ebp - 0x2830], ebx
call edi
mov eax, dword [ebp - 0x2850]
push eax
call edi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x282c]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.005a5140
cmp dword [ebp - 0x2814], 0x10
jb 0x5a80ea
mov edx, dword [ebp - 0x2828]
push edx
call fcn.00612a47
add esp, 4
mov eax, esi
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.005f60cd
mov esp, ebp
pop ebp
ret