Function at 0x4861e0
Capabilities:
Check if file exists
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5746ec
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0
push eax
push 0x20019
push 0
push str.SOFTWAREGoogleChrome_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486773
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x486773
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
xor eax, eax
mov dword [ebp - 0x290], 0
push 0x587048
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.00408f30
push 0x4f
xor eax, eax
mov dword [ebp - 4], 0
push str.SOFTWAREGoogleChromeNativeMessagingHostscom.adobe.acrobat.chrome_webcapture
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00408f30
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 1
push ecx
push 0x20019
xor bl, bl
mov dword [ebp - 0x288], 0
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
push 0
cmovae eax, dword [ebp - 0x264]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x288]
xor edx, edx
test eax, eax
mov dword [ebp - 0x28c], edx
lea eax, [ebp - 0x234]
cmovne ecx, edx
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x288], ecx
lea ecx, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x234]
push ecx
push 0x20019
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x28c]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x288]
cmovne ecx, edx
mov dword [ebp - 0x28c], ecx
test eax, eax
je 0x486385
test ecx, ecx
movzx ebx, bl
mov edx, 1
push eax
cmovne ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x288], 0
test ecx, ecx
je 0x48639a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28c], 0
cmp byte [ebp + 8], 0
je 0x486567
test bl, bl
jne 0x48656b
cmp dword [ebp - 0x250], 8
lea ecx, [ebp - 0x280]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmovae eax, dword [ebp - 0x264]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48656b
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x48656b
push 0x60
push str.https:__clients2.google.com_service_update2_crx
push 1
push 0
push str.update_url
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x284]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x280], 0
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push 0x80000001
mov dword [ebp - 0x284], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48656b
cmp dword [ebp - 0x284], eax
je 0x48656b
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x486554
cmp word [ebp - 0x21c], 0
je 0x486554
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x486554
push str.BrowserWCChromeExtnmanifest.json
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x486554
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4864f6
sub ecx, edx
sar ecx, 1
je 0x486554
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486554
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486521
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push 0
push 0x587230
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x48670b
test bl, bl
jne 0x486572
xor bl, bl
jmp 0x48670b
push 0x22
xor eax, eax
mov dword [ebp - 0x26c], 0
push str.SOFTWAREGoogleChromeExtensions_
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
call fcn.00408f30
cmp dword [ebp - 0x268], 8
lea ecx, [ebp - 0x284]
push ecx
push 0x20006
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x27c]
push 0
push eax
push 0x80000001
mov dword [ebp - 0x284], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48660d
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x48660d
push str.efaidnbmnnnibpcajpcglclefindmkaj
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x284], 0
push 0x2c
xor eax, eax
mov dword [ebp - 0x23c], 0
push str.SOFTWAREGoogleChromeNativeMessagingHosts_
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00408f30
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x280]
push ecx
push 0x20006
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x24c]
push 0
push eax
push 0x80000001
mov dword [ebp - 0x280], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4866a8
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4866a8
push 0x587378
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x280], 0
mov bl, 1
mov eax, dword [ebp - 0x238]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4866cc
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov eax, dword [ebp - 0x268]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x48670b
inc eax
lea ecx, [ebp - 0x27c]
push eax
push dword [ebp - 0x27c]
call fcn.0040a2e0
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x48672d
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 4], 9
cmp ecx, 8
jb 0x48676f
inc ecx
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x264]
call fcn.0040a2e0
mov al, bl
jmp 0x486775
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret