Function at 0x4019e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0x430
mov dword [ebp - 0x80], 0
push 0x40
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x78], str.WinSta0Default
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x401a34
mov dword [ebp - 0x18], 1
jmp 0x401a3b
mov dword [ebp - 0x18], 0
mov dx, word [ebp - 0x18]
mov word [ebp - 0x50], dx
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x14]
push ecx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push str.OpenProcessToken_return_failed__errcode_d
call fcn.00401030
add esp, 8
jmp 0x401c9d
lea eax, [ebp - 8]
push eax
push 1
push 2
push 0
push 0x2000000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401ae0
cmp dword [ebp - 8], 0
jne 0x401aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push str.DuplicateTokenEx_return_failed__errcode_d
call fcn.00401030
add esp, 8
jmp 0x401c9d
lea eax, [ebp - 4]
push eax
call fcn.004018b0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b2a
mov ecx, dword [ebp - 4]
push ecx
push str.GetWinActiveSessionId_return__dwSessionID__0___errcode_d
call fcn.00401030
add esp, 8
jmp 0x401c9d
push 4
lea edx, [ebp - 0xc]
push edx
push 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x401b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.SetTokenInformation_dwSessionID_d__return_failed__errcode_d
call fcn.00401030
add esp, 0xc
jmp 0x401c9d
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401960
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x401b98
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.getWinSessionEnv_return_failed__dwSessionID_d__errcode_d
call fcn.00401030
add esp, 0xc
jmp 0x401c9d
mov ecx, dword [ebp + 0xc]
call fcn.00404880
movzx eax, al
test eax, eax
je 0x401bb0
mov dword [ebp - 0x1c], 0
jmp 0x401bbb
mov ecx, dword [ebp + 0xc]
call fcn.00404600
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x80]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00404600
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push str.CreateProcessAsUser_return_failed__errcode_d
call fcn.00401030
add esp, 8
jmp 0x401c9d
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00404600
push eax
push str.CreateProcessAsUser__s__return_success__pid_d
call fcn.00401030
add esp, 0xc
cmp dword [ebp + 0x14], 0
jbe 0x401c95
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401c61
mov dword [ebp - 4], 0x5b4
mov ecx, dword [ebp + 0xc]
call fcn.00404600
push eax
push str.WaitForSingleObject__s__return_WAIT_TIMEOUT
call fcn.00401030
add esp, 8
jmp 0x401c9d
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push str.GetExitCodeProcess_return_failed__errcode_d
call fcn.00401030
add esp, 8
jmp 0x401c9d
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
xor eax, eax
jne 0x401a7f
cmp dword [ebp - 4], 0
je 0x401cb5
call fcn.004055f0
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404550
cmp dword [ebp - 0x10], 0
je 0x401ccb
mov edx, dword [ebp - 0x10]
push edx
call sub.USERENV.dll_DestroyEnvironmentBlock
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x401ce2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
cmp dword [ebp - 0x14], 0
je 0x401cf9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x38], 0
je 0x401d10
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x3c], 0
je 0x401d27
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret