Function at 0x4191d5
Capabilities:
Check if file exists

Disassembly:
push 0x640
mov eax, 0x5c467d
call fcn.005870fa
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.00413a77
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.00476800
mov dword [ebp - 4], esi
push 0x68af9c
lea ecx, [ebp - 0x57c]
push ecx
mov ecx, eax
call fcn.0040fcd8
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x584]
push ecx
mov ecx, eax
call fcn.0040fcd8
mov byte [ebp - 4], 3
push str.User_Data
lea ecx, [ebp - 0x588]
push ecx
mov ecx, eax
call fcn.0040fcd8
add esp, 0x20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x584]
call fcn.00408559
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x57c]
call fcn.00408559
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x580]
call fcn.00408559
push 0x68afa0
lea eax, [ebp - 0x580]
push eax
lea ecx, [ebp - 0x588]
call fcn.0040fcd8
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov eax, dword [eax]
lea ecx, [ebp - 0x574]
push ecx
mov ecx, eax
call fcn.00476b50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x580]
call fcn.00408559
lea eax, [ebp - 0x30c]
push eax
lea edi, [ebp - 0x574]
call fcn.00476db0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xbc]
cmp dword [eax - 0xc], ebx
je 0x4195c8
cmp dword [ebp - 0x30c], 0xffffffff
je 0x4195b3
test byte [ebp - 0x30c], 0x10
je 0x4195b3
push 0x68afc8
lea eax, [ebp - 0x598]
push eax
lea ecx, [ebp - 0x588]
call fcn.0040fcd8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x580]
push ecx
mov ecx, eax
call fcn.0040fcd8
mov byte [ebp - 4], 0xd
push str.Preferences
lea ecx, [ebp - 0x57c]
push ecx
mov ecx, eax
call fcn.0040fcd8
add esp, 0x18
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x580]
call fcn.00408559
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x598]
call fcn.00408559
push dword [ebp - 0x57c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4195a4
mov byte [ebp - 4], 0x11
push ebx
lea ecx, [ebp - 0x5e4]
call fcn.004a8540
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xb4]
call fcn.004af200
mov byte [ebp - 4], 0x13
push dword [ebp - 0x57c]
lea eax, [ebp - 0x584]
push eax
call fcn.00473c50
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x584]
cmp dword [eax - 0xc], 0xa00000
jge 0x41955b
push eax
lea ecx, [ebp - 0x630]
call fcn.00407cc3
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.004af2d0
mov byte [ebp - 0x575], al
mov byte [ebp - 4], 0x14
push ebx
push esi
lea ecx, [ebp - 0x630]
call fcn.00409713
cmp byte [ebp - 0x575], bl
je 0x41955b
push ebx
lea ecx, [ebp - 0x614]
call fcn.004a8540
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.004aa010
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x614]
call fcn.004a8ab0
lea ecx, [ebp - 0x5cc]
call fcn.004aa340
test al, al
jne 0x41954c
lea ecx, [ebp - 0x5cc]
call fcn.004aa4d0
test al, al
je 0x41954c
push ebx
lea ecx, [ebp - 0x5fc]
call fcn.004a8540
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.004aa010
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x5fc]
call fcn.004a8ab0
lea ecx, [ebp - 0x5b4]
call fcn.004aa340
test al, al
jne 0x41953d
lea ecx, [ebp - 0x5b4]
call fcn.004aa490
test al, al
je 0x41953d
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004a8ed0
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x4194fb
mov eax, dword [eax + 4]
jmp 0x4194fe
add eax, 4
push eax
lea eax, [ebp - 0x594]
push eax
call fcn.00474e60
pop ecx
pop ecx
mov byte [ebp - 4], 0x1d
push eax
mov eax, dword [ebp - 0x58c]
call fcn.00413ad9
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x594]
call fcn.00408559
mov byte [ebp - 4], 0x1b
push ebx
push esi
lea ecx, [ebp - 0x64c]
call fcn.00409713
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x5b4]
call fcn.004a8ab0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x5cc]
call fcn.004a8ab0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x584]
call fcn.00408418
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0xb4]
push eax
call fcn.00419628
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x5e4]
call fcn.004a8ab0
mov dword [ebp - 4], 0x10
jmp 0x4195a4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x57c]
call fcn.00408559
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30c]
push eax
call fcn.00419602
jmp 0x4192c6
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30c]
push eax
call fcn.00419602
mov byte [ebp - 4], 7
lea eax, [ebp - 0x574]
push eax
call fcn.00476cc0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x588]
call fcn.00408559
mov eax, dword [ebp - 0x58c]
call fcn.00587156
ret