Function at 0x418d9d
Capabilities:
Check if file exists

Disassembly:
push 0x640
mov eax, 0x5bd486
call fcn.00580bea
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58c], eax
mov edi, ecx
mov dword [ebp - 0x590], ebx
push eax
call fcn.00413cf5
mov dword [ebp - 4], ebx
xor esi, esi
inc esi
mov dword [ebp - 0x590], esi
push 0x1c
lea eax, [ebp - 0x580]
push eax
call fcn.00471bb0
mov dword [ebp - 4], esi
push 0x6838c4
lea ecx, [ebp - 0x57c]
push ecx
mov ecx, eax
call fcn.0040fc0a
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x584]
push ecx
mov ecx, eax
call fcn.0040fc0a
mov byte [ebp - 4], 3
push str.User_Data
lea ecx, [ebp - 0x588]
push ecx
mov ecx, eax
call fcn.0040fc0a
add esp, 0x20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x584]
call fcn.0040856e
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x57c]
call fcn.0040856e
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x580]
call fcn.0040856e
push 0x6838c8
lea eax, [ebp - 0x580]
push eax
lea ecx, [ebp - 0x588]
call fcn.0040fc0a
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov eax, dword [eax]
lea ecx, [ebp - 0x574]
push ecx
mov ecx, eax
call fcn.00471fe0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x580]
call fcn.0040856e
lea eax, [ebp - 0x30c]
push eax
lea edi, [ebp - 0x574]
call fcn.00472240
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xbc]
cmp dword [eax - 0xc], ebx
je 0x4191c0
cmp dword [ebp - 0x30c], 0xffffffff
je 0x4191ab
test byte [ebp - 0x30c], 0x10
je 0x4191ab
push 0x6838f0
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x588]
call fcn.0040fc0a
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x580]
push ecx
mov ecx, eax
call fcn.0040fc0a
mov byte [ebp - 4], 0xd
push str.Preferences
lea ecx, [ebp - 0x57c]
push ecx
mov ecx, eax
call fcn.0040fc0a
add esp, 0x18
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x580]
call fcn.0040856e
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x598]
call fcn.0040856e
push dword [ebp - 0x57c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41919c
mov byte [ebp - 4], 0x11
push ebx
lea ecx, [ebp - 0x5e4]
call fcn.004a3ff0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xb4]
call fcn.004a8f60
mov byte [ebp - 4], 0x13
push dword [ebp - 0x57c]
lea eax, [ebp - 0x584]
push eax
call fcn.0046f040
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x584]
cmp dword [eax - 0xc], 0xa00000
jge 0x419123
push eax
lea ecx, [ebp - 0x630]
call fcn.00407d02
mov byte [ebp - 4], 0x15
push esi
lea eax, [ebp - 0x5e4]
push eax
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004a9030
mov byte [ebp - 0x575], al
mov byte [ebp - 4], 0x14
push ebx
push esi
lea ecx, [ebp - 0x630]
call fcn.004096f9
cmp byte [ebp - 0x575], bl
je 0x419123
push ebx
lea ecx, [ebp - 0x614]
call fcn.004a3ff0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x614]
push eax
push str.download
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x5e4]
call fcn.004a5590
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x614]
call fcn.004a4560
lea ecx, [ebp - 0x5cc]
call fcn.004a5630
test al, al
jne 0x419114
lea ecx, [ebp - 0x5cc]
call fcn.004a5690
test al, al
je 0x419114
push ebx
lea ecx, [ebp - 0x5fc]
call fcn.004a3ff0
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x5fc]
push eax
push str.default_directory
lea eax, [ebp - 0x5b4]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004a5590
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x5fc]
call fcn.004a4560
lea ecx, [ebp - 0x5b4]
call fcn.004a5630
test al, al
jne 0x419105
lea ecx, [ebp - 0x5b4]
call fcn.004a5650
test al, al
je 0x419105
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004a4970
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x4190c3
mov eax, dword [eax + 4]
jmp 0x4190c6
add eax, 4
push eax
lea eax, [ebp - 0x594]
push eax
call fcn.00470250
pop ecx
pop ecx
mov byte [ebp - 4], 0x1d
push eax
mov eax, dword [ebp - 0x58c]
call fcn.004138ba
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x594]
call fcn.0040856e
mov byte [ebp - 4], 0x1b
push ebx
push esi
lea ecx, [ebp - 0x64c]
call fcn.004096f9
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x5b4]
call fcn.004a4560
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x5cc]
call fcn.004a4560
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x584]
call fcn.0040842d
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x20
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.004096f9
mov byte [ebp - 4], 0x1f
push ebx
push esi
lea ecx, [ebp - 0x74]
call fcn.004096f9
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x94]
push eax
call fcn.00419bfa
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0xb4]
push eax
call fcn.00419271
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x5e4]
call fcn.004a4560
mov dword [ebp - 4], 0x10
jmp 0x41919c
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x57c]
call fcn.0040856e
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30c]
push eax
call fcn.004191fa
jmp 0x418e8e
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30c]
push eax
call fcn.004191fa
mov byte [ebp - 4], 7
lea eax, [ebp - 0x574]
push eax
call fcn.00472150
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x588]
call fcn.0040856e
mov eax, dword [ebp - 0x58c]
call fcn.00580c46
ret