Function at 0x402610
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405396
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x409034]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2e8], ebx
mov edx, dword [section..data]
mov dword [ebp - 0x2ec], eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x2e4], eax
lea ecx, [ebp - 0x2e8]
push ecx
push 0xf023f
push ebx
push str.SoftwareKGChromePlugin_
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.MSVCR100.dll_wcsstr]
cmp eax, ebx
jne 0x40271b
push 0xc8
lea edx, [ebp - 0xd8]
push ebx
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x2e8]
add esp, 0xc
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push ebx
push ebx
push 0x40637c
push edx
mov dword [ebp - 0x2f4], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40271b
lea eax, [ebp - 0xd8]
push eax
push 0x4063b4
lea edi, [ebp - 0x2e4]
call fcn.00403b70
mov edi, dword [ebp - 0x2e4]
add esp, 8
cmp dword [edi - 0xc], ebx
jl 0x40271b
push 0x4063bc
push edi
call esi
add esp, 8
cmp eax, ebx
je 0x40271b
sub eax, edi
sar eax, 1
cmp eax, ebx
jg 0x402813
push ebx
push 0x26
lea eax, [ebp - 0x2e0]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2e0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402735
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x2e0]
push ecx
mov edi, eax
lea ebx, [ebp - 0x2e4]
call fcn.00401cf0
push 0xf
push str.KGChromePlugin
call fcn.00403ab0
mov edi, dword [ebp - 0x2e4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
jne 0x402813
mov eax, dword [edi - 0xc]
test eax, eax
js 0x4027aa
push str.Program_Files__x86_
push edi
call esi
add esp, 8
test eax, eax
je 0x4027aa
sub eax, edi
sar eax, 1
js 0x4027aa
push str.Program_Files
push str.Program_Files__x86_
lea edx, [ebp - 0x2e4]
push edx
jmp 0x4027bb
push str.Program_Files__x86_
push str.Program_Files
lea eax, [ebp - 0x2e4]
push eax
call fcn.004037a0
mov edi, dword [ebp - 0x2e4]
push edi
call ebx
test eax, eax
jne 0x402813
lea ecx, [ebp - 0x2f0]
call fcn.00403cc0
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 1
call fcn.004019f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2f0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40280d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x2e4]
add edi, 0xfffffff0
mov eax, edi
call fcn.00401e80
mov esi, dword [ebp - 0x2ec]
or edx, 0xffffffff
add eax, 0x10
mov dword [ebp - 4], edx
lea ecx, [edi + 0xc]
mov dword [esi], eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402844
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, esi
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.00404834
mov esp, ebp
pop ebp
ret