Function at 0x448329
Capabilities:
Create process on windows
Impersonate user

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
xor esi, esi
push 0x20
lea eax, [esp + 0x44]
push esi
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], esi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.00414700
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x48], ebp
mov byte [esp + 0x64], bl
test al, 1
je 0x44837c
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
push ebp
call fcn.0043afe4
test al, al
je 0x4485b1
test byte [esp + 0x70], 2
je 0x4483d4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
push 1
push 2
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4485b1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x4485b1
cmp edi, 0xffffffff
je 0x4485b1
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x4485b1
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov ebx, eax
test ebx, ebx
je 0x4485b1
cmp ebx, 0xffffffff
je 0x4485b1
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0043b017
test al, al
je 0x4485b1
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0xb
mov dword [esp + 0x38], 0xf0000000
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 4
mov dword [esp + 0x44], 0xf037f
call fcn.0044811c
test al, al
je 0x4485b1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov dword [esp + 0x38], 0xf01ff
call fcn.00447f0f
test al, al
je 0x4485b1
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x2c]
mov dword [eax + 8], str.winsta0default
mov eax, dword [esp + 0x74]
and ebp, 0x100
mov dword [esp + 0x6c], ebp
test eax, eax
je 0x448512
push eax
call fcn.004127e5
mov ebp, eax
inc ebp
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c2a
mov esi, eax
mov eax, dword [esp + 0x7c]
push ebp
push eax
push esi
call fcn.0041477a
mov ebp, dword [esp + 0x80]
add esp, 0x14
cmp byte [esp + 0x64], 0
je 0x448531
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4485b1
test byte [esp + 0x70], 4
jne 0x44854e
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4485b1
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
or eax, 0x400
push eax
mov eax, dword [esp + 0x2c]
push ebp
push 0
push 0
push esi
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4485b1
cmp byte [esp + 0x64], 0
je 0x4485aa
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
call fcn.0043af7c
mov byte [esp + 0x17], 1
jmp 0x4485c5
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4485c5
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043ae45
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
push ebx
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.0041293d
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x24