Function at 0x40fcb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7628
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.0044e180
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x2024], ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x40fd02
xor eax, eax
jmp 0x40ffb5
mov ecx, dword [esi + 8]
lea edi, [esi + 8]
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x201c], ebx
cmp dword [ecx - 0xc], ebx
jne 0x40fe01
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x2018]
push edx
mov edx, dword [esi + 0xc]
or edx, 8
push edx
push ebx
push ecx
push eax
mov dword [ebp - 0x2028], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ffaf
mov edx, dword [ebp - 0x2018]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2028]
push eax
lea ecx, [ebp - 0x2014]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x40ff98
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2014]
call fcn.00411220
mov edi, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2024]
push ecx
mov dword [ebp - 4], 0
call fcn.0040fc30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2024]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2018]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2028]
push ecx
lea edx, [ebp - 0x2014]
push edx
inc esi
push esi
push eax
mov dword [ebp - 0x2028], 0x1000
call ebx
test eax, eax
je 0x40fd75
jmp 0x40ff98
mov edx, dword [esi + 4]
mov ecx, dword [edx - 0xc]
lea eax, [esi + 4]
cmp ecx, ebx
je 0x40fe49
push 0x4cd010
push eax
lea eax, [ebp - 0x2034]
push eax
call fcn.0040f510
add esp, 0xc
mov ecx, 1
mov dword [ebp - 4], ecx
push edi
mov dword [ebp - 0x2024], ecx
push eax
lea ecx, [ebp - 0x2028]
push ecx
call fcn.0040f3d0
add esp, 0xc
mov ebx, 3
jmp 0x40fe4b
mov eax, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
lea edx, [ebp - 0x2018]
push edx
mov edx, dword [esi]
or ecx, 1
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [ebp - 0x201d]
test bl, 2
je 0x40fea0
mov eax, dword [ebp - 0x2028]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x2024], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40fece
mov eax, dword [ebp - 0x2034]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x201d], 0
je 0x40ffaf
mov eax, dword [ebp - 0x2018]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x201c]
push ecx
lea edx, [ebp - 0x2014]
push edx
push esi
push eax
mov dword [ebp - 0x201c], 0x1000
call ebx
test eax, eax
jne 0x40ff98
lea ecx, [ebp - 0x202c]
push ecx
lea ecx, [ebp - 0x2014]
call fcn.00411220
mov edi, dword [ebp - 0x2030]
lea edx, [ebp - 0x202c]
push edx
mov dword [ebp - 4], 2
call fcn.0040fc30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x202c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2018]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x201c]
push ecx
lea edx, [ebp - 0x2014]
push edx
inc esi
push esi
push eax
mov dword [ebp - 0x201c], 0x1000
call ebx
test eax, eax
je 0x40ff11
mov ecx, dword [ebp - 0x2018]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x201c], 1
mov eax, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret