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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x20
lea eax, [esp + 0x44]
push esi
xor ebx, ebx
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.00414580
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x48], ecx
mov byte [esp + 0x64], bl
test al, 1
je 0x4494da
mov byte [esp + 0x64], 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
push eax
push edx
push ecx
call fcn.0043bb3b
test al, al
je 0x4496d5
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x4496d5
cmp edi, 0xffffffff
je 0x4496d5
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 0x4496d5
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov ebp, eax
test ebp, ebp
je 0x4496d5
cmp ebp, 0xffffffff
je 0x4496d5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.0043bb6e
test al, al
je 0x4496d1
lea edx, [esp + 0x28]
mov byte [esp + 0x28], bl
mov byte [esp + 0x34], bl
mov ebx, dword [esp + 0x1c]
push edx
push ebx
push edi
mov byte [esp + 0x35], 0xb
mov dword [esp + 0x38], 0xf0000000
mov byte [esp + 0x41], 4
mov dword [esp + 0x44], 0xf037f
call fcn.00449278
test al, al
je 0x4496d5
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov dword [esp + 0x38], 0xf01ff
call fcn.0044906b
test al, al
je 0x4496d5
mov eax, dword [esp + 0x80]
mov dword [eax + 8], str.winsta0default
mov eax, dword [eax + 0x2c]
and eax, 0x100
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x44962e
push eax
call fcn.00412665
mov eax, eax
inc eax
xor ecx, ecx
mov dword [esp + 0x70], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412aaa
mov ecx, dword [esp + 0x7c]
mov esi, eax
mov eax, dword [esp + 0x74]
push eax
push ecx
push esi
call fcn.004145fa
add esp, 0x14
cmp byte [esp + 0x64], 0
je 0x44964d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4496d5
test byte [esp + 0x70], 4
jne 0x44966a
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4496d5
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x88]
or eax, 0x400
push eax
push ecx
push 0
push 0
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4496d5
cmp byte [esp + 0x64], 0
je 0x4496ca
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.0043bad3
mov byte [esp + 0x17], 1
jmp 0x4496e9
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4496e9
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
push ebx
call fcn.0043b99c
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004127bd
mov eax, dword [esp + 0x24]
add esp, 4
push eax
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