Function at 0x40d890
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510f7c
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x26c]
push 0x1d
push str.SoftwareYandexYandexBrowser
mov dword [ebp - 0x258], 0xf
mov dword [ebp - 0x25c], 0
mov byte [ebp - 0x26c], 0
call fcn.00407ed0
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], 0x10
lea eax, [ebp - 0x26c]
push ecx
cmovae eax, dword [ebp - 0x26c]
push 0x20119
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.open_reg_lastError___d
push 0x13
push str.utility::RegKey::RegRegOpen
call fcn.0040c770
add esp, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x258], 0x10
jb 0x40d965
push dword [ebp - 0x26c]
call fcn.004c8900
add esp, 4
test esi, esi
jne 0x40d984
push str.HKEY_CURRENT_USER_SoftwareYandexYandexBrowser_installed
push 0x7d
push str.LDADManager::isYanDexInstalled
call fcn.0040c770
add esp, 0xc
mov bl, 1
jmp 0x40db66
lea ecx, [ebp - 0x23c]
call fcn.00408610
push 0x2d
push str.YandexYandexBrowserApplication_browser.exe
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.00409000
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x23c]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x23c]
je 0x40d9f9
cmp dword [ebp - 0x228], 8
cmovae eax, dword [ebp - 0x23c]
push eax
push str.exist__s
push 0x84
push str.LDADManager::isYanDexInstalled
call fcn.0040c770
add esp, 0x10
mov bl, 1
jmp 0x40db32
cmp dword [ebp - 0x228], 8
cmovae eax, dword [ebp - 0x23c]
push eax
push str.not_exist__s
push 0x87
push str.LDADManager::isYanDexInstalled
call fcn.0040c770
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004de630
add esp, 0x1c
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407200
push 0x2d
push str.YandexYandexBrowserApplication_browser.exe
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.00409000
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x254]
je 0x40dac2
cmp dword [ebp - 0x240], 8
cmovae eax, dword [ebp - 0x254]
push eax
push str.exist__s
push 0x8e
push str.LDADManager::isYanDexInstalled
call fcn.0040c770
add esp, 0x10
mov bl, 1
jmp 0x40dafe
cmp dword [ebp - 0x240], 8
cmovae eax, dword [ebp - 0x254]
push eax
push str.not_exist__s
push 0x91
push str.LDADManager::isYanDexInstalled
call fcn.0040c770
push str.Yandex_not_installed
push 0x93
push str.LDADManager::isYanDexInstalled
call fcn.0040c770
add esp, 0x1c
xor bl, bl
cmp dword [ebp - 0x240], 8
jb 0x40db15
push dword [ebp - 0x254]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
cmp dword [ebp - 0x228], 8
jb 0x40db49
push dword [ebp - 0x23c]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x40db77
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5413
mov esp, ebp
pop ebp
ret