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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xd8], 0
call fcn.004038a0
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0xc]
call fcn.004038b0
push 0
push 0x47da80
lea ecx, [ebp + 8]
call fcn.00405240
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
je 0x45f3dc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402520
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0xc]
call fcn.00403480
push eax
lea ecx, [ebp + 8]
call fcn.00402520
lea ecx, [ebp - 0x90]
call fcn.00405400
mov eax, dword [ebp - 0x80]
add eax, 2
push eax
push 0
lea ecx, [ebp - 0xc]
call fcn.00404fa0
push 0xa
lea ecx, [ebp - 0x74]
call fcn.004269d9
lea ecx, [ebp - 0x74]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
lea edx, [ebp + 8]
push edx
call fcn.00401e00
call fcn.0045bc40
add esp, 8
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 4
je 0x45f4e6
lea eax, [ebp + 8]
push eax
push 0x47da88
lea ecx, [ebp - 0xa8]
push ecx
call fcn.004015e0
add esp, 0xc
mov ecx, eax
call fcn.004010f0
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x45f44b
mov dword [ebp - 0xdc], 0
jmp 0x45f4ac
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x45f470
mov dword [ebp - 0xe0], 0
jmp 0x45f4a0
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.00445660
mov dword [ebp - 0xe4], esp
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0xe4]
push eax
call fcn.00403850
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xa4], edx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0043b22c
push 0x48a190
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0044193f
lea ecx, [ebp - 0xa8]
call fcn.00405400
push 0
lea ecx, [ebp - 0x74]
call fcn.004269b5
push eax
lea ecx, [ebp - 0x74]
call fcn.004084d0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401e00
push 0
push 0x47dad0
lea ecx, [ebp - 0x4c]
call fcn.00405240
cmp eax, 0xffffffff
jne 0x45f52a
push 0
push 0x47daf4
lea ecx, [ebp - 0x4c]
call fcn.00405240
cmp eax, 0xffffffff
je 0x45f59b
push 0x47db18
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0x47db1c
call fcn.00401f90
lea edx, [ebp - 0xb8]
push edx
call fcn.0045b420
add esp, 8
push eax
call fcn.00401690
add esp, 8
mov byte [ebp - 0xad], al
lea ecx, [ebp - 0xb8]
call fcn.00405400
movzx eax, byte [ebp - 0xad]
test eax, eax
je 0x45f59b
lea ecx, [ebp - 0x4c]
call fcn.00405400
lea ecx, [ebp - 0x74]
call fcn.00426af0
lea ecx, [ebp - 0xc]
call fcn.00405400
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45f866
push 1
lea ecx, [ebp - 0x74]
call fcn.004269b5
push eax
lea ecx, [ebp - 0x74]
call fcn.004084d0
push eax
lea ecx, [ebp - 0x54]
call fcn.00401e00
push 2
lea ecx, [ebp - 0x74]
call fcn.004269b5
push eax
lea ecx, [ebp - 0x74]
call fcn.004084d0
push eax
lea ecx, [ebp - 0x50]
call fcn.00401e00
push 3
lea ecx, [ebp - 0x74]
call fcn.004269b5
push eax
lea ecx, [ebp - 0x74]
call fcn.004084d0
push eax
lea ecx, [ebp - 4]
call fcn.00401e00
lea ecx, [ebp - 0x4c]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45f6ac
lea ecx, [ebp - 0x4c]
push ecx
push 0x47db2c
push 0x4973b4
lea edx, [ebp - 0xc0]
push edx
call fcn.00401530
add esp, 0xc
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00403570
add esp, 0xc
mov ecx, eax
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xb9], al
lea ecx, [ebp - 0xc4]
call fcn.00405400
lea ecx, [ebp - 0xc0]
call fcn.00405400
movzx ecx, byte [ebp - 0xb9]
test ecx, ecx
je 0x45f6ac
lea ecx, [ebp - 4]
call fcn.00405400
lea ecx, [ebp - 0x50]
call fcn.00405400
lea ecx, [ebp - 0x54]
call fcn.00405400
lea ecx, [ebp - 0x4c]
call fcn.00405400
lea ecx, [ebp - 0x74]
call fcn.00426af0
lea ecx, [ebp - 0xc]
call fcn.00405400
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45f866
lea ecx, [ebp - 0x50]
call fcn.004010f0
push eax
call fcn.0043cc41
add esp, 4
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jge 0x45f6cd
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x54]
call fcn.00405310
mov dword [ebp - 0x48], 0
push 0x38
push 0
lea edx, [ebp - 0x44]
push edx
call fcn.0043acc0
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
call fcn.004010f0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x54]
call fcn.00403620
movzx eax, al
test eax, eax
je 0x45f73e
or dword [ebp - 0xd8], 1
push 0
lea ecx, [ebp - 0xcc]
call fcn.00401f90
mov dword [ebp - 0xe8], eax
jmp 0x45f747
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xc8], edx
mov ecx, dword [ebp - 0xc8]
call fcn.004010f0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xd8]
and eax, 1
je 0x45f77e
and dword [ebp - 0xd8], 0xfffffffe
lea ecx, [ebp - 0xcc]
call fcn.00405400
mov dword [ebp - 0x30], 0
push 0x47db30
lea ecx, [ebp - 4]
push ecx
call fcn.00403950
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
and edx, 5
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0xc]
call fcn.00403620
movzx ecx, al
test ecx, ecx
jne 0x45f820
lea ecx, [ebp - 0x8c]
call fcn.004038b0
mov edx, dword [ebp - 0x10]
push edx
push 0x47db3c
lea eax, [ebp - 0x8c]
push eax
call fcn.004037a0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xd0], esp
lea edx, [ebp - 0x8c]
push edx
call fcn.00401e00
push ecx
mov ecx, esp
mov dword [ebp - 0xd4], esp
lea eax, [ebp - 0xc]
push eax
call fcn.00401e00
call fcn.0045b3d0
add esp, 8
lea ecx, [ebp - 0x8c]
call fcn.00405400
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
call fcn.00405400
lea ecx, [ebp - 0x50]
call fcn.00405400
lea ecx, [ebp - 0x54]
call fcn.00405400
lea ecx, [ebp - 0x4c]
call fcn.00405400
lea ecx, [ebp - 0x74]
call fcn.00426af0
lea ecx, [ebp - 0xc]
call fcn.00405400
lea ecx, [ebp + 8]
call fcn.00405400
lea esp, [ebp - 0xe8]
mov ecx, dword [ebp - 0xac]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret