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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5347bc
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x5917ec]
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
push 0x208
lea eax, [ebp - 0x218]
mov edi, 1
push 0
push eax
mov dword [ebp - 0x638], edi
call fcn.004c0d00
add esp, 0xc
mov dword [ebp - 0x63c], 0x104
lea eax, [ebp - 0x63c]
lea ecx, [ebp - 0x629]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x638]
push eax
push 0x54d334
call fcn.0041ec70
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0040edf0
mov ecx, eax
test ecx, ecx
je 0x421ac7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x630]
call fcn.0040e280
test al, al
jne 0x421852
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421830
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.0040dbe0
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea ecx, [ebp - 0x62a]
call fcn.0041fa00
mov esi, dword [ebp - 0x630]
push eax
push esi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4218bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x421a5b
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004c0d00
mov eax, dword [0x59527c]
add esp, 0xc
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x644], 0x104
test al, 1
jne 0x421905
or eax, 1
mov dword [0x595278], ebx
mov dword [0x59527c], eax
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 2
push eax
call fcn.00475ea5
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 3
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x629]
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x650]
push eax
push 0x41dd00
push 0x595278
call fcn.00476e7d
add esp, 0x10
test eax, eax
je 0x421a96
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 4
push eax
call fcn.00475edf
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x648]
push eax
push str.InstallDir
push 0x595280
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x421a5b
mov eax, dword [0x5952b8]
test al, 1
jne 0x4219c9
or eax, 1
mov dword [0x5952b4], 0
mov dword [0x5952b8], eax
mov byte [ebp - 0x62a], 0
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 7
push eax
call fcn.00475ea5
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 8
mov dword [ebp - 0x658], eax
lea eax, [ebp - 0x62a]
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x658]
push eax
push 0x41de40
push 0x5952b4
call fcn.00476e7d
add esp, 0x10
test eax, eax
je 0x421a79
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 9
push eax
call fcn.00475edf
add esp, 4
lea eax, [ebp - 0x420]
push 0x5952bc
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
mov eax, edi
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.0049b8b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0xa
push eax
call fcn.00475f21
add esp, 4
mov byte [ebp - 4], 8
test al, al
je 0x421ae7
jmp 0x421ad1
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 5
push eax
call fcn.00475f21
add esp, 4
mov byte [ebp - 4], 3
test al, al
je 0x421ae7
sub esp, 8
lea eax, [ebp - 0x640]
mov ecx, esp
push eax
call fcn.0040bca0
call fcn.0040e0a0
push 0x80004005
call fcn.0040c3e0
sub esp, 8
lea eax, [ebp - 0x634]
mov ecx, esp
push eax
call fcn.0040bca0
call fcn.0040e0a0
call fcn.00476f4e
int3