Function at 0x449650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf49b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
cmp dword [0x4f26ac], 0
jne 0x4496a0
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.00449530
add esp, 4
test al, al
je 0x449688
xor bl, bl
cmp byte [ebp + 0x18], bl
jne 0x4497a0
cmp dword [ebp + 0x14], 4
jne 0x4496fb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x449799
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.004491f0
mov bl, al
add esp, 0x10
test bl, bl
jne 0x4499e2
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 0x4499e2
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 0x4499d9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4499d9
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.004490f0
add esp, 0xc
test eax, eax
je 0x4499ca
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4499ca
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 0x44984e
mov ebx, 0x400
jmp 0x449856
xor bl, bl
jmp 0x4496fb
mov ecx, dword [ebp + 0x10]
push ecx
push ecx
call fcn.00435460
add esp, 4
mov esi, eax
call fcn.00437b30
test al, al
jne 0x4496fb
push 0x44
lea edx, [esp + 0x40]
push 0
push edx
call fcn.004982c0
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 0x44982c
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 [0x4f26b4], 0
je 0x44990a
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.S_1_16_
call fcn.00425750
mov eax, dword [ebp + 0x14]
dec eax
mov dword [esp + 0x90], 0
cmp eax, 3
ja case.0x449886.4
jmp dword [eax*4 + 0x4499fc]
mov edx, str.12288
jmp 0x4498a7
mov edx, str.8192
jmp 0x4498a7
mov edx, str.4096
jmp 0x4498a7
mov edx, str.16384
lea edi, [esp + 0x10]
call fcn.004116e0
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 0x4498fe
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.004064a0
mov edi, dword [ebp + 8]
push 0x44
lea eax, [esp + 0x40]
push 0
push eax
call fcn.004982c0
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 0x449966
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 0x449988
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 0x4499a2
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4499ba
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 0x4499df
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
jmp 0x4499df
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