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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601e67
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x428], 1
push 0x6508d0
lea ecx, [ebp - 0x42c]
call fcn.0040aca0
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0058a9f0
add esp, 0xc
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x444], 0x104
xor ecx, ecx
mov byte [ebp - 0x421], cl
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
push ecx
push str.InstallDir
lea ecx, [ebp - 0x421]
call fcn.0041d350
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x41d0e2
mov dword [ebp - 0x428], 2
jmp 0x41d2e4
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ac60
xor eax, eax
mov byte [ebp - 0x422], al
lea ecx, [ebp - 0x422]
call fcn.0041d4d0
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d132
mov dword [ebp - 0x428], 2
jmp 0x41d2e4
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0058a9f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [0x689dbc]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x434]
call fcn.0040f160
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040aca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.0040c450
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x438]
call fcn.0040ac80
lea ecx, [ebp - 0x430]
call fcn.0040f160
mov byte [ebp - 4], 3
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040aca0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.0040c450
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x43c]
call fcn.0040ac80
lea ecx, [ebp - 0x430]
call fcn.0040f180
movzx eax, al
test eax, eax
je 0x41d234
mov dword [ebp - 0x428], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.0040ac80
jmp 0x41d2e4
lea ecx, [ebp - 0x434]
call fcn.0040f210
push eax
lea ecx, [ebp - 0x430]
call fcn.0040f210
push eax
call fcn.00440ef0
add esp, 8
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jge 0x41d27f
push 0x650908
lea ecx, [ebp - 0x42c]
call fcn.0040ac60
mov dword [ebp - 0x428], 0xffffffff
jmp 0x41d2be
cmp dword [ebp - 0x440], 0
jne 0x41d2a4
push 0x65090c
lea ecx, [ebp - 0x42c]
call fcn.0040ac60
mov dword [ebp - 0x428], 0
jmp 0x41d2be
mov dword [ebp - 0x428], 1
push 0x650910
lea ecx, [ebp - 0x42c]
call fcn.0040ac60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.0040ac80
xor ecx, ecx
jne 0x41d06c
lea ecx, [ebp - 0x42c]
call fcn.0040f210
push eax
call fcn.0043d410
add esp, 4
lea ecx, [ebp - 0x42c]
call fcn.0040ae20
push eax
call fcn.0040a960
mov ecx, eax
call fcn.0041cbf0
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x44c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040ac80
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret