Function at 0x10016fb1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x10068a8d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x100c]
xor esi, esi
mov dword [ebp - 0x18], ebx
push 0x1007ac2a
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.100127e8
push str.FORCED_FX_ROOT
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
call fcn.1004aa3f
add esp, 0xc
test eax, eax
je 0x100170a1
cmp dword [ebp - 0x1c], esi
je 0x100170a1
push dword [ebp - 0x1c]
call fcn.100411f4
mov ecx, ebx
mov dword [esp], str.2.0
call fcn.1000154d
mov esi, dword [ebp - 0x10]
or edi, 0xffffffff
test esi, esi
je 0x10017069
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10017069
mov ecx, esi
call fcn.10001703
push 0xc
push esi
call fcn.1003b0f2
pop ecx
pop ecx
mov esi, dword [ebp + 0x1010]
test esi, esi
je 0x100171e1
lock xadd dword [esi + 8], edi
dec edi
jne 0x100171e1
test esi, esi
je 0x100171e1
mov ecx, esi
call fcn.10001703
push 0xc
push esi
call fcn.1003b0f2
pop ecx
pop ecx
jmp 0x100171e1
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push 0x1007ae54
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100171b5
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x800
push eax
lea eax, [ebp]
mov edi, esi
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100171b5
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
push str.1.9.0
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
js 0x1001718b
mov eax, dword [ebp + 0x1010]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x1010]
test eax, eax
je 0x10017121
lock inc dword [eax + 8]
push ecx
lea eax, [ebp]
mov byte [ebp - 4], 2
mov ecx, esp
push eax
call fcn.1000154d
mov byte [ebp - 4], 1
call fcn.10017206
pop ecx
pop ecx
test eax, eax
je 0x1001718b
test esi, esi
je 0x10017148
mov eax, dword [esi]
jmp 0x1001714a
xor eax, eax
lea ecx, [ebp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10017173
test dx, dx
je 0x1001716f
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10017173
add ecx, 4
add eax, 4
test dx, dx
jne 0x1001714d
xor eax, eax
jmp 0x10017178
sbb eax, eax
or eax, 1
test eax, eax
jle 0x1001718b
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.100015d8
mov esi, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x14], 0x800
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x14]
inc edi
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100170ed
jmp 0x100171b8
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], esi
test esi, esi
je 0x100171d2
lock inc dword [esi + 8]
mov ecx, esi
call fcn.100016dc
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x100171e1
call fcn.100016dc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x1004
leave
ret