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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f7d6
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x648], edi
lea eax, [ebp - 0x62c]
push eax
push 0x20219
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov dword [ebp - 4], edi
push ecx
mov dword [ebp - 0x62c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10082187
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x650], eax
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
mov dword [ebp - 0x64c], 0x200
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x628]
push eax
push str.InstallLocation
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x62c], 0x410
call fcn.10081ef0
test eax, eax
je 0x100821b1
mov edi, dword [ebp - 0x650]
xor esi, esi
test edi, edi
je 0x10082194
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x644]
call fcn.10008550
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x62c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x62c], 0x5c
call fcn.10016c40
push eax
push 0
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x644]
call fcn.10011440
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov esi, eax
lea eax, [ebp - 0x644]
cmp eax, esi
je 0x1008224b
cmp dword [ebp - 0x630], 8
jb 0x10082222
push dword [ebp - 0x644]
call edi
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], ax
call fcn.1000d5d0
cmp dword [ebp - 0x654], 8
jb 0x1008225f
push dword [ebp - 0x668]
call edi
add esp, 4
push 0x1e
push str.User_DataDefaultPreferences
lea ecx, [ebp - 0x644]
call fcn.10011f70
cmp dword [ebp - 0x630], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
call esi
test eax, eax
jne 0x10082333
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1008232f
push str.GoogleChrome
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 esi
test eax, eax
je 0x1008232f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x644]
call fcn.100085e0
push str.User_DataDefaultPreferences
lea ecx, [ebp - 0x644]
call fcn.10011f20
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
call esi
test eax, eax
jne 0x10082333
xor esi, esi
jmp 0x10082338
mov esi, 1
cmp dword [ebp - 0x630], 8
jb 0x1008234c
push dword [ebp - 0x644]
call edi
add esp, 4
mov edi, dword [ebp - 0x650]
xor eax, eax
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], ax
jmp 0x10082189