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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156548
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x231], 0
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x278], 0xc
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 1
push 0
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100fca27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.fail_CreatePipe_0x_x
push 1
push 0x306
push 0x10177ed4
push 0x10177f20
call fcn.101426f0
add esp, 0x18
mov al, byte [ebp - 0x231]
mov byte [ebp - 0x233], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0x233]
jmp 0x100fcce6
mov dword [ebp - 0x2bc], 0
push 0x40
push 0
lea ecx, [ebp - 0x2b8]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x2bc], 0x44
mov dword [ebp - 0x290], 0x101
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x280], eax
xor ecx, ecx
mov word [ebp - 0x28c], cx
lea ecx, [ebp + 8]
call fcn.10001960
push eax
push str.cmd__c__s
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str.cmd____s_
push 1
push 0x312
push 0x10177f70
push 0x10177f5c
call fcn.10142a80
add esp, 0x18
mov dword [ebp - 0x258], 0
xor ecx, ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], ecx
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100fcb31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.fail_CreateProcess_0x_x
push 1
push 0x317
push 0x10178008
push 0x10177fc8
call fcn.10142a80
add esp, 0x18
jmp 0x100fcc83
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100fcb5d
push 0
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100fcc83
mov byte [ebp - 0x231], 1
mov dword [ebp - 0x25c], 0
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x100fcb96
jmp 0x100fcc83
mov ecx, dword [ebp - 0x248]
add ecx, 1
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x244]
push edx
call fcn.10141f46
add esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x244]
push ecx
push 0
mov edx, dword [ebp - 0x240]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x264], 0
push 0
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x240]
push ecx
push str.Out_String___s
push 1
push 0x32c
push 0x10178048
push str.OSExecute
call fcn.101426f0
add esp, 0x18
mov edx, dword [ebp - 0x240]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.100fc890
add esp, 8
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.10002230
lea ecx, [ebp - 0x230]
call fcn.10002d10
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x23c], 0xffffffff
je 0x100fcc99
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], 0xffffffff
je 0x100fccaf
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
je 0x100fccc5
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0x231]
mov byte [ebp - 0x232], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0x232]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret