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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10101a21
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0xc], 0
je 0x10017582
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
call fcn.10008ae0
movzx ecx, al
test ecx, ecx
je 0x1001758c
mov eax, 1
jmp 0x10017848
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
call fcn.10008ae0
movzx edx, al
test edx, edx
jne 0x100175bf
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
call fcn.10007150
mov dword [ebp - 0x228], eax
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x230], 1
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
call fcn.10007150
push eax
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.10006670
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10015780
lea ecx, [ebp - 0x21c]
call fcn.10015840
lea ecx, [ebp - 0x21c]
call fcn.10008ae0
movzx edx, al
test edx, edx
je 0x1001768c
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.10006cb0
mov eax, dword [ebp - 0x234]
jmp 0x10017848
push 0x101100e8
push 1
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10008cf0
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.1001acd0
add esp, 8
mov byte [ebp - 0x221], al
lea ecx, [ebp - 0x23c]
call fcn.10006cb0
movzx edx, byte [ebp - 0x221]
test edx, edx
je 0x1001772e
lea ecx, [ebp - 0x21c]
call fcn.100086a0
sub eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1001b310
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x244]
push edx
lea ecx, [ebp - 0x21c]
call fcn.1000b4d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.10006cb0
push 0x101100ec
push 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1001b310
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.1001acd0
add esp, 8
mov byte [ebp - 0x222], al
lea ecx, [ebp - 0x250]
call fcn.10006cb0
movzx edx, byte [ebp - 0x222]
test edx, edx
je 0x100177d0
lea ecx, [ebp - 0x21c]
call fcn.100086a0
sub eax, 1
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10008cf0
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x258]
push edx
lea ecx, [ebp - 0x21c]
call fcn.1000b4d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.10006cb0
mov ecx, dword [ebp - 0x220]
add ecx, 0x18
call fcn.10008ae0
movzx eax, al
test eax, eax
jne 0x10017818
mov ecx, dword [ebp - 0x220]
add ecx, 0x18
call fcn.10007150
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.1001b110
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.1001b240
lea ecx, [ebp - 0x21c]
call fcn.10007150
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.10006cb0
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret