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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ae3a5
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x78], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push 0x758c30
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x51cbfa
xor eax, eax
jmp 0x51cfee
push 0x44
push 0
lea edx, [ebp - 0x74]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x74], 0x44
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x100
xor ecx, ecx
mov word [ebp - 0x44], cx
push 0x10abc64
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x51ccd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
push 0
push 0
lea ecx, [ebp - 0x484]
push ecx
push 0x400
mov edx, dword [ebp - 0x488]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x758c68
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x51cfee
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10abc6c]
push ecx
push 0x758c54
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x10], 0
push 0x7553be
lea ecx, [ebp - 0x18]
call fcn.0040dbe0
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x51ce9b
push 0
lea eax, [ebp - 0x480]
push eax
push 0x3ff
lea ecx, [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51cd62
jmp 0x51ce9b
mov eax, dword [ebp - 0x480]
mov byte [ebp + eax - 0x47c], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x51cd9d
lea edx, [ebp - 0x47c]
push edx
push 0x758cb8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x48c]
call fcn.0040dbe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004174c0
push 1
call fcn.00512690
add esp, 4
movsx edx, al
cmp edx, 0x31
je 0x51cdea
push 1
call fcn.00512690
add esp, 4
movsx eax, al
cmp eax, 0x37
jne 0x51ce87
mov dword [ebp - 0x490], 0
jmp 0x51ce05
mov ecx, dword [ebp - 0x490]
add ecx, 1
mov dword [ebp - 0x490], ecx
mov edx, dword [ebp - 0x490]
cmp edx, dword [ebp - 0x480]
jae 0x51ce39
mov eax, dword [ebp - 0x490]
movsx ecx, byte [ebp + eax - 0x47c]
cmp ecx, 0xa
jne 0x51ce2f
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 1
jle 0x51ce37
jmp 0x51ce39
jmp 0x51cdf6
cmp dword [ebp - 0x10], 2
jge 0x51ce87
push str.failed
lea eax, [ebp - 0x47c]
push eax
call fcn.00404520
add esp, 8
test eax, eax
jne 0x51ce6f
push str.Error
lea ecx, [ebp - 0x47c]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
je 0x51ce87
mov dword [ebp - 0x10], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48c]
call fcn.004014d0
jmp 0x51ce9b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48c]
call fcn.004014d0
jmp 0x51cd28
push 0x758ccc
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 0xffffffffffffffff
mov edx, dword [0x10abc64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x10abc64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [0x10abc64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10abc68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.error:
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51cf2e
push 0
push str.FAILED
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51cf2e
push 0
push str.errormsg
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
je 0x51cf5b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xfffffffe
mov dword [ebp - 0x494], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004014d0
mov eax, dword [ebp - 0x494]
jmp 0x51cfee
push 1
call fcn.00512690
add esp, 4
movsx edx, al
cmp edx, 0x31
je 0x51cf7f
push 1
call fcn.00512690
add esp, 4
movsx eax, al
cmp eax, 0x37
jne 0x51cfcf
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x51cfcf
cmp dword [ebp - 0x10], 1
jne 0x51cfcf
push str.cvload_2000.exe
mov edx, dword [ebp + 8]
push edx
call fcn.00404520
add esp, 8
test eax, eax
je 0x51cfcf
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push str.old_exitcode___d
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x498], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004014d0
mov eax, dword [ebp - 0x498]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x78]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret