Function at 0x481e18
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.004048f8
lea eax, [ebp - 0x140]
mov edx, dword [0x481908]
call fcn.004050cc
lea eax, [ebp - 0x260]
mov edx, dword [0x481908]
call fcn.004050cc
xor eax, eax
push ebp
push 0x4824fc
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 [0x481908]
lea eax, [ebp - 0x140]
call fcn.0040519c
mov edx, 0x120
call fcn.004818b4
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.00481c98
test eax, eax
jne 0x481ef2
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
jmp 0x4824b2
push 0
push 0
push 0
lea ecx, [ebp - 0x2c0]
mov dl, 1
mov eax, dword [0x483cd4]
call fcn.00483fa8
mov dword [ebp - 0x24], eax
mov edx, dword [0x481908]
lea eax, [ebp - 0x260]
call fcn.0040519c
mov edx, 0x120
call fcn.004818b4
mov eax, ebx
xor al, 1
test al, al
je 0x481fb7
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.00481c98
test eax, eax
jne 0x481f99
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.004035cc
jmp 0x4824b2
push 0
push 0
push 0
lea ecx, [ebp - 0x2c0]
mov dl, 1
mov eax, dword [0x483cd4]
call fcn.00483fa8
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x2a4]
mov edx, 0x44
call fcn.004818b4
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 0x482009
mov dword [ebp - 0x264], eax
jmp 0x482015
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 4]
call fcn.00404958
lea eax, [ebp - 0x2b4]
mov edx, 0x10
call fcn.004818b4
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4823e7
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 + 0x543334]
push eax
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404908
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x482322
xor edx, edx
push ebp
push 0x4822e0
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 0x4820bb
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 0x4820c8
mov byte [edi], 0
jmp 0x4820cb
lea edi, [ebp - 0x15]
mov ecx, dword [ebp - 0x2b4]
mov dl, 1
mov eax, dword [0x483bcc]
call fcn.00483dbc
mov dword [ebp - 0x10], eax
push 2
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x481df0]
call fcn.00405bd0
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 0x482135
push 3
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x481df0]
call fcn.00405bd0
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x144]
mov dword [eax + 8], edx
cmp dword [ebp - 8], 0
je 0x482170
mov eax, dword [ebp - 8]
call fcn.00484048
mov eax, dword [ebp - 0x14]
call fcn.00405a14
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x481df0]
call fcn.00405bd0
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.004818b4
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.00481b78
mov eax, ebx
xor al, 1
test al, al
je 0x482248
lea eax, [ebp - 0x2e8]
mov edx, 0x14
call fcn.004818b4
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.00481b78
jmp 0x482248
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
call fcn.00405a1c
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.00483e7c
mov esi, eax
test esi, esi
je 0x48224d
cmp esi, 1
jne 0x48220f
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x140]
call fcn.00481bc4
jmp 0x482248
cmp esi, 2
jne 0x48222b
test bl, bl
jne 0x48222b
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x260]
call fcn.00481bc4
jmp 0x482248
cmp esi, 2
sete al
test al, bl
jne 0x48223e
cmp esi, 3
jne 0x482243
test bl, bl
jne 0x482243
mov byte [edi], 1
jmp 0x482248
call fcn.0040ee38
cmp byte [edi], 0
je 0x4821db
cmp byte [edi], 0
je 0x482263
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.00483e4c
cmp al, 3
jne 0x48228a
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 0x48228a
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 0x4822b8
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x140]
call fcn.00481c18
test bl, bl
jne 0x4822d6
cmp dword [ebp - 0x260], 0
je 0x4822d6
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x260]
call fcn.00481c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x482322
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4823f1
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x4823df
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x482355
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x482365
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x482375
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x482385
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x482395
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x10], 0
je 0x4823a5
mov eax, dword [ebp - 0x10]
call fcn.004035cc
jmp 0x4823b5
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x4823b5
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x24]
call fcn.004035cc
mov eax, dword [ebp - 0x144]
call fcn.004035cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4823e6
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 0x482503
lea eax, [ebp - 0x2f0]
mov edx, 2
call fcn.00404440
lea eax, [ebp - 0x260]
mov edx, dword [0x481908]
mov ecx, 2
call fcn.004051e8
lea eax, [ebp - 0x14]
mov edx, dword [0x481df0]
call fcn.00405bdc
lea eax, [ebp - 4]
call fcn.0040441c
ret