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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4163
mov eax, dword fs:[0]
push eax
mov eax, 0xa8cc
call fcn.00666cc0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8d4], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0xa830], 0xffffffff
mov byte [ebp - 0xa01c], 0
push 0x9fff
push 0
lea eax, [ebp - 0xa01b]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa01c]
push edx
call fcn.00666ba0
add esp, 8
lea eax, [ebp - 0xa01c]
push eax
push 0x6e4f38
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0xa020], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xa850], 0xc
mov dword [ebp - 0xa84c], 0
mov dword [ebp - 0xa848], 1
push 0
lea ecx, [ebp - 0xa850]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x45e6a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov ecx, dword [ebp - 0xa830]
push ecx
push 0x6e4f54
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0xa8c4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004014d0
mov eax, dword [ebp - 0xa8c4]
jmp 0x45eb49
push 0x44
push 0
lea edx, [ebp - 0xa89c]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0xa89c], 0x44
lea ecx, [ebp - 0xa89c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xa85c], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa860], eax
mov dword [ebp - 0xa870], 0x100
xor ecx, ecx
mov word [ebp - 0xa86c], cx
lea edx, [ebp - 0xa844]
push edx
lea eax, [ebp - 0xa89c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0xa01c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xa8a0], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa8a0], 0
jne 0x45e7a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov eax, dword [ebp - 0xa830]
push eax
push 0x6e4f74
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8c8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004014d0
mov eax, dword [ebp - 0xa8c8]
jmp 0x45eb49
mov edx, dword [ebp - 0xa83c]
push edx
push 0x6e4f98
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 0xa82c], 0
push 0x800
push 0
lea eax, [ebp - 0xa82b]
push eax
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0xa854], 0
mov byte [ebp - 0xa831], 0
push 0x6e4fac
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 1
mov ecx, dword [ebp - 0xa844]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
cmp eax, 0x102
sete dl
mov byte [ebp - 0xa831], dl
push 0
lea eax, [ebp - 0xa854]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx edx, byte [ebp - 0xa831]
test edx, edx
jne 0x45e885
cmp dword [ebp - 0xa854], 0
ja 0x45e885
mov dword [ebp - 0xa8d8], 0
jmp 0x45e88f
mov dword [ebp - 0xa8d8], 1
cmp dword [ebp - 0xa8d8], 0
je 0x45ea0e
push 0x6e3203
lea ecx, [ebp - 0xa8bc]
call fcn.00404630
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa854], 0
jbe 0x45e968
mov eax, dword [ebp - 0xa854]
mov dword [ebp - 0xa8c0], eax
cmp dword [ebp - 0xa8c0], 0x800
jbe 0x45e8df
mov dword [ebp - 0xa8c0], 0x800
push 0
lea ecx, [ebp - 0xa8c0]
push ecx
mov edx, dword [ebp - 0xa8c0]
push edx
lea eax, [ebp - 0xa82c]
push eax
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xa8c0]
mov byte [ebp + edx - 0xa82c], 0
cmp dword [ebp - 0xa8c0], 0
jbe 0x45e93f
lea eax, [ebp - 0xa82c]
push eax
push 0x6e4fbc
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
lea ecx, [ebp - 0xa82c]
push ecx
lea ecx, [ebp - 0xa8bc]
call fcn.004138a0
mov edx, dword [ebp - 0xa854]
sub edx, dword [ebp - 0xa8c0]
mov dword [ebp - 0xa854], edx
jmp 0x45e8b0
push 0
push str.Flash_memory_erased
lea ecx, [ebp - 0xa8bc]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x45e9a3
mov eax, dword [ebp + 0xc]
push eax
push str._r_n_s40___r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
jmp 0x45e9e0
push 0
push str.Programming_Complete
lea ecx, [ebp - 0xa8bc]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x45e9e0
mov ecx, dword [ebp + 0xc]
push ecx
push str._r_n_s60___r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0xa8bc]
call fcn.00405300
movzx edx, al
test edx, edx
je 0x45e9fa
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8bc]
call fcn.00404770
jmp 0x45e82a
push 0x6e5004
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa844]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xa830]
push ecx
mov edx, dword [ebp - 0xa844]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0xa8a0], eax
cmp dword [ebp - 0xa8a0], 0
jne 0x45ea8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov eax, dword [ebp - 0xa830]
push eax
push 0x6e501c
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp - 0xa844]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xa840]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa830]
push ecx
push 0x6e504c
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
cmp dword [ebp - 0xa8a0], 0
je 0x45eb19
cmp dword [ebp - 0xa830], 0
jne 0x45eb19
movzx edx, byte [ebp - 0x11]
cmp edx, 1
jne 0x45eb19
mov dword [ebp - 0xa8cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004014d0
mov eax, dword [ebp - 0xa8cc]
jmp 0x45eb49
mov dword [ebp - 0xa8d0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004014d0
mov eax, dword [ebp - 0xa8d0]
jmp 0x45eb49
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 8