Function at 0x61afcc
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create reverse shell
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x61afd5
mov eax, dword [ebp - 4]
add esp, 0xffffff78
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1008c], ebx
mov dword [ebp - 0x10088], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b418
mov eax, dword [ebp - 8]
call fcn.0040b418
mov eax, dword [ebp - 0xc]
call fcn.0040b418
mov eax, dword [ebp + 8]
call fcn.004105cc
xor eax, eax
push ebp
push 0x61b307
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x61af10]
call fcn.00409618
mov edi, eax
lea eax, [ebp - 0x10]
mov edx, edi
test edx, edx
je 0x61b050
sub edx, 0xfffffff8
call fcn.00410570
mov byte [ebp - 0x11], 0
push 0
push 0x68e95c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
push 0
push 0x68e95c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_CreatePipe
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetHandleInformation
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.00408458
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 0x101
mov word [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x84]
xor ecx, ecx
mov edx, 0x10
call fcn.00408458
cmp dword [ebp - 0xc], 0
je 0x61b0ec
mov ebx, dword [ebp - 0xc]
jmp 0x61b0fd
lea eax, [ebp - 0x10088]
call fcn.0042778c
mov ebx, dword [ebp - 0x10088]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0x61b328
push dword [ebp - 4]
push 0x61b338
push dword [ebp - 8]
lea eax, [ebp - 0x1008c]
mov edx, 4
call fcn.0040c2b8
mov eax, dword [ebp - 0x1008c]
call fcn.0040bfcc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x61b2a5
lea eax, [ebp - 0x80]
call fcn.0061a53c
lea eax, [ebp - 0x18]
call fcn.0061a53c
lea eax, [ebp - 0x24]
call fcn.0061a53c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2d]
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4bc05c]
call fcn.004bc6bc
mov dword [ebp - 0x2c], eax
mov edx, edi
test edx, edx
je 0x61b18b
sub edx, 0xfffffff4
mov eax, dword [ebp - 0x2c]
call fcn.004bc830
mov eax, dword [ebp - 0x2c]
call fcn.004bcc9c
xor eax, eax
push ebp
push 0x61b227
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10084]
mov ecx, 0x10000
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x61b1e9
lea edx, [ebp - 0x10084]
mov ecx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.0061a4c8
lea edx, [ebp - 0x10084]
mov ecx, 0x10000
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jg 0x61b1c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61b22e
lea eax, [ebp - 0x1c]
call fcn.0061a53c
mov eax, dword [ebp - 0x2c]
call fcn.004bccb8
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x30], 2
je 0x61b21c
mov eax, dword [ebp - 0x2c]
call fcn.00409648
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
call fcn.0061a53c
pop eax
jmp eax
lea eax, [ebp - 0x18]
call fcn.0061a53c
lea eax, [ebp - 0x1c]
call fcn.0061a53c
lea eax, [ebp - 0x20]
call fcn.0061a53c
lea eax, [ebp - 0x24]
call fcn.0061a53c
call fcn.0042fc88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61b30e
lea eax, [ebp - 0x1008c]
mov edx, 2
call fcn.0040b384
lea eax, [ebp - 0x10]
call fcn.00410558
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b384
lea eax, [ebp + 8]
call fcn.00410558
pop eax
jmp eax