Function at 0x100cff20
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 0x1011f868
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x10165034]
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 - 0x238], 0xffffffff
mov dword [ebp - 0x23c], 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 - 0x23c]
push ecx
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100cfff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.fail_CreatePipe_0x_x
push 1
push 0x2b7
push 0x1013d74c
push 0x1013d76c
call fcn.1010d8f0
add esp, 0x18
mov al, byte [ebp - 0x231]
mov byte [ebp - 0x233], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002300
mov al, byte [ebp - 0x233]
jmp 0x100d0291
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 - 0x23c]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x280], eax
xor ecx, ecx
mov word [ebp - 0x28c], cx
lea ecx, [ebp + 8]
call fcn.10001710
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 0x2c3
push 0x1013d7b8
push 0x1013d7a4
call fcn.1010dc80
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 0x100d0101
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.fail_CreateProcess_0x_x
push 1
push 0x2c8
push 0x1013d828
push str.OSExecute
call fcn.1010dc80
add esp, 0x18
jmp 0x100d022e
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 0x100d012d
push 0
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100d022e
mov byte [ebp - 0x231], 1
mov dword [ebp - 0x25c], 0
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x100d0166
jmp 0x100d022e
mov ecx, dword [ebp - 0x248]
add ecx, 1
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x244]
push edx
call fcn.1010d140
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 - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x240]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.100cfe60
add esp, 8
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.10001c40
lea ecx, [ebp - 0x230]
call fcn.10002300
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x238], 0xffffffff
je 0x100d0244
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], 0xffffffff
je 0x100d025a
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
je 0x100d0270
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x231]
mov byte [ebp - 0x232], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002300
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.101176fb
mov esp, ebp
pop ebp
ret