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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x8b8
mov eax, dword [0x41c010]
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.004030f0
call fcn.00402f90
mov ecx, str.winlogon.exe
mov dword [esp + 0x7c], eax
call fcn.004036d0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4034bb
lea eax, [esp + 0x2c]
push eax
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4034bb
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 0x4034bb
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 0x4034bb
mov ecx, str.explorer.exe
call fcn.004036d0
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 0x4034bb
lea eax, [esp + 0x28]
push eax
push 2
push 2
push 0
push 0x2000000
push dword [esp + 0x34]
call esi
test eax, eax
je 0x4034bb
push 1
push dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4034bb
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00406970
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 0x41e318
movdqa xmmword [esp + 0x88], xmm0
call fcn.004057c4
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.00406970
add esp, 0x14
xor eax, eax
mov word [esp + 0x4a8], ax
push 0x40e
push eax
lea eax, [esp + 0x4b2]
push eax
call fcn.00406970
add esp, 0xc
xor eax, eax
mov word [esp + 0x2a0], ax
push 0x206
push eax
lea eax, [esp + 0x2aa]
push eax
call fcn.00406970
mov ecx, 0x41e318
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033a0
sub ecx, edx
mov edx, esi
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4033b4
sub edx, esi
lea eax, [esp + 0x2a0]
sar edx, 1
sub ecx, edx
add ecx, ecx
push ecx
push 0x41e318
push 0x208
push eax
call fcn.00404da6
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x403440
push 0x208
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.00406970
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.004056f7
add esp, 0x14
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4034bb
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.004056f7
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 0x4034bb
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 0x4034cc
push eax
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4034d7
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4034e2
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4034ed
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4034f8
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403503
push eax
call esi
test edi, edi
je 0x40350a
push edi
call esi
cmp dword [ebp + 0x1c], 8
jb 0x40351b
push dword [ebp + 8]
call fcn.0040427b
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 0x403540
push dword [ebp + 0x20]
call fcn.0040427b
add esp, 4
mov ecx, dword [esp + 0x8bc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00404280
mov esp, ebp
pop ebp
ret