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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
push dword [0x41c5cc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b004
push 0x3f
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x11a]
mov word [ebp - 0x11c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4162cc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push str.Software360ChromeUpdateClients27D39816_7A3D_406c_9ABC_97FB55674016
push 0x80000001
mov dword [ebp - 0x1c], 0x7f
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40aeba
lea ecx, [ebp - 0x10]
call fcn.0040b680
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 0x10], ecx
jne 0x40aeba
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x418e3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aeba
lea eax, [ebp - 0x11c]
test eax, eax
je 0x40ae73
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.004039b5
lea ecx, [ebp - 4]
call fcn.0040b7a7
lea ecx, [ebp - 4]
call fcn.0040b756
lea eax, [ebp - 4]
mov ecx, 0x41c5d0
push eax
call fcn.00403443
mov eax, dword [0x41c5cc]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
cmp eax, esi
pop ecx
jne 0x40af11
or eax, 0xffffffff
jmp 0x40af19
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], si
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push eax
push dword [0x41c5cc]
call fcn.0040bf6f
add esp, 0xc
test eax, eax
je 0x40aff4
lea eax, [ebp - 0x21c]
test eax, eax
je 0x40af06
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x21c]
jmp 0x40ae79
sub eax, dword [0x41c5cc]
sar eax, 1
inc eax
mov ecx, 0x41c5cc
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00403f42
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push dword [eax - 8]
call fcn.004039f4
push dword [ebp - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x40b015
lea eax, [ebp - 0xc]
push str.Localesen_us.dll
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040b954
lea eax, [ebp - 0xc]
push str.Localeszh_cn.dll
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b954
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 5
pop ecx
jl 0x40afc5
lea eax, [ebp - 0xc]
push str.Localesen_us.pak
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b954
push eax
lea ecx, [ebp - 8]
call fcn.00403443
lea ecx, [ebp - 0x18]
call fcn.00403948
lea eax, [ebp - 0xc]
push str.Localeszh_cn.pak
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b954
push eax
lea ecx, [ebp - 0x14]
call fcn.00403443
lea ecx, [ebp - 0x18]
call fcn.00403948
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40afd3
lea ecx, [ebp - 0x14]
jmp 0x40afdf
push dword [ebp - 0x14]
call edi
test eax, eax
lea ecx, [ebp - 0x14]
jne 0x40b008
call fcn.00403948
lea ecx, [ebp - 8]
call fcn.00403948
lea ecx, [ebp - 0xc]
call fcn.00403948
lea ecx, [ebp - 4]
call fcn.00403948
lea ecx, [ebp - 0x10]
call fcn.0040b680
mov al, 1
jmp 0x40b035
call fcn.00403948
lea ecx, [ebp - 8]
call fcn.00403948
lea ecx, [ebp - 0xc]
call fcn.00403948
lea ecx, [ebp - 4]
call fcn.00403948
cmp dword [ebp - 0x10], esi
je 0x40b033
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
leave
ret