Function at 0x53dd8c
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa5c
push ebx
xor ebx, ebx
mov dword [ebp - 0x5a4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a28
mov eax, dword [ebp - 8]
call fcn.00406a28
xor eax, eax
push ebp
push 0x53e049
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x1388
call fcn.004041d0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x5a0], 0x114
lea eax, [ebp - 0x5a0]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x590], 2
jne 0x53de27
mov dword [ebp - 0x88], 0xc
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0xffffffff
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
jmp 0x53de38
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x53dfd3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.004047ac
mov dword [ebp - 0x6c], 0x44
test bl, bl
je 0x53de68
mov word [ebp - 0x3c], 5
jmp 0x53de6e
mov word [ebp - 0x3c], 0
mov dword [ebp - 0x40], 1
or dword [ebp - 0x40], 0x100
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
call fcn.00406acc
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x48a]
mov edx, dword [ebp - 4]
call fcn.00413a88
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x48a]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x53dfb3
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
call fcn.004060e8
cmp dword [ebp - 0x20], 0
jne 0x53df94
push 0x1f4
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0x24], eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x53df7a
cmp dword [ebp - 0x1c], 0
jbe 0x53df7a
xor eax, eax
push ebp
push 0x53df73
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x1000
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx], 0
lea eax, [ebp - 0x5a4]
mov edx, dword [ebp - 0x28]
mov ecx, 0
call fcn.00406380
mov edx, dword [ebp - 0x5a4]
lea eax, [ebp - 0xc]
call fcn.00406474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53df7a
ret
cmp dword [ebp - 0x24], 0x102
je 0x53df8a
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
je 0x53dee2
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53dfda
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret