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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c03c
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x5867ec]
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.004b8590
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 0x543334
call fcn.0041d030
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0040d1a0
mov ecx, eax
test ecx, ecx
je 0x41fe87
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.0040c630
test al, al
jne 0x41fc12
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fbf0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.0040bf90
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004b8590
add esp, 0xc
lea ecx, [ebp - 0x62a]
call fcn.0041ddc0
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 0x41fc7d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x41fe1b
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004b8590
mov eax, dword [0x58a27c]
add esp, 0xc
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x644], 0x104
test al, 1
jne 0x41fcc5
or eax, 1
mov dword [0x58a278], ebx
mov dword [0x58a27c], eax
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 2
push eax
call fcn.00473ac5
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 0x41c0c0
push 0x58a278
call fcn.00474a9b
add esp, 0x10
test eax, eax
je 0x41fe56
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 4
push eax
call fcn.00473aff
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 0x58a280
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41fe1b
mov eax, dword [0x58a2b8]
test al, 1
jne 0x41fd89
or eax, 1
mov dword [0x58a2b4], 0
mov dword [0x58a2b8], eax
mov byte [ebp - 0x62a], 0
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 7
push eax
call fcn.00473ac5
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 0x41c200
push 0x58a2b4
call fcn.00474a9b
add esp, 0x10
test eax, eax
je 0x41fe39
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 9
push eax
call fcn.00473aff
add esp, 4
lea eax, [ebp - 0x420]
push 0x58a2bc
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.004994d8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0xa
push eax
call fcn.00473b41
add esp, 4
mov byte [ebp - 4], 8
test al, al
je 0x41fea7
jmp 0x41fe91
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 5
push eax
call fcn.00473b41
add esp, 4
mov byte [ebp - 4], 3
test al, al
je 0x41fea7
sub esp, 8
lea eax, [ebp - 0x640]
mov ecx, esp
push eax
call fcn.0040a040
call fcn.0040c450
push 0x80004005
call fcn.0040a780
sub esp, 8
lea eax, [ebp - 0x634]
mov ecx, esp
push eax
call fcn.0040a040
call fcn.0040c450
call fcn.00474b6c
int3