Function at 0x4bde50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Resume thread

Disassembly:
sub esp, 0x70
mov eax, dword [esp + 0x94]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x4bde6a
mov dword [eax], ebp
cmp byte [esp + 0x98], 0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4bdee4
call fcn.004b7a00
test al, al
jne 0x4bdee4
push ebp
call fcn.004bdbd0
add esp, 4
test al, al
jne 0x4bdeb1
mov eax, dword [esp + 0x94]
cmp eax, ebp
jne 0x4bdea7
mov dword [eax], 0xfffffffe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x90]
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004b3dc0
mov ebp, dword [esp + 0x1c]
add esp, 8
movzx esi, al
jmp 0x4be087
push 0x44
lea edx, [esp + 0x40]
push ebp
push edx
call fcn.00519500
add esp, 0xc
cmp byte [esp + 0x8c], 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
je 0x4bdf17
xor eax, eax
mov word [esp + 0x6c], ax
jmp 0x4bdf21
mov ecx, 5
mov word [esp + 0x6c], cx
mov eax, dword [esp + 0xb4]
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor bl, bl
cmp eax, ebp
je 0x4bdf53
push 1
push 1
push eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x74], 0x101
call esi
mov bl, 1
mov eax, dword [esp + 0xb8]
cmp eax, ebp
je 0x4bdf76
or dword [esp + 0x68], 0x100
push 1
push 1
push eax
mov dword [esp + 0x80], eax
call esi
mov bl, 1
xor eax, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, dword [esp + 0xa0]
cmp eax, 0x80000000
sbb esi, esi
and esi, 0xff0
add esi, 0x10
or esi, dword [esp + 0xa8]
test edi, edi
je 0x4bdfb3
or esi, 4
mov edx, dword [esp + 0x84]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x34]
call fcn.0049eff0
mov eax, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x40]
push edx
push ecx
push 0
push esi
movzx edx, bl
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x2c], vtable.cWCS.0
call fcn.0049ee80
test esi, esi
je 0x4be0d1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebp
test edi, edi
je 0x4be050
push edi
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test esi, esi
je 0x4be0dd
test byte [esp + 0xa8], 4
jne 0x4be050
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0x1c]
test eax, eax
je 0x4be065
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4be076
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4be087
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov edi, dword [esp + 0x94]
test edi, edi
jne 0x4be096
lea edi, [esp + 0x10]
test esi, esi
je 0x4be115
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4be11e
cmp eax, 2
jne 0x4be0f3
mov edx, dword [esp + 0x18]
push edx
push ebp
call fcn.004b3f90
add esp, 8
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x4be087
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x20]
push eax
call edi
jmp 0x4be087
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x70
ret
mov eax, dword [esp + 0x10]
or ebp, 0xffffffff
mov dword [edi], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x70
ret