Function at 0x422830
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5706d8
mov eax, dword fs:[0]
push eax
mov eax, 0x1090
call fcn.0053f910
mov eax, dword [0x5e8464]
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 ebx, ecx
mov dword [ebp - 0x1098], ebx
mov dword [ebp - 0x1098], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
push 0
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1040], 0xc
push eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x103c], 0
push eax
mov dword [ebp - 0x1038], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4229a5
sub esp, 0x18
lea eax, [ebp - 0x1028]
mov ecx, esp
push eax
call fcn.00407df0
mov ecx, ebx
call fcn.004223e0
mov edx, dword [ebp - 0x1014]
add esp, 0x18
cmp edx, 0x10
jb 0x422938
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42292e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422c77
push edx
push ecx
call fcn.0053efdc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
cmp edx, 0x10
jb 0x422987
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42297d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422c77
push edx
push ecx
call fcn.0053efdc
add esp, 8
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.0053ed9c
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1094], 0x44
lea eax, [ebp - 0x1094]
movlpd qword [ebp - 0x1090], xmm0
push eax
movlpd qword [ebp - 0x1088], xmm0
movlpd qword [ebp - 0x1080], xmm0
movlpd qword [ebp - 0x1078], xmm0
movlpd qword [ebp - 0x1070], xmm0
movlpd qword [ebp - 0x1068], xmm0
movlpd qword [ebp - 0x1060], xmm0
movlpd qword [ebp - 0x1058], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1058], eax
xor eax, eax
mov word [ebp - 0x1064], ax
mov eax, dword [ebp + 0x18]
inc eax
mov dword [ebp - 0x1068], 0x101
push eax
call fcn.0053efea
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
lea eax, [ebp + 8]
mov dword [ebp - 0x1098], esi
cmovae eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
inc eax
push eax
push esi
call fcn.00548e74
add esp, 0x10
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x1094]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x422a85
push esi
call fcn.0053edaa
sub esp, 0x14
jmp 0x4228e6
push 0x1388
push dword [ebp - 0x1050]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422aab
push 0
push dword [ebp - 0x1050]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x104c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1050]
call esi
push dword [ebp - 0x1034]
call esi
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00542b10
add esp, 0xc
lea eax, [ebp - 0x102c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422bc6
nop dword [eax + eax]
lea esi, [ebp - 0x1010]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x422b20
mov edx, dword [ebp - 0x1014]
sub esi, ecx
mov ecx, dword [ebp - 0x1018]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x422b6f
lea eax, [esi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x1018], eax
lea edi, [ebp - 0x1028]
cmovae edi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1010]
add edi, ecx
push eax
push edi
call fcn.00542c70
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x422b8f
lea eax, [ebp - 0x1010]
mov byte [ebp - 0x109c], 0
push eax
push dword [ebp - 0x109c]
lea ecx, [ebp - 0x1028]
push esi
call fcn.0040a160
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x102c]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422b10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1030]
call esi
push dword [ebp - 0x1098]
call fcn.0053edaa
sub esp, 0x14
lea eax, [ebp - 0x1028]
mov ecx, esp
push eax
call fcn.00407df0
mov ecx, ebx
call fcn.004223e0
mov edx, dword [ebp - 0x1014]
add esp, 0x18
cmp edx, 0x10
jb 0x422c2a
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422c20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422c77
push edx
push ecx
call fcn.0053efdc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
cmp edx, 0x10
jb 0x422987
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42297d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42297d
call fcn.00549186
int3