Function at 0x4044f0
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
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 0x424965
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x12c8
call fcn.0040cc70
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1294], edx
mov esi, ecx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
push 0xb0
mov dword [ebp - 0x12a0], eax
lea eax, [ebp - 0x1118]
push 0
push eax
mov dword [ebp - 0x1298], edi
mov dword [ebp - 0x129c], 0
call fcn.0040d8b0
add esp, 8
lea ecx, [ebp - 0x1118]
call fcn.004085e0
mov edx, 0x42cb5c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1108]
call fcn.00409620
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x40459b
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.0040ac00
add esp, 4
mov edx, str.__x__
mov ecx, eax
call fcn.00409620
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
jbe 0x4045bf
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0040ac00
add esp, 4
mov edx, str.___o_
mov ecx, eax
call fcn.00409620
mov ecx, eax
mov eax, dword [ebp - 0x1294]
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x4045eb
mov eax, dword [eax]
push edx
mov edx, eax
call fcn.0040ac00
add esp, 4
mov edx, 0x42cb64
mov ecx, eax
call fcn.00409620
mov byte [ebp - 4], 1
xor eax, eax
mov edx, dword [ebp - 0x10c4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1064], xmm0
mov word [ebp - 0x1064], ax
mov dword [ebp - 0x12a8], eax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x129c], 8
movq qword [ebp - 0x12b0], xmm0
cmp al, 2
je 0x40467e
mov eax, dword [ebp - 0x10e0]
mov ecx, dword [eax]
test ecx, ecx
je 0x40467e
mov eax, dword [ebp - 0x10f0]
cmp ecx, dword [ebp - 0x10c8]
cmovb ecx, dword [ebp - 0x10c8]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
mov eax, ecx
mov esi, ecx
jmp 0x4046be
xor eax, eax
xor esi, esi
test dl, 4
jne 0x4046b2
mov eax, dword [ebp - 0x10e4]
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x4046b2
mov eax, dword [ebp - 0x10f4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10d4]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
mov eax, ecx
mov esi, ecx
jmp 0x4046be
mov ecx, dword [ebp - 0x12ac]
mov edx, dword [ebp - 0x12b0]
test edx, edx
je 0x404706
cmp eax, 7
ja 0x4046ec
add esi, esi
mov dword [ebp - 0x1054], ecx
push esi
push edx
lea eax, [ebp - 0x1064]
push eax
call fcn.0040d320
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x1064], ax
jmp 0x404706
push edx
mov byte [ebp - 0x1294], 0
push dword [ebp - 0x1294]
push ecx
lea ecx, [ebp - 0x1064]
call fcn.0040a330
mov dword [ebp - 4], 0
mov dword [ebp - 0x129c], 4
lea eax, [ebp - 0x1064]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1048]
call fcn.004089d0
mov byte [ebp - 4], 3
mov esi, edi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x12a4], eax
mov dword [ebp - 0x1294], edi
jbe 0x404750
mov esi, dword [edi]
mov dword [ebp - 0x1294], esi
test eax, eax
je 0x404836
push pe_nt_image_headers32
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.0040d8b0
add esp, 0xc
mov ecx, 0x42cb88
mov edx, pe_nt_image_headers32
movzx eax, word [ecx]
cmp ax, dx
jae 0x4047d1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x1218], 1
cmp ecx, 0x42cb8c
jne 0x404778
mov eax, dword [edi + 0x10]
mov ecx, 0xffffffff
dec eax
cmp eax, 0xffffffff
cmovb ecx, eax
lea edx, [esi + ecx*2]
mov ecx, pe_nt_image_headers32
nop dword [eax]
movzx eax, word [edx]
cmp ax, cx
jae 0x4047c2
cmp byte [ebp + eax - 0x1218], 0
jne 0x4047cb
cmp edx, esi
je 0x404836
sub edx, 2
jmp 0x4047b0
sub edx, esi
sar edx, 1
jmp 0x404839
mov eax, dword [ebp - 0x12a4]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
lea edx, [esi + ecx*2]
movzx edi, word [edx]
mov eax, 0x5c
mov ecx, 0x42cb88
lea esi, [eax - 0x5a]
cmp ax, di
je 0x404826
cmp esi, 1
je 0x40480e
movzx eax, word [ecx + 2]
add ecx, 2
dec esi
cmp ax, di
jne 0x4047f8
test ecx, ecx
jne 0x404826
cmp edx, dword [ebp - 0x1294]
je 0x40481b
sub edx, 2
jmp 0x4047e3
mov edi, dword [ebp - 0x1298]
or edx, 0xffffffff
jmp 0x404839
sub edx, dword [ebp - 0x1294]
mov edi, dword [ebp - 0x1298]
sar edx, 1
jmp 0x404839
or edx, 0xffffffff
xorps xmm0, xmm0
cmp edx, 0xffffffff
je 0x404885
cmp dword [edi + 0x10], edx
movups xmmword [ebp - 0x12d4], xmm0
cmovb edx, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x12c4], 0
mov dword [ebp - 0x12c0], 0
jbe 0x40486b
mov edi, dword [edi]
push edx
push edi
lea ecx, [ebp - 0x12d4]
call fcn.00409fe0
lea eax, [ebp - 0x12d4]
mov ecx, 0x15
jmp 0x4048bd
push 0
push 0x42cb90
lea ecx, [ebp - 0x12bc]
mov dword [ebp - 0x12ac], 0
movups xmmword [ebp - 0x12bc], xmm0
mov dword [ebp - 0x12a8], 0
call fcn.00409fe0
lea eax, [ebp - 0x12bc]
mov ecx, 6
movups xmm0, xmmword [eax]
xor edx, edx
movups xmmword [ebp - 0x1030], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1020], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 5
test cl, 2
je 0x404942
mov eax, dword [ebp - 0x12a8]
and ecx, 0xfffffffd
mov dword [ebp - 0x1298], ecx
cmp eax, 7
jbe 0x404942
mov edx, dword [ebp - 0x12bc]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404932
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
mov ecx, dword [ebp - 0x1298]
add esp, 8
mov byte [ebp - 4], 6
test cl, 1
je 0x40498b
mov ecx, dword [ebp - 0x12c0]
cmp ecx, 7
jbe 0x40498b
mov edx, dword [ebp - 0x12d4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404981
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x1244]
push 0
push eax
lea eax, [ebp - 0x1224]
mov dword [ebp - 0x121c], 0
push eax
lea eax, [ebp - 0x121c]
mov dword [ebp - 0x1224], 0
push eax
mov dword [ebp - 0x1220], 0
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x1244], 0xc
mov dword [ebp - 0x123c], 1
mov dword [ebp - 0x1240], 0
call edi
test eax, eax
je 0x404db3
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x121c]
call esi
test eax, eax
jne 0x404a29
push dword [ebp - 0x121c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1224]
call esi
jmp 0x404db3
push 0
lea eax, [ebp - 0x1244]
push eax
lea eax, [ebp - 0x1228]
push eax
lea eax, [ebp - 0x1220]
push eax
call edi
test eax, eax
je 0x404a0e
push 0
push 1
push dword [ebp - 0x1220]
call esi
test eax, eax
jne 0x404a81
push dword [ebp - 0x121c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1224]
call esi
push dword [ebp - 0x1220]
call esi
push dword [ebp - 0x1228]
call esi
jmp 0x404db3
mov eax, dword [ebp - 0x1224]
lea edx, [ebp - 0x1238]
xorps xmm0, xmm0
mov dword [ebp - 0x1254], eax
mov eax, dword [ebp - 0x1228]
lea ecx, [ebp - 0x1048]
push edx
movlpd qword [ebp - 0x1264], xmm0
lea edx, [ebp - 0x1290]
or dword [ebp - 0x1264], 0x100
cmp dword [ebp - 0x101c], 7
push edx
mov dword [ebp - 0x1250], eax
lea eax, [ebp - 0x1030]
cmova eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x1034], 7
push eax
cmova ecx, dword [ebp - 0x1048]
push 0
push 0x8000000
push 1
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x128c], xmm0
movlpd qword [ebp - 0x1284], xmm0
movlpd qword [ebp - 0x127c], xmm0
movlpd qword [ebp - 0x1274], xmm0
movlpd qword [ebp - 0x126c], xmm0
movlpd qword [ebp - 0x125c], xmm0
mov dword [ebp - 0x1290], 0x44
movups xmmword [ebp - 0x1238], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x1224]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
push dword [ebp - 0x1228]
call edi
test esi, esi
jne 0x404b6d
push dword [ebp - 0x121c]
call edi
push dword [ebp - 0x1220]
call edi
jmp 0x404db3
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x104c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x121c]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x404c57
nop
mov eax, dword [ebp - 0x104c]
test eax, eax
je 0x404c57
cmp eax, 0x1000
jae 0x404fd8
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp + eax - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x404c2c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c042
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1018]
push edi
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
mov ecx, dword [ebp - 0x12a0]
push esi
call fcn.00409020
push esi
call fcn.0040be02
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x104c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x121c]
call edi
test eax, eax
jne 0x404ba0
push 0
lea eax, [ebp - 0x104c]
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1220]
call edi
test eax, eax
je 0x404d35
nop dword [eax]
mov eax, dword [ebp - 0x104c]
test eax, eax
je 0x404d35
cmp eax, 0x1000
jae 0x404fd8
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp + eax - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x404d0c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c042
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1018]
push edi
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
mov ecx, dword [ebp - 0x12a0]
push esi
call fcn.00409020
push esi
call fcn.0040be02
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
push 0
lea eax, [ebp - 0x104c]
push eax
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1220]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c80
push 0xffffffffffffffff
push dword [ebp - 0x1238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x1068], 0
push eax
push dword [ebp - 0x1238]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1238]
test eax, eax
jne 0x404d8c
call esi
push dword [ebp - 0x1234]
call esi
push dword [ebp - 0x121c]
call esi
push dword [ebp - 0x1220]
call esi
jmp 0x404db3
call esi
push dword [ebp - 0x1234]
call esi
push dword [ebp - 0x121c]
call esi
push dword [ebp - 0x1220]
call esi
cmp dword [ebp - 0x1068], 0
je 0x404eb7
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x404df3
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404de9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
mov ecx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp ecx, 7
jbe 0x404e4c
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404e42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
mov ecx, dword [ebp - 0x1050]
xor eax, eax
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
cmp ecx, 7
jbe 0x404ea5
mov edx, dword [ebp - 0x1064]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404e9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
lea ecx, [ebp - 0x1118]
call fcn.00404ff0
xor al, al
jmp 0x404fba
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x404ef7
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404eed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
mov ecx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp ecx, 7
jbe 0x404f54
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404f4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
mov ecx, dword [ebp - 0x1050]
xor eax, eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
cmp ecx, 7
jbe 0x404fad
mov edx, dword [ebp - 0x1064]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404fa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fdd
push ecx
push edx
call fcn.0040c034
add esp, 8
lea ecx, [ebp - 0x1118]
call fcn.00404ff0
mov al, 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.0040bdf4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040bf29
call fcn.004127c5
int3