Function at 0x40e090
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5ac92c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
lea eax, [esp + 0xb8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0xc0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e3c7
cmp dword [esp + 0xcc], 2
jne 0x40e3c7
mov eax, dword [esp + 0xc0]
mov esi, 6
cmp eax, esi
jb 0x40e330
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov esi, dword [0x67a008]
mov dword [esp + 0x158], ebx
cmp esi, ebx
jne 0x40e11f
mov esi, 0x67a00c
mov ecx, 0x64f030
test ecx, ecx
je 0x40e25d
cmp esi, ebx
je 0x40e25d
mov eax, 0x650108
test eax, eax
je 0x40e25d
push ebx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
call fcn.004028e0
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x15c], 1
call fcn.00403bb0
push 0x650108
lea ecx, [esp + 0x3c]
mov byte [esp + 0x15c], 2
call fcn.00403bb0
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call fcn.00401070
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov edi, eax
jne 0x40e1a0
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x38]
call fcn.00401fb0
push eax
call fcn.0057e90a
push edi
mov ebp, eax
call fcn.0057e90a
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005970d9
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40e223
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x38]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x30]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x28]
call fcn.00401fb0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.0057e89a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 2
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 1
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], bl
call fcn.00401070
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x44]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x50], 0x6500fc
je 0x40e28c
mov dword [esp + 0x54], edx
jmp 0x40e294
lea eax, [esp + 0x14]
mov dword [esp + 0x54], eax
cmp edx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], ebx
jne 0x40e2ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e317
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x40e2c4
lea eax, [esp + 0x14]
push ebx
push eax
mov ecx, ebp
call fcn.0040c5d0
test al, al
je 0x40e317
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x5c], 0x6501b4
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e311
mov edx, dword [esp + 0x7c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40e317
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x158], 0xffffffff
call fcn.00401070
jmp 0x40e3c7
mov ecx, ebp
call fcn.0040dfd0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x80]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x80], 0x3c
mov dword [esp + 0x84], 0x40
mov dword [esp + 0x8c], 0x64ef4c
mov dword [esp + 0x90], 0x6501ac
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 0x80]
mov dword [esp + 0x88], eax
push edx
mov dword [esp + 0x98], 0x65019c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40e3c7
mov eax, dword [esp + 0xb8]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret