Function at 0x4489b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4be92b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
cmp dword [0x4f164c], 0
jne 0x448a00
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
mov edx, edi
call fcn.00448890
add esp, 4
test al, al
je 0x4489e8
xor bl, bl
cmp byte [ebp + 0x18], bl
jne 0x448b00
cmp dword [ebp + 0x14], 4
jne 0x448a5b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x448af9
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.00448550
mov bl, al
add esp, 0x10
test bl, bl
jne 0x448d42
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x448d42
lea ecx, [esp + 0x1c]
push ecx
push 0xf00ff
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x448d39
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x448d39
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.00448450
add esp, 0xc
test eax, eax
je 0x448d2a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x448d2a
push 1
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
xor ebx, ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x448bae
mov ebx, 0x400
jmp 0x448bb6
xor bl, bl
jmp 0x448a5b
mov ecx, dword [ebp + 0x10]
push ecx
push ecx
call fcn.004349a0
add esp, 4
mov esi, eax
call fcn.00437070
test al, al
jne 0x448a5b
push 0x44
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00497780
mov edx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
cmp word [edi], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0x400
push 0
push 0
push 0
mov dword [esp + 0x5c], 0x44
push edx
jne 0x448b8c
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], 0
cmp dword [0x4f1654], 0
je 0x448c6a
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.S_1_16_
call fcn.00424e40
mov eax, dword [ebp + 0x14]
dec eax
mov dword [esp + 0x90], 0
cmp eax, 3
ja case.0x448be6.4
jmp dword [eax*4 + 0x448d5c]
mov edx, str.12288
jmp 0x448c07
mov edx, str.8192
jmp 0x448c07
mov edx, str.4096
jmp 0x448c07
mov edx, str.16384
lea edi, [esp + 0x10]
call fcn.00410e10
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
push edx
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x448c5e
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [esp + 0x14]
add eax, 8
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x19
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea ecx, [esp + 0x10]
call fcn.00406270
mov edi, dword [ebp + 8]
push 0x44
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00497780
xor eax, eax
add esp, 0xc
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.winsta0default
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp word [edi], ax
jne 0x448cc6
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
push 0
push 0
push 0
push ecx
push 0
push edx
jmp 0x448ce8
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push edx
push ebx
push 0
push 0
push 0
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
test eax, eax
je 0x448d02
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x448d1a
mov edx, dword [esp + 0x30]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
jmp 0x448d3f
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
jmp 0x448d3f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret