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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52629c
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x5898bc]
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.004b2720
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 0x53ec84
call fcn.0041b900
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x41e7a7
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.0040afe0
test al, al
jne 0x41e532
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e510
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.0040a830
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004b2720
add esp, 0xc
lea ecx, [ebp - 0x62a]
call fcn.0041c690
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 0x41e59d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x41e73b
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004b2720
mov eax, dword [0x58d39c]
add esp, 0xc
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x644], 0x104
test al, 1
jne 0x41e5e5
or eax, 1
mov dword [0x58d398], ebx
mov dword [0x58d39c], eax
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 2
push eax
call fcn.00472b55
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 0x41a990
push 0x58d398
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x41e776
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 4
push eax
call fcn.00472b8f
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 0x58d3a0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41e73b
mov eax, dword [0x58d3d8]
test al, 1
jne 0x41e6a9
or eax, 1
mov dword [0x58d3d4], 0
mov dword [0x58d3d8], eax
mov byte [ebp - 0x62a], 0
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 7
push eax
call fcn.00472b55
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 0x41aad0
push 0x58d3d4
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x41e759
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 9
push eax
call fcn.00472b8f
add esp, 4
lea eax, [ebp - 0x420]
push 0x58d3dc
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.00498678
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0xa
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 8
test al, al
je 0x41e7c7
jmp 0x41e7b1
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 5
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 3
test al, al
je 0x41e7c7
sub esp, 8
lea eax, [ebp - 0x640]
mov ecx, esp
push eax
call fcn.00408860
call fcn.0040ae00
push 0x80004005
call fcn.00408fc0
sub esp, 8
lea eax, [ebp - 0x634]
mov ecx, esp
push eax
call fcn.00408860
call fcn.0040ae00
call fcn.00473bfc
int3