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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca520
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x641490]
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.0058c740
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406610
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 0x45d3c0
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
mov eax, dword [ebp - 0xd4]
jmp 0x45d694
lea ecx, [ebp - 0x2c]
call fcn.00406720
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 0x45d3dd
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.00406720
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jg 0x45d461
mov dword [ebp - 0xcc], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
mov eax, dword [ebp - 0xcc]
jmp 0x45d694
lea ecx, [ebp - 0x44]
call fcn.0045e480
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xbc]
add ecx, 0xa
push ecx
lea ecx, [ebp - 0x44]
call fcn.0045e4f0
lea ecx, [ebp - 0x2c]
call fcn.00406720
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 0x45d49c
mov edx, dword [ebp - 0xb8]
sub edx, dword [ebp - 0xc0]
mov dword [ebp - 0xdc], edx
lea ecx, [ebp - 0x44]
call fcn.00406b40
push eax
push 0
lea ecx, [ebp - 0x44]
call fcn.0045e4d0
push eax
mov eax, dword [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406720
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jg 0x45d53c
mov dword [ebp - 0xe4], 0xfffffffd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0045e4b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
mov eax, dword [ebp - 0xe4]
jmp 0x45d694
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.0058c740
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.0045e4d0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45d5e2
mov dword [ebp - 0xc8], 0xfffffffc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0045e4b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
mov eax, dword [ebp - 0xc8]
jmp 0x45d694
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 0x45d641
mov dword [ebp - 0xd0], 0xfffffffb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0045e4b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
mov eax, dword [ebp - 0xd0]
jmp 0x45d694
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.0045e4b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066a0
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.00588376
mov esp, ebp
pop ebp
ret