Function at 0x10009630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d548
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100270b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0x14]
push 0x100216b4
xor edi, edi
mov ebx, esi
mov byte [ebp - 4], 2
mov byte [ebp - 0xd], 1
call fcn.10002d10
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x24]
push ecx
call fcn.100099f0
test eax, eax
je 0x10009703
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100096a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100096c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100096ed
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 0x14
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp + 8]
push ecx
push 0
lea edx, [ebp + 0x18]
push edx
push 0
push eax
push ebx
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009768
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x10009731
cmp eax, 2
jne 0x10009768
mov eax, dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0x18], eax
je 0x10009768
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, eax
mov dword [ebp - 0x14], ecx
call fcn.10009930
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea edi, [ebp - 0x18]
mov esi, eax
call fcn.10009970
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x10009768
mov byte [ebp - 0xd], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1000977a
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x10009798
push ecx
push eax
call fcn.1000ca1b
add esp, 8
test eax, eax
js 0x10009811
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x10009811
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
je 0x100097b1
push ebx
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100097d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100097fa
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 0x14
push 0x80070057
call fcn.10003470
int3