Function at 0x40198e
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, 0xf003f
push edi
push esi
xor ebx, ebx
push str.SOFTWAREMicrosoftHTML_Help_CollectionsDeveloper_Collections
push 0x80000002
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0x80041003
mov dword [ebp - 0x10], ebx
call fcn.00402e45
cmp eax, ebx
jne 0x401b66
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x68]
push str.Language
push eax
mov dword [ebp - 4], 0x20
call fcn.00402e7a
cmp eax, ebx
je 0x4019f3
lea eax, [ebp - 0x68]
push str.0x0409
push eax
call fcn.00403580
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push esi
push eax
lea ecx, [ebp - 8]
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call fcn.00402e45
cmp eax, ebx
jne 0x401b54
push 0x14
lea eax, [ebp - 4]
pop edi
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push str.Preferred
push eax
mov dword [ebp - 4], edi
call fcn.00402e7a
cmp eax, ebx
jne 0x401a81
lea eax, [ebp - 0x34]
push esi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call fcn.00402e45
cmp eax, ebx
jne 0x401a6d
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.Filename
push dword [ebp + 8]
call fcn.00402e7a
cmp eax, ebx
jne 0x401a65
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x14]
call fcn.00402de0
cmp dword [ebp - 0xc], ebx
jge 0x401a79
mov dword [ebp - 0xc], 0x80041004
lea ecx, [ebp - 0x14]
jmp 0x401b47
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push eax
push ebx
push ebx
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x401aff
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00403a90
add esp, 0xc
cmp eax, ebx
je 0x401ade
cmp eax, 0xffffffff
je 0x401ade
cmp eax, dword [ebp - 0x18]
jb 0x401ade
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00403760
add esp, 0xc
lea eax, [ebp - 0x20]
inc dword [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0x14
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
jmp 0x401aa3
cmp dword [ebp - 0x18], ebx
je 0x401b4c
lea eax, [ebp - 0x48]
push esi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call fcn.00402e45
cmp eax, ebx
jne 0x401b44
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.Filename
push dword [ebp + 8]
call fcn.00402e7a
cmp eax, ebx
jne 0x401b3c
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x14]
call fcn.00402de0
lea ecx, [ebp - 0x14]
call fcn.00402de0
lea ecx, [ebp - 8]
call fcn.00402de0
lea ecx, [ebp - 0x10]
call fcn.00402de0
lea ecx, [ebp - 8]
call fcn.00402de0
jmp 0x401b6d
mov dword [ebp - 0xc], 0x80041002
cmp dword [ebp - 0xc], ebx
jl 0x401b95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b88
test al, 0x10
jne 0x401b88
mov al, 1
jmp 0x401b8a
xor al, al
cmp al, bl
jne 0x401b95
mov dword [ebp - 0xc], 0x80041001
lea ecx, [ebp - 0x10]
call fcn.00402de0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret