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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4097
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8bc], ecx
mov eax, dword [ebp + 8]
push eax
push str.in_ExecuteCmdLine::cmdline_s_r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x848], 0x7530
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x844], 0xc
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 1
push 0
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x45d7c6
xor eax, eax
jmp 0x45dc36
push 0x44
push 0
lea edx, [ebp - 0x894]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x894], 0x44
lea ecx, [ebp - 0x894]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x854], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x868], 0x100
xor ecx, ecx
mov word [ebp - 0x864], cx
lea edx, [ebp - 0x838]
push edx
lea eax, [ebp - 0x894]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x45d8bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x89c], eax
push 0
push 0
lea edx, [ebp - 0x898]
push edx
push 0x400
mov eax, dword [ebp - 0x89c]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x898]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.::ExecuteCmdLineEx___failed_at_CreateProcess___nCommand___s_r_nMessage___s_r_n
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x898]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x45dc36
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x830]
push edx
push 0x6e314c
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 0x6e16a3
lea ecx, [ebp - 0x14]
call fcn.0040dbe0
mov dword [ebp - 4], 0
mov dword [ebp - 0x84c], 0
mov byte [ebp - 0x825], 0
mov byte [ebp - 0x824], 0
push 0x800
push 0
lea eax, [ebp - 0x823]
push eax
call fcn.006665c0
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
cmp eax, 0x102
sete dl
mov byte [ebp - 0x825], dl
push 0
lea eax, [ebp - 0x84c]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx edx, byte [ebp - 0x825]
test edx, edx
jne 0x45d986
cmp dword [ebp - 0x84c], 0
ja 0x45d986
mov dword [ebp - 0x8c0], 0
jmp 0x45d990
mov dword [ebp - 0x8c0], 1
cmp dword [ebp - 0x8c0], 0
je 0x45da87
push 0x6e16b9
lea ecx, [ebp - 0x8a0]
call fcn.0040dbe0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x84c], 0
jbe 0x45da73
mov eax, dword [ebp - 0x84c]
mov dword [ebp - 0x8a4], eax
cmp dword [ebp - 0x8a4], 0x800
jbe 0x45d9e0
mov dword [ebp - 0x8a4], 0x800
push 0
lea ecx, [ebp - 0x8a4]
push ecx
mov edx, dword [ebp - 0x8a4]
push edx
lea eax, [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x8a4]
mov byte [ebp + edx - 0x824], 0
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x8a0]
call fcn.0040e920
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e920
mov edx, dword [ebp - 0x84c]
sub edx, dword [ebp - 0x8a4]
mov dword [ebp - 0x84c], edx
push 0
lea ecx, [ebp - 0x8a0]
call fcn.004018a0
push eax
push 0x6e31ac
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
jmp 0x45d9b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a0]
call fcn.004014d0
jmp 0x45d92e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.Authorization_Code_Achieves_Success
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x45db11
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 0x8ac], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004014d0
mov eax, dword [ebp - 0x8ac]
jmp 0x45dc36
mov dword [ebp - 0x8a8], 0
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00401220
mov dword [ebp - 0x8a8], eax
lea ecx, [ebp - 0x14]
call fcn.004014f0
sub eax, dword [ebp - 0x8a8]
cmp eax, 3
jg 0x45db9b
mov ecx, dword [ebp - 0x8a8]
sub ecx, 1
push ecx
lea edx, [ebp - 0x8b0]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401270
mov dword [ebp - 0x8c4], eax
mov eax, dword [ebp - 0x8c4]
mov dword [ebp - 0x8c8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8c8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040fe20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b0]
call fcn.004014d0
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00401220
mov dword [ebp - 0x8a8], eax
lea ecx, [ebp - 0x14]
call fcn.004014f0
sub eax, dword [ebp - 0x8a8]
sub eax, 1
push eax
lea edx, [ebp - 0x8b4]
push edx
lea ecx, [ebp - 0x14]
call fcn.004137c0
mov dword [ebp - 0x8cc], eax
mov eax, dword [ebp - 0x8cc]
mov dword [ebp - 0x8d0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8d0]
push ecx
mov ecx, dword [ebp - 0x8bc]
add ecx, 0x118
call fcn.0040fe20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b4]
call fcn.004014d0
mov ecx, dword [ebp - 0x8bc]
add ecx, 0x118
call fcn.004014f0
test eax, eax
jle 0x45dc17
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x8b8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004014d0
mov eax, dword [ebp - 0x8b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 0xc