Function at 0x4d4990
Capabilities:
Acquire debug privileges
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x48c], ecx
mov byte [ebp - 0x438], 0
push 0x40f
push 0
lea eax, [ebp - 0x437]
push eax
call fcn.005bfd50
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x4d49f9
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4d49f9
mov eax, dword [ebp + 8]
push eax
push str.cmd.exe__c__s
push 0x410
lea ecx, [ebp - 0x438]
push ecx
call fcn.005c1e5d
add esp, 0x10
mov byte [ebp - 0x29], 0
jmp 0x4d4a0d
push str.cmd.exe
lea edx, [ebp - 0x438]
push edx
call fcn.005c0ae0
add esp, 8
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x48c]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x48c]
add ecx, 0x18
push ecx
mov ecx, dword [ebp - 0x48c]
call fcn.004d48b0
test eax, eax
jne 0x4d4a4c
xor eax, eax
jmp 0x4d4c24
push 0x44
push 0
lea edx, [ebp - 0x488]
push edx
call fcn.005bfd50
add esp, 0xc
mov dword [ebp - 0x488], 0x44
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x48c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x48c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 0x48c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x44c], eax
xor ecx, ecx
mov word [ebp - 0x458], cx
mov dword [ebp - 0x45c], 0x101
call fcn.004d2c60
mov dword [ebp - 8], eax
push str.SeDebugPrivilege
call fcn.004d2670
add esp, 4
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0x20
push 1
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4d4af5
jmp 0x4d4b01
mov ecx, dword [ebp - 4]
or ecx, 0x400
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x488]
push eax
push 0
mov ecx, dword [ebp - 0x43c]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
push 0
push 0
lea eax, [ebp - 0x438]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x4d4bdc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x43c], 0
je 0x4d4b5a
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [0x69aaa4], 3
jg 0x4d4b83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_err__d
push 0xfe
push 0x613d40
push 3
call fcn.00401310
add esp, 0x14
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x488]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x438]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4d4bda
cmp dword [0x69aaa4], 3
jg 0x4d4bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_process__err_d
push 0x101
push 0x613d74
push 3
call fcn.00401310
add esp, 0x14
xor eax, eax
jmp 0x4d4c24
jmp 0x4d4bfc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x43c], 0
je 0x4d4bfc
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x48c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x10], edx
push 0x10000
push 0
mov ecx, dword [ebp - 0x48c]
call fcn.004010c0
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret 4