Function at 0x404ce0
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
push 0
push 0x445d4c
mov edi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x404d64
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push 0x445d4c
push SysReAllocStringLen
call esi
test eax, eax
jne 0x404db4
push 0x103
lea edx, [esp + 0x129]
push 0
push edx
mov byte [esp + 0x130], 0
call fcn.0042b460
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x128]
push ecx
push 0
push 0
push str.DisplayVersion
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404ff3
lea ebx, [esp + 0x5c]
call fcn.00407570
xor ebx, ebx
mov dword [esp + 0x240], ebx
mov eax, dword [esp + 0x70]
push 0x445d34
xor edi, edi
lea ecx, [esp + 0x60]
call fcn.0040ec00
test eax, eax
je 0x404fdb
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x404df1
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404fdb
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 0x404e96
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 0x404f90
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 0x404f80
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 0x405019
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 0x404fc3
mov eax, dword [esp + 0x7c]
push eax
call fcn.00438d27
add esp, 4
cmp dword [esp + 0x74], 8
jb 0x404fef
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x40501b
cmp dword [esp + 0x74], 8
jb 0x404fef
mov edx, dword [esp + 0x60]
push edx
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x40501b
lea eax, [esp + 0x124]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405000
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