Function at 0x4a6900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0048eb00
neg eax
lea ecx, [ebp - 0x24]
sbb eax, eax
and eax, 0xffffff00
add eax, 0x20219
push eax
push edi
push dword [esi]
call fcn.0049c070
mov esi, eax
test esi, esi
jne 0x4a6b13
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a69b6
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x4a6ab2
mov edi, dword [ebp - 0x24]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4a69f2
push edx
lea ecx, [ebp - 0x14]
call fcn.00415500
mov esi, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x4a6abc
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x4a6a26
push dword [esi - 8]
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x4a6ab2
cmp eax, dword [esi - 8]
jg 0x4a6ab2
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
push eax
call fcn.004963a0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
je 0x4a6aa4
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x4a6a82
cmp dword [esi - 8], 0
jl 0x4a6ab2
xor eax, eax
mov dword [esi - 0xc], 0
mov edx, 0x400
mov word [esi], ax
inc ebx
mov dword [ebp - 0x18], edx
jmp 0x4a69d5
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4a6a96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov edx, 0x400
inc ebx
mov dword [ebp - 0x18], edx
jmp 0x4a69d5
push 0x80070057
call fcn.004162a0
push dword [esi - 8]
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x4a6ab2
cmp eax, dword [esi - 8]
jg 0x4a6ab2
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x4a6aea
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x24], edi
add esi, 0xfffffff0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a6b0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x4a6b16
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x4a6b21
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret