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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52245c
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x579630]
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, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x290]
push eax
push 0x20019
push 0
push str.SOFTWAREGoogleChrome_
push 0x80000001
mov byte [ebp - 0x291], 0
mov dword [ebp - 0x290], 0
call edi
test eax, eax
jne 0x465d65
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x465d65
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push 0x42
xor eax, eax
mov dword [ebp - 0x290], 0
push str.SOFTWAREGoogleChromeExtensionsefaidnbmnnnibpcajpcglclefindmkaj
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
call fcn.00407750
push 0x4f
xor eax, eax
mov dword [ebp - 4], 0
push str.SOFTWAREGoogleChromeNativeMessagingHostscom.adobe.acrobat.chrome_webcapture
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.00407750
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 1
push ecx
push 0x20019
xor bl, bl
mov dword [ebp - 0x288], 0
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 0
cmovae eax, dword [ebp - 0x24c]
push eax
push 0x80000002
call edi
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 edi
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 0x4659f6
test ecx, ecx
movzx ebx, bl
mov edx, 1
push eax
cmovne ebx, edx
call esi
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x288], 0
test ecx, ecx
je 0x465a07
push ecx
call esi
mov dword [ebp - 0x28c], 0
cmp byte [ebp + 8], 0
je 0x465bd0
test bl, bl
jne 0x465bd4
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x284]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000001
mov dword [ebp - 0x284], 0
call edi
test eax, eax
jne 0x465d10
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x465d10
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 - 0x284]
call esi
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x280]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x284], 0
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push 0x80000001
mov dword [ebp - 0x280], 0
call edi
test eax, eax
jne 0x465d16
cmp dword [ebp - 0x280], eax
je 0x465d16
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x465bc3
cmp word [ebp - 0x21c], 0
je 0x465bc3
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x465bc3
push str.BrowserWCChromeExtnmanifest.json
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x465bc3
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465b64
sub ecx, edx
sar ecx, 1
je 0x465bc3
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x465bc3
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465b90
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push 0
push 0x52d9b8
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x280]
call esi
jmp 0x465d16
test bl, bl
jne 0x465bdb
xor bl, bl
jmp 0x465d16
push str.SOFTWAREGoogleChromeExtensions_
lea ecx, [ebp - 0x27c]
call fcn.004076f0
cmp dword [ebp - 0x268], 8
lea ecx, [ebp - 0x280]
push ecx
push 0x20006
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x27c]
push 0
push eax
push 0x80000001
mov dword [ebp - 0x280], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x465c51
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x465c51
push str.efaidnbmnnnibpcajpcglclefindmkaj
push eax
call ebx
push dword [ebp - 0x280]
call esi
mov dword [ebp - 0x280], 0
push str.SOFTWAREGoogleChromeNativeMessagingHosts_
lea ecx, [ebp - 0x264]
call fcn.004076f0
cmp dword [ebp - 0x250], 8
lea ecx, [ebp - 0x284]
push ecx
push 0x20006
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x264]
push 0
push eax
push 0x80000001
mov dword [ebp - 0x284], 0
call edi
test eax, eax
jne 0x465cc1
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x465cc1
push str.com.adobe.acrobat.chrome_webcapture
push eax
call ebx
push dword [ebp - 0x284]
call esi
mov dword [ebp - 0x284], 0
cmp dword [ebp - 0x250], 8
mov bl, 1
jb 0x465cda
push dword [ebp - 0x264]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x250], 7
cmp dword [ebp - 0x268], 8
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
jb 0x465d16
push dword [ebp - 0x27c]
call fcn.004085be
add esp, 4
jmp 0x465d16
mov bl, byte [ebp - 0x291]
cmp dword [ebp - 0x220], 8
jb 0x465d2d
push dword [ebp - 0x234]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
cmp dword [ebp - 0x238], 8
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
jb 0x465d61
push dword [ebp - 0x24c]
call fcn.004085be
add esp, 4
mov al, bl
jmp 0x465d67
xor al, al
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.00401590
mov esp, ebp
pop ebp
ret