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

Disassembly:
push 0xffffffffffffffff
push 0x4791e1
mov eax, dword fs:[0]
push eax
mov eax, 0x27c4
call fcn.00460730
mov eax, dword [0x498550]
xor eax, esp
mov dword [esp + 0x27c0], eax
push ebx
push esi
mov eax, dword [0x498550]
xor eax, esp
push eax
lea eax, [esp + 0x27d0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.ipconfig__all]
mov ecx, dword [0x481dc4]
mov edx, dword [0x481dc8]
push ebx
mov dword [esp + 0xa8], eax
mov ax, word [0x481dcc]
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xb0], edx
push ecx
lea edx, [esp + 0x1c]
mov word [esp + 0xb8], ax
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4089a6
push 0x4811db
mov ecx, edi
call fcn.00402440
jmp 0x408ba2
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea ecx, [esp + 0xc4]
push ecx
push ebx
mov word [esp + 0x94], bx
mov dword [esp + 0x90], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp eax, ebx
mov dword [esp + 0x27d8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x408af1
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
push eax
call esi
push 0x2711
lea ecx, [esp + 0xb8]
push ebx
push ecx
call fcn.0045f620
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x2710
lea eax, [esp + 0xc0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x408ab1
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push 0x4811db
mov ecx, edi
call fcn.00402440
cmp dword [esp + 0xa0], 0x10
jb 0x408ba2
mov edx, dword [esp + 0x8c]
push edx
jmp 0x408b9a
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
jmp 0x408ac0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408ac0
sub eax, edx
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x90]
call fcn.00403410
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x408af8
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x10]
call fcn.00402440
mov byte [esp + 0x27d8], 1
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401db0
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x40], esp
push str._w_2__w_2__w_2__w_2__w_2__w_2
mov byte [esp + 0x27e4], 2
call fcn.00402440
push edi
mov byte [esp + 0x27e4], 1
call fcn.00405ec0
mov byte [esp + 0x27e4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0xa0], 0x10
jb 0x408ba2
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0043f84a
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x27d0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x27c0]
xor ecx, esp
call fcn.0045c2d7
add esp, 0x27d0
ret