Function at 0x40b7e0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46237e
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4785d0]
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 1
push 0x41
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
call fcn.00407c90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40b877
push eax
call ebx
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push 0
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x11c], 0
call esi
test eax, eax
je 0x40b8f2
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x40b8be
push eax
call ebx
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], 0
call esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x158], 1
test esi, esi
je 0x40ba63
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.00420820
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x138]
push eax
push 0
push str.InstallLocation
push esi
mov dword [ebp - 0x13c], 0x104
mov dword [ebp - 0x138], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ba5d
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], eax
mov byte [ebp - 0x170], al
cmp byte [ebp - 0x118], al
jne 0x40b999
xor ecx, ecx
jmp 0x40b9ab
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b9a2
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x170]
call fcn.00407c90
push 0x46d1cc
lea edx, [ebp - 0x170]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 3
call fcn.004089f0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x15c], 0x10
jb 0x40b9f6
push dword [ebp - 0x170]
call fcn.0041a4c1
add esp, 4
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x154]
cmovae eax, dword [ebp - 0x154]
push eax
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ba46
lea eax, [ebp - 0x154]
cmp edi, eax
je 0x40ba46
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407060
cmp dword [ebp - 0x140], 0x10
jb 0x40ba5d
push dword [ebp - 0x154]
call fcn.0041a4c1
add esp, 4
mov esi, dword [ebp - 0x11c]
cmp dword [ebp - 0x120], 0x10
jb 0x40ba80
push dword [ebp - 0x134]
call fcn.0041a4c1
mov esi, dword [ebp - 0x11c]
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
test esi, esi
je 0x40baa2
push esi
call ebx
mov eax, edi
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.00419056
mov esp, ebp
pop ebp
ret