Function at 0x408510
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 0x44643d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10a8
call fcn.00427580
mov eax, dword [0x45e080]
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
mov dword [ebp - 0x10a8], esi
mov dword [ebp - 0x10ac], esi
mov dword [ebp - 0x10b4], esi
mov dword [ebp - 0x10b0], 1
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movups xmmword [esi], xmm0
push 0x45507b
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040a430
push 0
lea eax, [ebp - 0x1048]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x10b0], 1
push eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x1048], 0xc
push eax
mov dword [ebp - 0x1040], 1
mov dword [ebp - 0x1044], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x408641
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x408621
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408617
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40892d
push ecx
push edx
call fcn.004264e6
add esp, 8
mov eax, esi
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.004264a8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x103c]
lea ecx, [ebp - 0x10a0]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1050], eax
lea ecx, [ebp - 0x1090]
movlpd qword [ebp - 0x1064], xmm0
or dword [ebp - 0x1064], 0x100
cmp dword [ebx + 0x1c], 7
push ecx
push 0
push 0
push 0x8000000
push 1
mov dword [ebp - 0x1054], eax
lea eax, [ebx + 8]
cmova eax, dword [ebx + 8]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x108c], xmm0
movlpd qword [ebp - 0x1084], xmm0
movlpd qword [ebp - 0x107c], xmm0
movlpd qword [ebp - 0x1074], xmm0
movlpd qword [ebp - 0x106c], xmm0
movlpd qword [ebp - 0x105c], xmm0
mov dword [ebp - 0x1090], 0x44
movups xmmword [ebp - 0x10a0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4088f5
push dword [ebp - 0x103c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x10a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov dword [ebp - 0x101c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10a4], eax
movups xmmword [ebp - 0x1034], xmm0
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1020], 0xf
mov byte [ebp - 0x1034], al
push eax
lea eax, [ebp - 0x101c]
mov dword [ebp - 4], 2
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408816
xor ecx, ecx
nop
mov edi, dword [ebp - 0x101c]
test edi, edi
je 0x408810
mov edx, dword [ebp - 0x1020]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x4087ae
lea eax, [edi + ecx]
cmp edx, 0xf
mov dword [ebp - 0x1024], eax
lea esi, [ebp - 0x1034]
cmova esi, dword [ebp - 0x1034]
lea eax, [ebp - 0x1018]
add esi, ecx
push eax
push esi
call fcn.00427c30
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4087ce
lea eax, [ebp - 0x1018]
mov byte [ebp - 0x10ac], 0
push eax
push dword [ebp - 0x10ac]
lea ecx, [ebp - 0x1034]
push edi
call fcn.0040a2d0
push 0
lea eax, [ebp - 0x101c]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408804
mov ecx, dword [ebp - 0x1024]
mov dword [ebp - 0x10a4], ecx
jmp 0x408760
mov eax, dword [ebp - 0x1024]
mov dword [ebp - 0x10a4], eax
mov esi, dword [ebp - 0x10a8]
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1020]
lea eax, [ebp - 0x1034]
mov ecx, dword [ebp - 0x10a4]
lea edi, [ebp - 0x1034]
cmp edx, 0xf
cmova eax, dword [ebp - 0x1034]
cmova edi, dword [ebp - 0x1034]
add ecx, eax
mov dword [ebp - 0x10a4], ecx
cmp edi, ecx
je 0x4088c5
mov eax, ecx
nop dword [eax]
mov cl, byte [edi]
mov byte [ebp - 0x10ac], cl
cmp cl, 0xa
je 0x4088ba
cmp cl, 0xd
je 0x4088ba
test cl, cl
je 0x4088ba
mov edx, dword [esi + 0x10]
cmp edx, dword [esi + 0x14]
jae 0x408898
cmp dword [esi + 0x14], 0xf
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x40888e
mov eax, dword [esi]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x4088b4
push dword [ebp - 0x10ac]
mov byte [ebp - 0x10a8], 0
mov ecx, esi
push dword [ebp - 0x10a8]
push 1
call fcn.0040a520
mov eax, dword [ebp - 0x10a4]
inc edi
cmp edi, eax
jne 0x408860
mov edx, dword [ebp - 0x1020]
cmp edx, 0xf
jbe 0x4088f5
mov ecx, dword [ebp - 0x1034]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4088eb
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40892d
push edx
push ecx
call fcn.004264e6
add esp, 8
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x408621
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408617
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408617
call fcn.0042b25f
int3