Function at 0x419a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d2ee
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x55b4e0]
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 + 0x264], 0
jne 0x419b32
mov eax, dword [0x5657ec]
test eax, eax
jne 0x419aa2
push 0x50
call fcn.004cfe82
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x419a94
mov ecx, eax
call fcn.0040d610
jmp 0x419a96
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5657ec], 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.00419920
mov ebx, eax
lea esi, [edi + 0x254]
cmp esi, ebx
je 0x419af5
cmp dword [esi + 0x14], 8
jb 0x419ada
push dword [esi]
call fcn.004b6db0
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 0x419b06
push dword [ebp - 0x5c]
call fcn.004b6db0
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 0x419b32
push dword [ebp - 0x74]
call fcn.004b6db0
add esp, 4
lea esi, [edi + 0x254]
lea ecx, [edi + 0x23c]
cmp ecx, esi
je 0x419b4c
push 0xffffffffffffffff
push 0
push esi
call fcn.00407640
cmp dword [esi + 0x14], 8
jb 0x419b56
mov eax, dword [esi]
jmp 0x419b58
mov eax, esi
push eax
push str.read_from_reg:_path_is__s
push 0xeb
push str.DNDownloaderModel::_calcInstallPath
call fcn.0040c6c0
add esp, 0x10
cmp dword [edi + 0x264], 0
jne 0x419c2d
lea ecx, [ebp - 0x28]
call fcn.0042d490
mov dword [ebp - 4], 2
mov eax, dword [0x5657ec]
test eax, eax
jne 0x419bbe
push 0x50
call fcn.004cfe82
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x419bb3
mov ecx, eax
call fcn.0040d610
jmp 0x419bb5
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x5657ec], 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 0x419bef
push dword [ebp - 0x74]
call fcn.004b6db0
add esp, 4
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x419c02
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407640
cmp dword [esi + 0x14], 8
jb 0x419c0a
mov esi, dword [esi]
push esi
push str.get_install_path_from_MaxFreeSpace:__s
push 0xf2
push str.DNDownloaderModel::_calcInstallPath
call fcn.0040c6c0
add esp, 0x10
cmp dword [ebp - 0x14], 8
jb 0x419c6d
push dword [ebp - 0x28]
jmp 0x419c65
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 0x419c5c
mov byte [edi + 0x26c], 1
cmp dword [ebp - 0x2c], 8
jb 0x419c6d
push dword [ebp - 0x40]
call fcn.004b6db0
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.004cfd33
mov esp, ebp
pop ebp
ret