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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642911
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x6ccc30]
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 0x5f67b3
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x5f67b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
xor eax, eax
mov dword [ebp - 0x290], 0
push 0x650080
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.005d2810
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.005d2810
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 0x5f63c5
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 0x5f63da
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28c], 0
cmp byte [ebp + 8], 0
je 0x5f65a7
test bl, bl
jne 0x5f65ab
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 0x5f65ab
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x5f65ab
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 0x5f65ab
cmp dword [ebp - 0x284], eax
je 0x5f65ab
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0061e8c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x5f6594
cmp word [ebp - 0x21c], 0
je 0x5f6594
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x5f6594
push str.BrowserWCChromeExtnmanifest.json
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x5f6594
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f6536
sub ecx, edx
sar ecx, 1
je 0x5f6594
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5f6594
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f6561
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push 0
push 0x650268
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 0x5f674b
test bl, bl
jne 0x5f65b2
xor bl, bl
jmp 0x5f674b
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.005d2810
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 0x5f664d
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x5f664d
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.005d2810
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 0x5f66e8
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x5f66e8
push 0x6503b0
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 0x5f670c
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.005d31d0
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 0x5f674b
inc eax
lea ecx, [ebp - 0x27c]
push eax
push dword [ebp - 0x27c]
call fcn.005d31d0
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x5f676d
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.005d31d0
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 0x5f67af
inc ecx
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x264]
call fcn.005d31d0
mov al, bl
jmp 0x5f67b5
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.005ce525
mov esp, ebp
pop ebp
ret