Function at 0x10066850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009db6b
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x100e6018]
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
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
mov esi, dword [sym.imp.MSVCR110.dll_wcscpy_s]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
lea eax, [ebp - 0x628]
push 0x208
push eax
call esi
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x664], 7
mov dword [ebp - 0x668], 0
mov word [ebp - 0x678], ax
mov dword [ebp - 0x64c], 7
mov dword [ebp - 0x650], eax
mov word [ebp - 0x660], ax
mov dword [ebp - 0x634], 7
mov dword [ebp - 0x638], eax
mov word [ebp - 0x648], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x680], edi
cmp word [ebp - 0x628], ax
jne 0x10066918
xor ecx, ecx
jmp 0x10066930
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066921
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x678]
call fcn.100089b0
push 4
push str.Path
lea ecx, [ebp - 0x660]
call fcn.100089b0
push 0xa
push 0x100b78bc
lea ecx, [ebp - 0x648]
call fcn.100089b0
lea eax, [ebp - 0x680]
push eax
mov byte [ebp - 0x67c], 0
call sym.iImportLib.dll_bool___cdecl_elex::software::GetAppPathByReg_class_elex::software::iCheckApp_const__
test al, al
setne bl
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x10
mov dword [ebp - 0x62c], 0x208
test bl, bl
je 0x10066a33
push dword [0x100e8958]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push str.Path
lea eax, [ebp - 0x628]
push eax
push edi
call sym.iImportLib.dll_bool___cdecl_elex::reg::ReadKeyValueW_struct_HKEY_____wchar_t_const___wchar_t_const___unsigned_long_int__unsigned_char___unsigned_long_int___unsigned_long_int_
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100669e3
sub ecx, edx
sar ecx, 1
je 0x10066ae5
push str.chrome.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10066ae5
mov word [ebp - 0x218], ax
jmp 0x10066ae5
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
lea eax, [ebp - 0x628]
push 0x208
push eax
call esi
add esp, 0xc
call sym.iImportLib.dll_bool___cdecl_elex::os::IsX64System_void_
test al, al
je 0x10066a68
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
lea eax, [ebp - 0x628]
push 0x208
push eax
call esi
add esp, 0xc
push dword [0x100e8958]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push str.InstallLocation
lea eax, [ebp - 0x628]
push eax
push edi
call sym.iImportLib.dll_bool___cdecl_elex::reg::ReadKeyValueW_struct_HKEY_____wchar_t_const___wchar_t_const___unsigned_long_int__unsigned_char___unsigned_long_int___unsigned_long_int_
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066aa0
sub ecx, edx
sar ecx, 1
je 0x10066ae5
push str.chrome.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10066ae3
mov word [ebp - 0x218], ax
mov bl, 1
lea ecx, [ebp - 0x680]
call fcn.10066b10
mov al, bl
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.100947be
mov esp, ebp
pop ebp
ret