Function at 0x10016133
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1005e2a0
push 0xffffffffffffffff
push 0x100cc4ac
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10130aa4]
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 0x100dcb82
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.1000dcc0
push 0x100dcc84
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
call fcn.1008a969
add esp, 0xc
test eax, eax
je 0x10016223
cmp dword [ebp - 0x1c], esi
je 0x10016223
push dword [ebp - 0x1c]
call fcn.1006f635
mov ecx, ebx
mov dword [esp], str.2.0
call fcn.10001719
mov esi, dword [ebp - 0x10]
or edi, 0xffffffff
test esi, esi
je 0x100161eb
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x100161eb
mov ecx, esi
call fcn.10001b86
push 0xc
push esi
call fcn.1005e174
pop ecx
pop ecx
mov esi, dword [ebp + 0x1010]
test esi, esi
je 0x10016363
lock xadd dword [esi + 8], edi
dec edi
jne 0x10016363
test esi, esi
je 0x10016363
mov ecx, esi
call fcn.10001b86
push 0xc
push esi
call fcn.1005e174
pop ecx
pop ecx
jmp 0x10016363
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push 0x100dccb0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10016337
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 0x10016337
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
push str.1.9.0
push eax
call fcn.1008f3e4
pop ecx
pop ecx
test eax, eax
js 0x1001630d
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 0x100162a3
lock inc dword [eax + 8]
push ecx
lea eax, [ebp]
mov byte [ebp - 4], 2
mov ecx, esp
push eax
call fcn.10001719
mov byte [ebp - 4], 1
call fcn.10016410
pop ecx
pop ecx
test eax, eax
je 0x1001630d
test esi, esi
je 0x100162ca
mov eax, dword [esi]
jmp 0x100162cc
xor eax, eax
lea ecx, [ebp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100162f5
test dx, dx
je 0x100162f1
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100162f5
add ecx, 4
add eax, 4
test dx, dx
jne 0x100162cf
xor eax, eax
jmp 0x100162fa
sbb eax, eax
or eax, 1
test eax, eax
jle 0x1001630d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.100017b4
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 0x1001626f
jmp 0x1001633a
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], esi
test esi, esi
je 0x10016354
lock inc dword [esi + 8]
mov ecx, esi
call fcn.10001b13
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x10016363
call fcn.10001b13
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.1005e187
add ebp, 0x1004
leave
ret