Function at 0x4432be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor ebx, ebx
inc ebx
test eax, eax
jne 0x4432f2
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44330d
cmp dword [0x6c438c], ebx
jl 0x44330d
push str.Environment_created
push 0x6836fc
push ebx
call fcn.00538922
add esp, 0xc
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4434f0
push 0x60000
push esi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x4434b5
cmp dword [0x6c438c], ebx
jl 0x443355
push str.WindowStation_created
push 0x683744
push ebx
call fcn.00538922
add esp, 0xc
push edi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_SetProcessWindowStation]
call edi
test eax, eax
je 0x4434b4
push 0x60081
push esi
push esi
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
call edi
test eax, eax
je 0x4434b4
cmp dword [ebp - 8], esi
je 0x4434b4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004431ce
pop ecx
pop ecx
test eax, eax
je 0x4434b4
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004434f7
pop ecx
pop ecx
test eax, eax
je 0x4434b4
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004437a2
pop ecx
pop ecx
test eax, eax
je 0x4434b4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4434b4
cmp dword [0x6c438c], ebx
jl 0x443400
push str.CreateProcessAsUser
push 0x683788
push ebx
call fcn.00538922
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0057e5e0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x6c], edi
push 0x430
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x64], 0x6837a8
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], bx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x443470
cmp dword [0x6c438c], 3
jl 0x44348d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process_creation_failed____i
push 0x6837e8
push 3
call fcn.00538922
add esp, 0x10
jmp 0x44348d
cmp dword [0x6c438c], 3
jl 0x44348d
push str.Process_creation_successfully
push str.StartInteractiveClientProcess
push 3
call fcn.00538922
add esp, 0xc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], esi
je 0x4434a9
cmp dword [ebp - 0x28], 0xffffffff
je 0x4434a9
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x24], 0xffffffff
je 0x4434b4
push dword [ebp - 0x24]
call edi
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [ebp - 4], esi
je 0x4434d4
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 0x4434e2
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 8], esi
je 0x4434f0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret