Function at 0x40193d
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.00402df4
cmp eax, ebx
jne 0x401b15
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.00402e29
cmp eax, ebx
je 0x4019a2
lea eax, [ebp - 0x68]
push str.0x0409
push eax
call fcn.00403970
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.00402df4
cmp eax, ebx
jne 0x401b03
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.00402e29
cmp eax, ebx
jne 0x401a30
lea eax, [ebp - 0x34]
push esi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call fcn.00402df4
cmp eax, ebx
jne 0x401a1c
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.00402e29
cmp eax, ebx
jne 0x401a14
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x14]
call fcn.00402d8f
cmp dword [ebp - 0xc], ebx
jge 0x401a28
mov dword [ebp - 0xc], 0x80041004
lea ecx, [ebp - 0x14]
jmp 0x401af6
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 0x401aae
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00403950
add esp, 0xc
cmp eax, ebx
je 0x401a8d
cmp eax, 0xffffffff
je 0x401a8d
cmp eax, dword [ebp - 0x18]
jb 0x401a8d
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.00403620
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 0x401a52
cmp dword [ebp - 0x18], ebx
je 0x401afb
lea eax, [ebp - 0x48]
push esi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call fcn.00402df4
cmp eax, ebx
jne 0x401af3
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.00402e29
cmp eax, ebx
jne 0x401aeb
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x14]
call fcn.00402d8f
lea ecx, [ebp - 0x14]
call fcn.00402d8f
lea ecx, [ebp - 8]
call fcn.00402d8f
lea ecx, [ebp - 0x10]
call fcn.00402d8f
lea ecx, [ebp - 8]
call fcn.00402d8f
jmp 0x401b1c
mov dword [ebp - 0xc], 0x80041002
cmp dword [ebp - 0xc], ebx
jl 0x401b44
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b37
test al, 0x10
jne 0x401b37
mov al, 1
jmp 0x401b39
xor al, al
cmp al, bl
jne 0x401b44
mov dword [ebp - 0xc], 0x80041001
lea ecx, [ebp - 0x10]
call fcn.00402d8f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret