Function at 0x45d460
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652be5
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.005bdf80
mov eax, dword [0x6fc0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x1041], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x106c], 0
xor eax, eax
mov dword [ebp - 0x1068], eax
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x10b8], 0
push 0x40
push 0
lea ecx, [ebp - 0x10b4]
push ecx
call fcn.005d6120
add esp, 0xc
mov dword [ebp - 0x1060], 0
xor edx, edx
mov dword [ebp - 0x105c], edx
mov dword [ebp - 0x1058], edx
mov dword [ebp - 0x1054], edx
mov dword [ebp - 0x1070], 0
mov byte [ebp - 0x810], 0
push 0x7ff
push 0
lea eax, [ebp - 0x80f]
push eax
call fcn.005d6120
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0044d720
movzx ecx, al
test ecx, ecx
je 0x45d538
jmp 0x45d6f1
mov dword [ebp - 0x106c], 0xc
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 1
push 0
lea edx, [ebp - 0x106c]
push edx
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x104c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x45d57c
jmp 0x45d6f1
mov dword [ebp - 0x10b8], 0x44
lea edx, [ebp - 0x10b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x1048]
mov dword [ebp - 0x1078], eax
mov ecx, dword [ebp - 0x1048]
mov dword [ebp - 0x107c], ecx
xor edx, edx
mov word [ebp - 0x1088], dx
mov dword [ebp - 0x108c], 0x101
mov ecx, dword [ebp + 8]
call fcn.0043d1b0
push eax
push str.cmd.exe__C__s
push 0x400
lea eax, [ebp - 0x1010]
push eax
call fcn.00469500
add esp, 0x10
lea ecx, [ebp - 0x1060]
push ecx
lea edx, [ebp - 0x10b8]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x1010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45d612
jmp 0x45d6f1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1060]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45d62c
jmp 0x45d6f1
push 0
lea eax, [ebp - 0x1070]
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 0x104c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d657
jmp 0x45d6f1
mov eax, 1
imul ecx, eax, 0x7ff
mov dword [ebp - 0x1050], ecx
cmp dword [ebp - 0x1050], 0x800
jae 0x45d676
jmp 0x45d67b
call fcn.005bd4b3
mov edx, dword [ebp - 0x1050]
mov byte [ebp + edx - 0x810], 0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1028]
call fcn.004045f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x1040]
push edx
call fcn.00442440
add esp, 8
mov dword [ebp - 0x1074], eax
mov eax, dword [ebp - 0x1074]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00447770
lea ecx, [ebp - 0x1040]
call fcn.0043c550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1028]
call fcn.004048b0
mov byte [ebp - 0x1041], 1
cmp dword [ebp - 0x1048], 0
je 0x45d707
mov ecx, dword [ebp - 0x1048]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x104c], 0
je 0x45d71d
mov edx, dword [ebp - 0x104c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x105c], 0
je 0x45d733
mov eax, dword [ebp - 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1060], 0
je 0x45d749
mov ecx, dword [ebp - 0x1060]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x1041]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bcdb6
mov esp, ebp
pop ebp
ret