Function at 0x4d2010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x444], 0
push 0x10
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.005bfd50
add esp, 0xc
mov dword [ebp - 0x4a4], 0
push 0x400
lea ecx, [ebp - 0x43e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x2c], eax
mov edx, 0x22
mov word [ebp - 0x440], dx
mov eax, 0x22
mov ecx, dword [ebp - 0x2c]
mov word [ebp + ecx*2 - 0x43e], ax
mov edx, 0x20
mov eax, dword [ebp - 0x2c]
mov word [ebp + eax*2 - 0x43c], dx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
lea eax, [ebp + edx*2 - 0x43a]
push eax
call fcn.005c24e5
add esp, 8
push 0x44
push 0
lea ecx, [ebp - 0x498]
push ecx
call fcn.005bfd50
add esp, 0xc
mov dword [ebp - 0x498], 0x44
mov dword [ebp - 8], 0x20
mov dword [ebp - 0x490], str.winsta0default
mov dword [ebp - 0x44c], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push edx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4d214f
cmp dword [0x69aaa4], 3
jg 0x4d2148
push str.OpenProcessToken_err
push 0x3d6
push 0x61310c
push 3
call fcn.00401310
add esp, 0x10
xor eax, eax
jmp 0x4d2360
lea eax, [ebp - 0x4a0]
push eax
push 1
push 0
push 0
push 0x2000000
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4d21a8
cmp dword [ebp - 0x18], 0
je 0x4d217f
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x69aaa4], 3
jg 0x4d21a1
push 0x61311c
push 0x3dd
push 0x613134
push 3
call fcn.00401310
add esp, 0x10
xor eax, eax
jmp 0x4d2360
push 4
lea eax, [ebp + 8]
push eax
push 0xc
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4d2210
cmp dword [ebp - 0x18], 0
je 0x4d21d1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4a0], 0
je 0x4d21e7
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x69aaa4], 3
jg 0x4d2209
push str.SetTokenInformation_err
push 0x3e5
push 0x61315c
push 3
call fcn.00401310
add esp, 0x10
xor eax, eax
jmp 0x4d2360
mov dword [ebp - 0xc], 1
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x1a
mov edx, dword [ebp - 0x4a0]
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 1
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x444]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4d2245
jmp 0x4d2251
mov edx, dword [ebp - 8]
or edx, 0x400
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4a8], 0
jmp 0x4d2273
mov eax, dword [ebp - 0x4a8]
add eax, 1
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 5
jge 0x4d230a
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x498]
push edx
push 0
mov eax, dword [ebp - 0x444]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x440]
push edx
push 0
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4d2303
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x4d22f1
mov dword [ebp + 8], 0
push 4
lea ecx, [ebp + 8]
push ecx
push 0xc
mov edx, dword [ebp - 0x4a0]
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4d22ec
jmp 0x4d230a
jmp 0x4d2264
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d2264
jmp 0x4d230a
cmp dword [ebp - 0x18], 0
je 0x4d231a
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4a0], 0
je 0x4d2330
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x4d2347
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x444], 0
je 0x4d235d
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret