Function at 0x1000a730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100205fd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1002c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x1000a76e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
jle 0x1000a785
push dword [eax - 0xc]
lea ecx, [esi + 8]
call fcn.10002aa0
mov eax, dword [esi + 8]
push ebx
push 0xf003f
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000a7b0
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 8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1000a7d7
cmp ecx, dword [esi]
jne 0x1000a7d7
lock inc dword [eax]
jmp 0x1000a803
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x1000a96e
mov ecx, dword [edi]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [edi]
inc edx
push edx
push dword [ebp + 8]
call fcn.10002bf0
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 3
push 0x100274bc
call fcn.10002160
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push 0
push dword [ebp - 0x14]
push dword [ebx]
call edi
or ebx, 0xffffffff
test eax, eax
je 0x1000a84f
mov byte [ebp + 0xb], 0
jmp 0x1000a938
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
xor ecx, ecx
mov esi, dword [ebp - 0x10]
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000fd2f
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], esi
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x14]
push dword [eax]
call edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
shr edi, 1
call fcn.10002610
mov ecx, eax
test ecx, ecx
je 0x1000a973
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x1000a96e
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
cmp edi, dword [esi - 8]
jg 0x1000a97d
push edi
push dword [ebp - 0x20]
xor eax, eax
mov dword [esi - 0xc], edi
mov edx, edi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.10002bf0
add esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100095d0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a913
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
sete byte [ebp + 0xb]
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.1000fd2a
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000a957
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xb]
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
call fcn.10002b30
push 0x80004005
call fcn.10001a10
push 0x80070057
call fcn.10001a10
int3