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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442502
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x452284]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x452284]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0xf023f
xor ebx, ebx
push ebx
push 0x445e08
mov edi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x405784
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push 0x445e08
push SysReAllocStringLen
call esi
cmp eax, ebx
jne 0x4057d0
push 0x103
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0x130], bl
call fcn.0042b460
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x128]
push ecx
push ebx
push ebx
push str.DisplayVersion
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x405a0c
push ebx
lea esi, [esp + 0x60]
call fcn.004072d0
mov dword [esp + 0x240], ebx
mov eax, dword [esp + 0x70]
push 0x445d34
xor edi, edi
mov ecx, esi
call fcn.0040ec00
test eax, eax
je 0x4059f4
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x40580a
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4059f4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x80]
call fcn.00402780
lea ebx, [esp + 0x94]
call fcn.00408f60
add esp, 0x1c
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x244], 1
call fcn.00418dc0
and dword [esp + 0x24], 0xfffffe00
xor edi, edi
mov dword [esp + 0x28], edi
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x80]
mov bl, 4
push edx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x24c], bl
call fcn.00402610
mov eax, dword [esp + 0xd8]
mov esi, 0x10
cmp dword [esp + 0xec], esi
jae 0x4058af
lea eax, [esp + 0xd8]
mov ecx, dword [esp + 0xe8]
lea edx, [esp + 0x1c]
push edx
add ecx, eax
push ecx
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.00418e80
test al, al
je 0x4059a9
and dword [esp + 0x34], 0xfffffe00
mov dword [esp + 0x38], edi
push str.extensions
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x248], 6
call fcn.004171f0
push str.last_chrome_version
push eax
call fcn.004171f0
push eax
lea ecx, [esp + 0x30]
call fcn.00416760
test al, al
jne 0x405999
push str.extensions
lea edx, [esp + 0x20]
push edx
call fcn.004171f0
push str.last_chrome_version
push eax
call fcn.004171f0
lea esi, [esp + 0x40]
mov ecx, eax
call fcn.00416850
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edi
push eax
mov byte [esp + 0x24c], 7
call fcn.00402610
mov ecx, esi
call fcn.00402540
lea eax, [esp + 0x2c]
mov byte [esp + 0x240], bl
call fcn.004165e0
lea eax, [esp + 0x1c]
mov byte [esp + 0x240], 2
call fcn.004165e0
lea edi, [esp + 0x94]
call fcn.004049b0
lea ecx, [esp + 0x78]
call fcn.00402540
lea esi, [esp + 0x5c]
call fcn.004025e0
jmp 0x405a2f
lea eax, [esp + 0x2c]
mov byte [esp + 0x240], bl
call fcn.004165e0
lea eax, [esp + 0x1c]
mov byte [esp + 0x240], 2
call fcn.004165e0
lea edi, [esp + 0x94]
call fcn.004049b0
cmp dword [esp + 0x90], esi
jb 0x4059dc
mov eax, dword [esp + 0x7c]
push eax
call fcn.00438d27
add esp, 4
cmp dword [esp + 0x74], 8
jb 0x405a08
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x405a31
cmp dword [esp + 0x74], 8
jb 0x405a08
mov edx, dword [esp + 0x60]
push edx
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x405a31
lea eax, [esp + 0x124]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405a16
sub eax, edx
push eax
lea eax, [esp + 0x128]
push eax
mov ecx, edi
call fcn.00402850
mov al, 1
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00425608
mov esp, ebp
pop ebp
ret