Function at 0x405240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405870
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x2f
lea ecx, [ebp - 0x40]
call fcn.004055f0
add eax, 1
push eax
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405820
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
call fcn.004029e0
mov ecx, eax
call fcn.0049e4c7
mov byte [ebp - 4], 2
push str.APPDATA_CACHE_FOLDER
lea eax, [ebp - 0x70]
push eax
call fcn.004a1b6f
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402ac0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00404fc0
push 0x685a8c
lea ecx, [ebp - 0x28]
call fcn.00404c50
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ac0
lea ecx, [ebp - 0x28]
call fcn.00404670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405397
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00404670
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405510
mov ecx, eax
call fcn.004a54ff
movzx edx, al
test edx, edx
jne 0x405397
mov dword [ebp - 0x88], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404fc0
mov eax, dword [ebp - 0x88]
jmp 0x4054f5
lea eax, [ebp - 0x74]
push eax
push 0x61fba4
push 1
push 0
push 0x61fb94
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jge 0x4053f4
mov dword [ebp - 0x8c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404fc0
mov eax, dword [ebp - 0x8c]
jmp 0x4054f5
push 0
lea ecx, [ebp - 0x28]
call fcn.00404670
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jge 0x40541b
jmp 0x4054a4
cmp dword [ebp + 0xc], 0xffffffff
jne 0x405445
call fcn.004a5567
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 5
jl 0x40543e
mov dword [ebp + 0xc], 4
jmp 0x405445
mov dword [ebp + 0xc], 2
mov dword [ebp - 0x9c], 8
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x98], edx
push 0
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jge 0x40547a
jmp 0x4054a4
push 7
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jge 0x405495
jmp 0x4054a4
mov dword [ebp - 0x7c], 1
xor eax, eax
jne 0x4053f4
cmp dword [ebp - 0x74], 0
je 0x4054bf
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404fc0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6256
mov esp, ebp
pop ebp
ret 8