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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x20
lea eax, [ebp - 0x54]
push esi
push eax
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x18], esi
call fcn.00412e60
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x54], 0x20
mov dword [ebp - 0x4c], edi
mov byte [ebp + 0xb], bl
test al, 1
je 0x446263
mov byte [ebp + 0xb], 1
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push edi
call fcn.00436c61
test al, al
je 0x44644f
test byte [ebp + 0x14], 2
je 0x4462b2
mov edx, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
push ecx
push 1
push 2
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x44644f
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov esi, eax
test esi, esi
je 0x44644f
cmp esi, 0xffffffff
je 0x44644f
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x44644f
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44644f
cmp eax, 0xffffffff
je 0x44644f
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.00436c93
test al, al
je 0x44644f
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push ecx
push edx
push esi
mov word [ebp - 0x34], 0xb00
mov dword [ebp - 0x30], 0xf0000000
mov word [ebp - 0x28], 0x400
mov dword [ebp - 0x24], 0xf037f
call fcn.0044602a
test al, al
je 0x44644f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
push ecx
push edx
mov word [ebp - 0x28], bx
mov dword [ebp - 0x24], 0xf01ff
call fcn.00445e3b
test al, al
je 0x44644f
mov eax, dword [ebp + 0x24]
mov edi, dword [eax + 0x2c]
mov dword [eax + 8], str.winsta0default
mov eax, dword [ebp + 0x18]
and edi, 0x100
mov dword [ebp + 0x10], edi
test eax, eax
je 0x4463d1
push eax
call fcn.004110e1
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004114f7
mov ebx, eax
mov eax, dword [ebp + 0x18]
push edi
push eax
push ebx
call fcn.00412eda
mov edi, dword [ebp + 0x10]
add esp, 0x14
cmp byte [ebp + 0xb], 0
je 0x4463e9
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x54]
push ecx
push edx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x44644f
test byte [ebp + 0x14], 4
jne 0x446403
mov eax, dword [ebp - 0xc]
push 0
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x44644f
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
or eax, 0x400
push eax
mov eax, dword [ebp - 0xc]
push edi
push 0
push 0
push ebx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x44644f
cmp byte [ebp + 0xb], 0
je 0x446449
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.00436bf8
mov byte [ebp - 5], 1
jmp 0x446461
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x446461
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov edx, dword [ebp - 0x10]
push edx
call fcn.00436abb
add esp, 4
test esi, esi
je 0x446478
push esi
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x446486
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x446494
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004110fc
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x4464b5
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24