Function at 0x403190
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x8b8
mov eax, dword [0x41d010]
xor eax, esp
mov dword [esp + 0x8b4], eax
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
call fcn.004030e0
call fcn.00402f90
mov ecx, str.winlogon.exe
mov dword [esp + 0x7c], eax
call fcn.004036e0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4034ab
lea eax, [esp + 0x2c]
push eax
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4034ab
mov esi, dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea eax, [esp + 0x1c]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [esp + 0x40]
call esi
test eax, eax
je 0x4034ab
push 4
lea eax, [esp + 0x80]
push eax
push 0xc
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4034ab
mov ecx, str.explorer.exe
call fcn.004036e0
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push ecx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4034ab
lea eax, [esp + 0x28]
push eax
push 2
push 2
push 0
push 0x2000000
push dword [esp + 0x34]
call esi
test eax, eax
je 0x4034ab
push 1
push dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4034ab
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00406ba0
add esp, 0xc
mov dword [esp + 0x30], 0x44
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], str.winsta0default
mov dword [esp + 0x5c], 0
push 0x5c
push 0x41f318
movdqa xmmword [esp + 0x88], xmm0
call fcn.004059f4
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0xa8], ax
lea eax, [esp + 0xaa]
push eax
mov dword [esp + 0x2c], esi
call fcn.00406ba0
add esp, 0x14
xor eax, eax
mov word [esp + 0x4a8], ax
push 0x40e
push eax
lea eax, [esp + 0x4b2]
push eax
call fcn.00406ba0
add esp, 0xc
xor eax, eax
mov word [esp + 0x2a0], ax
push 0x206
push eax
lea eax, [esp + 0x2aa]
push eax
call fcn.00406ba0
mov ecx, 0x41f318
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403390
sub ecx, edx
mov edx, esi
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4033a4
sub edx, esi
lea eax, [esp + 0x2a0]
sar edx, 1
sub ecx, edx
add ecx, ecx
push ecx
push 0x41f318
push 0x208
push eax
call fcn.00404fd6
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x403430
push 0x208
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.00406ba0
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x2a4]
push eax
push str._s_s
lea eax, [esp + 0xa4]
push 0x104
push eax
call fcn.00405927
add esp, 0x14
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4034ab
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [esp + 0x9c]
push eax
push str.__s___s
lea eax, [esp + 0x4b4]
push 0x208
push eax
call fcn.00405927
add esp, 0x14
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2a8]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x4b8]
push 0x430
push 0
push 0
push 0
push eax
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4034ab
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4034bc
push eax
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4034c7
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4034d2
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4034dd
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4034e8
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4034f3
push eax
call esi
test edi, edi
je 0x4034fa
push edi
call esi
cmp dword [ebp + 0x1c], 8
jb 0x40350b
push dword [ebp + 8]
call fcn.004044ab
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x403530
push dword [ebp + 0x20]
call fcn.004044ab
add esp, 4
mov ecx, dword [esp + 0x8bc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004044b0
mov esp, ebp
pop ebp
ret