Function at 0x416540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f150
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5f30a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
call fcn.00408810
mov ecx, eax
call fcn.00404b00
fstp dword [ebp - 0x40]
fld dword [ebp - 0x40]
fcomp qword [0x5e0b40]
fnstsw ax
test ah, 0x44
jp 0x416594
xor eax, eax
jmp 0x416963
lea eax, [ebp - 0x3c]
push eax
call fcn.00408810
mov ecx, eax
call fcn.00416980
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040d690
movzx ecx, al
test ecx, ecx
je 0x4165d8
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e800
mov eax, dword [ebp - 0x68]
jmp 0x416963
lea ecx, [ebp - 0x10]
call fcn.0041e820
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
fld dword [ebp - 0x40]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
fld dword [ebp - 0x40]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp - 0x3c]
push eax
push str._s_.1f_s_d__.1f._s
lea ecx, [ebp - 0x10]
push ecx
call fcn.00405940
add esp, 0x28
lea ecx, [ebp - 0x10]
call fcn.00472880
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41666a
fld dword [ebp - 0x40]
mov edx, dword [ebp + 0x18]
fstp qword [edx]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00409010
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e800
mov eax, dword [ebp - 0x6c]
jmp 0x416963
call fcn.00408810
mov ecx, eax
call fcn.00405970
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.00405ac0
movzx ecx, al
test ecx, ecx
je 0x4166b2
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e800
mov eax, dword [ebp - 0x70]
jmp 0x416963
lea ecx, [ebp - 0x28]
call fcn.00416ac0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.00422a00
jmp 0x4166d4
lea ecx, [ebp - 0x48]
call fcn.00416af0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00427cc0
push eax
lea ecx, [ebp - 0x48]
call fcn.00413a50
movzx ecx, al
test ecx, ecx
je 0x416819
lea ecx, [ebp - 0x48]
call fcn.00406c70
fld qword [eax]
fstp qword [ebp - 0x64]
fld dword [ebp - 0x40]
fcomp qword [ebp - 0x64]
fnstsw ax
test ah, 0x44
jnp 0x41671a
fld1
fcomp qword [ebp - 0x64]
fnstsw ax
test ah, 1
jne 0x41671c
jmp 0x4166cc
lea ecx, [ebp - 0x58]
call fcn.0041e820
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x10]
push edx
sub esp, 8
fld qword [ebp - 0x64]
fstp qword [esp]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
sub esp, 8
fld qword [ebp - 0x64]
fstp qword [esp]
mov eax, dword [ebp - 0x3c]
push eax
push str._s_.1f_s_d__.1f._s
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405940
add esp, 0x28
lea ecx, [ebp - 0x58]
call fcn.00472880
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416781
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0041e800
jmp 0x4166cc
fld dword [ebp - 0x40]
fsubr qword [ebp - 0x64]
fcomp qword [0x5e0b00]
fnstsw ax
test ah, 5
jp 0x4167a4
fld qword [ebp - 0x64]
fchs
fsub dword [ebp - 0x40]
fstp qword [ebp - 0x90]
jmp 0x4167b0
fld dword [ebp - 0x40]
fsubr qword [ebp - 0x64]
fstp qword [ebp - 0x90]
fld qword [ebp - 0x90]
fstp qword [ebp - 0x54]
fld dword [ebp - 0x28]
fcomp qword [0x5e0b00]
fnstsw ax
test ah, 0x44
jnp 0x4167f0
fld dword [ebp - 0x20]
fcomp qword [ebp - 0x54]
fnstsw ax
test ah, 0x41
je 0x4167f0
fld dword [ebp - 0x20]
fcomp qword [ebp - 0x54]
fnstsw ax
test ah, 0x44
jp 0x416808
fld dword [ebp - 0x28]
fcomp qword [ebp - 0x64]
fnstsw ax
test ah, 5
jp 0x416808
fld qword [ebp - 0x64]
fstp dword [ebp - 0x28]
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
call fcn.00409010
fld qword [ebp - 0x54]
fstp dword [ebp - 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0041e800
jmp 0x4166cc
fld dword [ebp - 0x28]
fcomp qword [0x5e0b00]
fnstsw ax
test ah, 0x44
jp 0x41685f
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004505f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e800
mov eax, dword [ebp - 0x7c]
jmp 0x416963
fld dword [ebp - 0x40]
fsub qword [0x5e0b40]
fcomp qword [0x5e0b00]
fnstsw ax
test ah, 5
jp 0x416888
fld dword [ebp - 0x40]
fchs
fsub qword [0x5e0b40]
fstp qword [ebp - 0x98]
jmp 0x416897
fld dword [ebp - 0x40]
fsub qword [0x5e0b40]
fstp qword [ebp - 0x98]
fld qword [ebp - 0x98]
fstp qword [ebp - 0x1c]
fld dword [ebp - 0x28]
fsub dword [ebp - 0x40]
fcomp qword [0x5e0b00]
fnstsw ax
test ah, 5
jp 0x4168c3
fld dword [ebp - 0x28]
fchs
fsub dword [ebp - 0x40]
fstp qword [ebp - 0xa0]
jmp 0x4168cf
fld dword [ebp - 0x28]
fsub dword [ebp - 0x40]
fstp qword [ebp - 0xa0]
fld qword [ebp - 0xa0]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fcomp qword [ebp - 0x1c]
fnstsw ax
test ah, 0x41
jne 0x416918
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004505f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e800
mov eax, dword [ebp - 0x80]
jmp 0x416963
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00409010
fld dword [ebp - 0x28]
mov ecx, dword [ebp + 0x18]
fstp qword [ecx]
mov dword [ebp - 0x84], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004505f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e800
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14