Function at 0x4571ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor ebx, ebx
inc ebx
test eax, eax
jne 0x457220
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45723b
cmp dword [0x6c438c], ebx
jl 0x45723b
push str.Environment_created
push str.StartInteractiveClientProcess
push ebx
call fcn.00540a02
add esp, 0xc
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x45741c
push 0x60000
push esi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x4573e1
cmp dword [0x6c438c], ebx
jl 0x457283
push str.WindowStation_created
push str.StartInteractiveClientProcess
push ebx
call fcn.00540a02
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x4573e1
push 0x60081
push esi
push esi
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x4573e1
cmp dword [ebp - 8], esi
je 0x4573e1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004570fc
pop ecx
pop ecx
test eax, eax
je 0x4573e1
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00457423
pop ecx
pop ecx
test eax, eax
je 0x4573e1
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004576ce
pop ecx
pop ecx
test eax, eax
je 0x4573e1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4573e1
cmp dword [0x6c438c], ebx
jl 0x45732f
push str.CreateProcessAsUser
push str.StartInteractiveClientProcess
push ebx
call fcn.00540a02
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x68], edi
push 0x430
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x60], str.winsta0default
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x38], bx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp edi, esi
jne 0x45739e
cmp dword [0x6c438c], 3
jl 0x4573bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process_creation_failed____i
push str.StartInteractiveClientProcess
push 3
call fcn.00540a02
add esp, 0x10
jmp 0x4573bb
cmp dword [0x6c438c], 3
jl 0x4573bb
push str.Process_creation_successfully
push str.StartInteractiveClientProcess
push 3
call fcn.00540a02
add esp, 0xc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x4573d6
cmp dword [ebp - 0x24], 0xffffffff
je 0x4573d6
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 0x20], 0xffffffff
je 0x4573e1
push dword [ebp - 0x20]
call ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [ebp - 4], esi
je 0x457400
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], esi
je 0x45740e
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 8], esi
je 0x45741c
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret