Function at 0x4195d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb8de
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x304], 0
jne 0x4196d2
mov eax, dword [0x517344]
test eax, eax
jne 0x419642
push 0x50
call fcn.00494625
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x419634
mov ecx, eax
call fcn.0040d610
jmp 0x419636
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x517344], eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.0040dde0
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004194c0
mov ebx, eax
lea esi, [edi + 0x2f4]
cmp esi, ebx
je 0x419695
cmp dword [esi + 0x14], 8
jb 0x41967a
push dword [esi]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00406f40
cmp dword [ebp - 0x48], 8
jb 0x4196a6
push dword [ebp - 0x5c]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x4196d2
push dword [ebp - 0x74]
call fcn.00494620
add esp, 4
lea esi, [edi + 0x2f4]
lea ecx, [edi + 0x2dc]
cmp ecx, esi
je 0x4196ec
push 0xffffffffffffffff
push 0
push esi
call fcn.00407640
cmp dword [esi + 0x14], 8
jb 0x4196f6
mov eax, dword [esi]
jmp 0x4196f8
mov eax, esi
push eax
push str.read_from_reg:_path_is__s
push 0xe9
push str.DNDownloaderModel::_calcInstallPath
call fcn.0040c6c0
add esp, 0x10
cmp dword [edi + 0x304], 0
jne 0x4197cd
lea ecx, [ebp - 0x28]
call fcn.0042c9b0
mov dword [ebp - 4], 2
mov eax, dword [0x517344]
test eax, eax
jne 0x41975e
push 0x50
call fcn.00494625
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x419753
mov ecx, eax
call fcn.0040d610
jmp 0x419755
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x517344], eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.0040d840
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00408f10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x60], 8
jb 0x41978f
push dword [ebp - 0x74]
call fcn.00494620
add esp, 4
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x4197a2
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407640
cmp dword [esi + 0x14], 8
jb 0x4197aa
mov esi, dword [esi]
push esi
push str.get_install_path_from_MaxFreeSpace:__s
push 0xf0
push str.DNDownloaderModel::_calcInstallPath
call fcn.0040c6c0
add esp, 0x10
cmp dword [ebp - 0x14], 8
jb 0x41980d
push dword [ebp - 0x28]
jmp 0x419805
push str._vms_
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00408d00
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4197fc
mov byte [edi + 0x30c], 1
cmp dword [ebp - 0x2c], 8
jb 0x41980d
push dword [ebp - 0x40]
call fcn.00494620
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004944c3
mov esp, ebp
pop ebp
ret