Function at 0x1000c060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025828
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100365e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x14]
push ebx
push 0x1002e5a0
mov ecx, edi
mov byte [ebp - 4], 2
mov byte [ebp - 0xd], 1
call fcn.10001980
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
or eax, 0x20019
push eax
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.1000b3a0
test eax, eax
je 0x1000c138
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x1000c0da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c0fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
lea ecx, [ebp + 0x14]
push ecx
push ebx
lea edx, [ebp + 8]
push edx
push ebx
push eax
push esi
mov dword [ebp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000c196
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x1000c164
cmp eax, 2
jne 0x1000c196
mov eax, dword [ebp + 0x14]
shr eax, 1
mov dword [ebp - 0x14], eax
cmp eax, ebx
jbe 0x1000c196
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x18], ecx
push eax
mov ecx, edi
call fcn.1000bcc0
push eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000b450
test eax, eax
je 0x1000c196
mov byte [ebp - 0xd], bl
cmp esi, ebx
je 0x1000c1a6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
mov eax, dword [edi]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x20], ebx
cmp eax, ebx
jne 0x1000c1b6
xor eax, eax
jmp 0x1000c1c4
push ecx
push eax
call fcn.1001406a
add esp, 8
cmp eax, ebx
jl 0x1000c240
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x1000c240
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
cmp esi, ebx
je 0x1000c1e1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c203
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.10001000
int3