Function at 0x402690
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f40
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1098
call fcn.0040b680
mov eax, dword [0x433064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x103c], 0
push eax
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1040], 0xc
push eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1038], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x402a08
mov eax, dword [ebp - 0x1048]
xorps xmm0, xmm0
mov dword [ebp - 0x1064], eax
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x10a0]
movlpd qword [ebp - 0x1074], xmm0
or dword [ebp - 0x1074], 0x100
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push esi
push 0
movlpd qword [ebp - 0x109c], xmm0
movlpd qword [ebp - 0x1094], xmm0
movlpd qword [ebp - 0x108c], xmm0
movlpd qword [ebp - 0x1084], xmm0
movlpd qword [ebp - 0x107c], xmm0
movlpd qword [ebp - 0x106c], xmm0
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x10a0], 0x44
movups xmmword [ebp - 0x1058], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4029f8
push dword [ebp - 0x1048]
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x101c], 0
movups xmmword [ebp - 0x1034], xmm0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0xf
mov byte [ebp - 0x1034], 0
push 0
lea eax, [ebp - 0x101c]
mov dword [ebp - 4], 0
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4028ee
mov eax, dword [ebp - 0x101c]
test eax, eax
je 0x4028e8
cmp eax, 0x1000
jae 0x402a2b
lea esi, [ebp - 0x1018]
mov byte [ebp + eax - 0x1018], 0
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x402850
mov edx, dword [ebp - 0x1020]
sub esi, ecx
mov ecx, dword [ebp - 0x1024]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x40289f
lea eax, [esi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x1024], eax
lea edi, [ebp - 0x1034]
cmovae edi, dword [ebp - 0x1034]
lea eax, [ebp - 0x1018]
add edi, ecx
push eax
push edi
call fcn.0040bd30
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4028bf
lea eax, [ebp - 0x1018]
mov byte [ebp - 0x10a4], 0
push eax
push dword [ebp - 0x10a4]
lea ecx, [ebp - 0x1034]
push esi
call fcn.00408ae0
push 0
lea eax, [ebp - 0x101c]
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402821
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1044]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x1058]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1058]
call esi
push dword [ebp - 0x1054]
call esi
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1034]
mov edi, dword [ebp - 0x1034]
cmp eax, 0x10
mov esi, dword [ebp - 0x1024]
cmovae ecx, edi
test esi, esi
jne 0x4029ca
mov edx, 0x42f873
sub esi, 4
jb 0x402955
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40295a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402944
cmp esi, 0xfffffffc
je 0x40298e
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402987
cmp esi, 0xfffffffd
je 0x40298e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402987
cmp esi, 0xfffffffe
je 0x40298e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x402987
cmp esi, 0xffffffff
je 0x40298e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40298e
sbb eax, eax
or eax, 1
jmp 0x402990
xor eax, eax
test eax, eax
mov eax, dword [ebp - 0x1020]
jne 0x4029ca
cmp eax, 0x10
jb 0x4029c6
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4029bc
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a30
push ecx
push edi
call fcn.0040ab3e
add esp, 8
xor eax, eax
jmp 0x402a0d
cmp eax, 0x10
jb 0x402a08
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4029ec
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a30
push ecx
push edi
call fcn.0040ab3e
add esp, 8
jmp 0x402a08
push dword [ebp - 0x1044]
call esi
push dword [ebp - 0x1048]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a8fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040aa33
call fcn.0041153c
int3