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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd53
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x436a98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x10]
call fcn.0040a4b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040a4b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
add ecx, 0x64
call fcn.00418500
push eax
lea ecx, [ebp - 0x10]
call fcn.00409630
mov ecx, dword [ebp - 0x48]
add ecx, 0x68
call fcn.00418500
push eax
lea ecx, [ebp - 0x18]
call fcn.00409630
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0x6c]
test ecx, ecx
jne 0x407de2
lea ecx, [ebp - 0x10]
call fcn.00409690
test eax, eax
je 0x407de2
lea ecx, [ebp - 0x18]
call fcn.00409690
test eax, eax
jne 0x407e9c
push 0x42dae0
push 0x2793
lea ecx, [ebp - 0x10]
call fcn.00404f50
push eax
mov ecx, dword [ebp - 0x48]
call fcn.00407bf0
test eax, eax
jne 0x407e21
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403df0
jmp 0x4081b2
lea ecx, [ebp - 0x18]
call fcn.00409690
test eax, eax
jne 0x407e9c
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x1c], eax
push 0x42d8e4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407e78
push 0x42db80
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407e78
push str..wim
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407e8b
lea ecx, [ebp - 0x10]
call fcn.004096b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00409630
jmp 0x407e9c
lea ecx, [ebp - 0x18]
call fcn.00404f50
push eax
call fcn.00417ca0
add esp, 4
push 0x2819
push 0x2818
push 0x27dd
mov ecx, dword [ebp - 0x48]
call fcn.00407000
cmp dword [ebp - 0x48], 0
je 0x407ec4
mov edx, dword [ebp - 0x48]
add edx, 0x28
mov dword [ebp - 0x4c], edx
jmp 0x407ecb
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x58
call fcn.00418500
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00418500
push eax
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x407fc0
cmp dword [ebp - 0x14], 0
jne 0x407fa0
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
push 0x281d
push 0x27dd
mov ecx, dword [ebp - 0x48]
call fcn.00407160
call fcn.00417fc0
test eax, eax
je 0x407f9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], 0
jmp 0x407f5a
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0xa
jge 0x407f9e
lea ecx, [ebp - 0x18]
call fcn.00418500
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407f91
push 5
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00418500
push eax
push 0x42db98
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x407f9e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407f51
jmp 0x407fbb
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
push 0x2800
push 0x27dd
mov ecx, dword [ebp - 0x48]
call fcn.00407160
jmp 0x408197
cmp dword [ebp - 0x14], 0xeeee0001
jne 0x40809e
lea ecx, [ebp - 0x28]
call fcn.0040a4b0
mov byte [ebp - 4], 2
push 0x27ff
lea ecx, [ebp - 0x10]
call fcn.00403c00
push 0x42dba4
lea ecx, [ebp - 0x30]
call fcn.0040afd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00418500
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040b2b0
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040b120
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x60]
call fcn.00418500
push eax
lea ecx, [ebp - 0x28]
call fcn.00409630
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00404a50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00404a50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00404a50
lea ecx, [ebp - 0x28]
call fcn.00418500
push eax
push 0x27fe
push 0x27dd
mov ecx, dword [ebp - 0x48]
call fcn.00407160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403df0
jmp 0x408197
cmp dword [ebp - 0x14], 0xeeee0002
jne 0x408179
lea ecx, [ebp - 0x2c]
call fcn.0040a4b0
mov byte [ebp - 4], 6
push 0x27fd
lea ecx, [ebp - 0x2c]
call fcn.00403c00
push 0x42dbac
lea ecx, [ebp - 0x3c]
call fcn.0040afd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00418500
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00418500
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0040b2b0
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040b120
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x70]
call fcn.00418500
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409630
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00404a50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00404a50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.00404a50
lea ecx, [ebp - 0x2c]
call fcn.00418500
push eax
push 0x27fe
push 0x27dd
mov ecx, dword [ebp - 0x48]
call fcn.00407160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403df0
jmp 0x408197
cmp dword [ebp - 0x14], 0x80004004
je 0x408197
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x28
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x28]
push ecx
mov ecx, dword [eax]
call ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret