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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4357a1
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x248], edi
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x248], edi
push eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x258], 0xc
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x250], 1
push eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x24c], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
test eax, eax
jne 0x402910
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [edi + 0x14], 7
push 0x4443f8
mov word [edi], ax
call fcn.00404540
jmp 0x402c6c
push 1
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x228]
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], 0x44
movlpd qword [ebp - 0x280], xmm0
mov edx, 0x444400
or dword [ebp - 0x280], 0x100
push esi
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
movlpd qword [ebp - 0x278], xmm0
movups xmmword [ebp - 0x268], xmm0
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
call fcn.00405d20
add esp, 4
push 0x4443fc
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004046a0
mov dword [ebp - 0x230], 0
xor ecx, ecx
mov dword [ebp - 0x22c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x230], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x402a2f
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402a25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c89
push edx
push ecx
call fcn.00419245
add esp, 8
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x218], 0
push ecx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x214], 7
push ecx
push 0
push 0
push 0x8000000
xor eax, eax
cmp dword [ebp - 0x22c], 8
push 1
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x24c]
test eax, eax
jne 0x402b03
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x244]
call esi
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x4443f8
mov word [edi], ax
call fcn.00404540
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x402c6c
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8e
jmp 0x402c62
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x214], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2b0], eax
movq qword [ebp - 0x21c], xmm0
xor esi, esi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], eax
push esi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 3
push eax
push 0x1fe
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402bc4
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x402bb8
push dword [ebp - 0x248]
shr eax, 1
lea ecx, [ebp - 0x210]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [ebp - 0x21c]
push eax
push esi
call fcn.004078e0
push 0
lea eax, [ebp - 0x248]
push eax
push 0x1fe
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x218]
test eax, eax
jne 0x402b62
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2b0], eax
push 0xffffffffffffffff
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2b0]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp ecx, esi
je 0x402c26
sub esi, ecx
sar esi, 1
push esi
push ecx
mov ecx, edi
call fcn.00404540
mov ecx, dword [ebp - 0x2b0]
test ecx, ecx
je 0x402ac0
mov edx, dword [ebp - 0x214]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffe
cmp edx, 0x1000
jb 0x402c53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.00419245
add esp, 8
jmp 0x402ac0
push edx
push ecx
call fcn.00419245
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419004
mov esp, ebp
pop ebp
ret
call fcn.0041f2d0
call fcn.0041f2d0
call fcn.0041f2d0
int3