Function at 0x10009eb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037698
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10046ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
mov edx, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10009f28
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020192
mov edx, dword [0x10046a68]
mov esi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x10046a68
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], eax
jbe 0x1000a01d
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
push esi
mov dword [ebp - 0x18], eax
call fcn.10021fb0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000a069
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [eax]
mov ecx, esi
call fcn.10009dc0
mov edi, dword [ebp + 8]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x1000a00d
js 0x10009fe4
push 0x1003deb8
push edi
call fcn.10020ec9
add esp, 8
test eax, eax
je 0x10009fe4
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x1000a00d
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
push ecx
lea ecx, [ebp + 8]
call fcn.1000dc20
add esp, 4
cmp dword [ebx + 4], eax
setne al
test al, al
jne 0x1000a00d
lea ecx, [ebp + 8]
push ecx
mov ecx, ebx
call fcn.10008ca0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jb 0x10009f75
push esi
call fcn.1002093d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1000a055
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1002093d
add edi, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a055
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8