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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cca0
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x10096748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004dd30
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10005580
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x58], 0xc
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10041620
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005610
mov eax, dword [ebp - 0xd4]
jmp 0x100418f4
lea ecx, [ebp - 0x2c]
call fcn.10005690
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xb4]
mov cl, byte [eax]
mov byte [ebp - 0xad], cl
add dword [ebp - 0xb4], 1
cmp byte [ebp - 0xad], 0
jne 0x1004163d
mov edx, dword [ebp - 0xb4]
sub edx, dword [ebp - 0xd8]
mov dword [ebp - 0xc4], edx
push 0
push 0
mov eax, dword [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10005690
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jg 0x100416c1
mov dword [ebp - 0xcc], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005610
mov eax, dword [ebp - 0xcc]
jmp 0x100418f4
lea ecx, [ebp - 0x44]
call fcn.10042ad0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xbc]
add ecx, 0xa
push ecx
lea ecx, [ebp - 0x44]
call fcn.10042b40
lea ecx, [ebp - 0x2c]
call fcn.10005690
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
add edx, 1
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xb8]
mov cl, byte [eax]
mov byte [ebp - 0xae], cl
add dword [ebp - 0xb8], 1
cmp byte [ebp - 0xae], 0
jne 0x100416fc
mov edx, dword [ebp - 0xb8]
sub edx, dword [ebp - 0xc0]
mov dword [ebp - 0xdc], edx
lea ecx, [ebp - 0x44]
call fcn.10005ab0
push eax
push 0
lea ecx, [ebp - 0x44]
call fcn.10042b20
push eax
mov eax, dword [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10005690
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jg 0x1004179c
mov dword [ebp - 0xe4], 0xfffffffd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10042b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005610
mov eax, dword [ebp - 0xe4]
jmp 0x100418f4
mov dword [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0xac], 0
push 0x40
push 0
lea edx, [ebp - 0xa8]
push edx
call fcn.1004dd30
add esp, 0xc
mov dword [ebp - 0x80], 0x101
xor eax, eax
mov word [ebp - 0x7c], ax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.10042b20
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10041842
mov dword [ebp - 0xc8], 0xfffffffc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10042b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005610
mov eax, dword [ebp - 0xc8]
jmp 0x100418f4
push 0xfa0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100418a1
mov dword [ebp - 0xd0], 0xfffffffb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10042b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005610
mov eax, dword [ebp - 0xd0]
jmp 0x100418f4
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10042b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005610
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004910b
mov esp, ebp
pop ebp
ret