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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc08
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.004a7ca0
mov eax, dword [0x4e9688]
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 0x401542
xor eax, eax
jmp 0x4017f5
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 0x401641
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 0x4017ef
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 0x4017d8
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2014]
call fcn.00424e40
mov edi, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2024]
push ecx
mov dword [ebp - 4], 0
call fcn.004121d0
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 0x401609
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 0x4015b5
jmp 0x4017d8
mov edx, dword [esi + 4]
mov ecx, dword [edx - 0xc]
lea eax, [esi + 4]
cmp ecx, ebx
je 0x401689
push 0x4cd228
push eax
lea eax, [ebp - 0x2034]
push eax
call fcn.00411090
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.00410fd0
add esp, 0xc
mov ebx, 3
jmp 0x40168b
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 0x4016e0
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 0x4016e0
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 0x40170e
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 0x40170e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x201d], 0
je 0x4017ef
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 0x4017d8
lea ecx, [ebp - 0x202c]
push ecx
lea ecx, [ebp - 0x2014]
call fcn.00424e40
mov edi, dword [ebp - 0x2030]
lea edx, [ebp - 0x202c]
push edx
mov dword [ebp - 4], 2
call fcn.004121d0
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 0x4017a5
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 0x401751
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.00491281
mov esp, ebp
pop ebp
ret