Function at 0x485bec
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
call fcn.00404954
lea eax, [ebp - 0x140]
mov edx, dword [0x4856dc]
call fcn.00405140
lea eax, [ebp - 0x260]
mov edx, dword [0x4856dc]
call fcn.00405140
xor eax, eax
push ebp
push 0x4862d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x2c0], 0xc
xor eax, eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b8], 0xffffffff
mov edx, dword [0x4856dc]
lea eax, [ebp - 0x140]
call fcn.00405210
mov edx, 0x120
call fcn.00485688
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2c], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 0x28], al
push 0
lea ecx, [ebp - 0x2c0]
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x140]
call fcn.00485a6c
test eax, eax
jne 0x485cc6
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
jmp 0x486286
push 0
push 0
push 0
lea ecx, [ebp - 0x2c0]
mov dl, 1
mov eax, dword [0x487af0]
call fcn.00487e34
mov dword [ebp - 0x24], eax
mov edx, dword [0x4856dc]
lea eax, [ebp - 0x260]
call fcn.00405210
mov edx, 0x120
call fcn.00485688
mov eax, ebx
xor al, 1
test al, al
je 0x485d8b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x148], al
push 0
lea ecx, [ebp - 0x2c0]
lea edx, [ebp - 0x25c]
lea eax, [ebp - 0x260]
call fcn.00485a6c
test eax, eax
jne 0x485d6d
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x13c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x140]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x24]
call fcn.00403644
jmp 0x486286
push 0
push 0
push 0
lea ecx, [ebp - 0x2c0]
mov dl, 1
mov eax, dword [0x487af0]
call fcn.00487e34
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x2a4]
mov edx, 0x44
call fcn.00485688
mov dword [ebp - 0x2a4], 0x44
mov dword [ebp - 0x278], 0x101
mov word [ebp - 0x274], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x268], eax
test bl, bl
je 0x485ddd
mov dword [ebp - 0x264], eax
jmp 0x485de9
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 4]
call fcn.004049b4
lea eax, [ebp - 0x2b4]
mov edx, 0x10
call fcn.00485688
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4861bb
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0
push 0
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x561440]
push eax
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404964
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4860f6
xor edx, edx
push ebp
push 0x4860b4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x13c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebp - 0x13c], eax
mov eax, ebx
xor al, 1
test al, al
je 0x485e8f
mov eax, dword [ebp - 0x25c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x15], 0
test edi, edi
je 0x485e9c
mov byte [edi], 0
jmp 0x485e9f
lea edi, [ebp - 0x15]
mov ecx, dword [ebp - 0x2b4]
mov dl, 1
mov eax, dword [0x4879e8]
call fcn.00487c48
mov dword [ebp - 0x10], eax
push 2
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x485bc4]
call fcn.00405c44
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov eax, ebx
xor al, 1
test al, al
je 0x485f09
push 3
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x485bc4]
call fcn.00405c44
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x144]
mov dword [eax + 8], edx
cmp dword [ebp - 8], 0
je 0x485f44
mov eax, dword [ebp - 8]
call fcn.00487ed4
mov eax, dword [ebp - 0x14]
call fcn.00405a88
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x485bc4]
call fcn.00405c44
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [eax + esi*4], edx
lea eax, [ebp - 0x2d4]
mov edx, 0x14
call fcn.00485688
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c4], eax
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x140]
call fcn.0048594c
mov eax, ebx
xor al, 1
test al, al
je 0x48601c
lea eax, [ebp - 0x2e8]
mov edx, 0x14
call fcn.00485688
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2d8], eax
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x260]
call fcn.0048594c
jmp 0x48601c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
call fcn.00405a90
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.00487d08
mov esi, eax
test esi, esi
je 0x486021
cmp esi, 1
jne 0x485fe3
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x140]
call fcn.00485998
jmp 0x48601c
cmp esi, 2
jne 0x485fff
test bl, bl
jne 0x485fff
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x260]
call fcn.00485998
jmp 0x48601c
cmp esi, 2
sete al
test al, bl
jne 0x486012
cmp esi, 3
jne 0x486017
test bl, bl
jne 0x486017
mov byte [edi], 1
jmp 0x48601c
call fcn.0040ee2c
cmp byte [edi], 0
je 0x485faf
cmp byte [edi], 0
je 0x486037
push 0x4c7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x10]
call fcn.00487cd8
cmp al, 3
jne 0x48605e
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x48605e
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x2b0]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x140], 0
je 0x48608c
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x140]
call fcn.004859ec
test bl, bl
jne 0x4860aa
cmp dword [ebp - 0x260], 0
je 0x4860aa
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x260]
call fcn.004859ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4860f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4861c5
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x4861b3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x486129
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x486139
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x486149
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x486159
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x486169
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x10], 0
je 0x486179
mov eax, dword [ebp - 0x10]
call fcn.00403644
jmp 0x486189
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x486189
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x24]
call fcn.00403644
mov eax, dword [ebp - 0x144]
call fcn.00403644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4861ba
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4862d7
lea eax, [ebp - 0x2f0]
mov edx, 2
call fcn.004044b8
lea eax, [ebp - 0x260]
mov edx, dword [0x4856dc]
mov ecx, 2
call fcn.0040525c
lea eax, [ebp - 0x14]
mov edx, dword [0x485bc4]
call fcn.00405c50
lea eax, [ebp - 4]
call fcn.00404494
ret