Function at 0x443724
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 0x443758
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x443773
cmp dword [0x6af38c], ebx
jl 0x443773
push str.Environment_created
push str.StartInteractiveClientProcess
push ebx
call fcn.00532962
add esp, 0xc
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x443954
push 0x60000
push esi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x443919
cmp dword [0x6af38c], ebx
jl 0x4437bb
push str.WindowStation_created
push str.StartInteractiveClientProcess
push ebx
call fcn.00532962
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x443919
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 0x443919
cmp dword [ebp - 8], esi
je 0x443919
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00443634
pop ecx
pop ecx
test eax, eax
je 0x443919
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0044395b
pop ecx
pop ecx
test eax, eax
je 0x443919
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00443c06
pop ecx
pop ecx
test eax, eax
je 0x443919
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x443919
cmp dword [0x6af38c], ebx
jl 0x443867
push str.CreateProcessAsUser
push str.StartInteractiveClientProcess
push ebx
call fcn.00532962
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.005783f0
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 0x4438d6
cmp dword [0x6af38c], 3
jl 0x4438f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process_creation_failed____i
push str.StartInteractiveClientProcess
push 3
call fcn.00532962
add esp, 0x10
jmp 0x4438f3
cmp dword [0x6af38c], 3
jl 0x4438f3
push str.Process_creation_successfully
push str.StartInteractiveClientProcess
push 3
call fcn.00532962
add esp, 0xc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x44390e
cmp dword [ebp - 0x24], 0xffffffff
je 0x44390e
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 0x20], 0xffffffff
je 0x443919
push dword [ebp - 0x20]
call ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [ebp - 4], esi
je 0x443938
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 0x443946
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 8], esi
je 0x443954
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret