Function at 0x7cfaecb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x7d04ce10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.7cfaea82
xor esi, esi
mov dword [ebp - 0x1c], eax
push esi
push 0x7cf3c6c8
push reloc.SHLWAPI.dll_ParseURLA
call fcn.7cf50bf3
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x7cfaf011
push edi
push ebx
push 4
lea ecx, [ebp - 8]
pop edi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push 0x7cf3c6b8
push eax
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x7cfaed59
cmp dword [ebp - 4], esi
jne 0x7cfaed1f
mov dword [ebp - 4], 2
mov eax, dword [0x7d04dd88]
xor edx, edx
cmp dword [ebp - 4], 1
mov ecx, dword [eax + 4]
sete dl
xor edx, ecx
and edx, 1
xor edx, ecx
xor ecx, ecx
mov dword [eax + 4], edx
cmp dword [ebp - 4], 2
mov eax, dword [0x7d04dd88]
sete cl
mov edx, dword [eax + 4]
and ecx, 1
shl ecx, 3
and edx, 0xfffffff7
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c69c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaed8d
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 4
and edx, 0xffffffef
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c684
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaedc5
mov eax, dword [0x7d04dd88]
xor ecx, ecx
cmp dword [ebp - 4], esi
mov edx, dword [eax + 4]
sete cl
and ecx, 1
and edx, 0xfffffffd
shl ecx, 1
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c664
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaedf9
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 8
and dh, 0xfe
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c64c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaee2d
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 0xb
and dh, 0xf7
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c638
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaee61
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 0xc
and dh, 0xef
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c61c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaee95
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 0xa
and dh, 0xfb
or ecx, edx
mov dword [eax + 4], ecx
push 0x40000008
mov dword [ebp - 8], edi
call sym.SHELL32.dll_SHRestricted
test eax, eax
jne 0x7cfaef79
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c60c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x7cfaeee0
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 0xd
and dh, 0xdf
or ecx, edx
mov dword [eax + 4], ecx
jmp 0x7cfaef79
push 1
push reloc.SHLWAPI.dll_ParseURLA
mov dword [ebp - 0x10], 0x24
call fcn.7cf5afcc
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x7cfaef79
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x7cf3c5f8
push 0x7cf3c5e8
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x7cfaef70
cmp dword [ebp - 0x14], 3
jne 0x7cfaef70
cmp dword [ebp - 0x10], 0x24
jne 0x7cfaef70
cmp dword [ebp - 0x24], esi
je 0x7cfaef32
cmp dword [ebp - 0x24], 3
jne 0x7cfaef70
test byte [ebp - 0x40], 8
je 0x7cfaef58
push 0x10
mov edi, 0x7cf39300
pop ecx
lea esi, [ebp - 0x34]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x7cfaef53
push 1
xor esi, esi
pop ecx
push 4
pop edi
jmp 0x7cfaef5a
push 4
xor esi, esi
pop edi
xor ecx, ecx
mov eax, dword [0x7d04dd88]
and ecx, 1
shl ecx, 0xd
mov edx, dword [eax + 4]
and dh, 0xdf
or edx, ecx
mov dword [eax + 4], edx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c5d8
push edi
call ebx
test eax, eax
jne 0x7cfaefae
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 0xe
and dh, 0xbf
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3c5b8
push edi
call ebx
test eax, eax
jne 0x7cfaefdd
mov eax, dword [0x7d04dd88]
mov ecx, dword [ebp - 4]
and ecx, 1
mov edx, dword [eax + 4]
shl ecx, 0xf
and dh, 0x7f
or ecx, edx
mov dword [eax + 4], ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x7cf3babc
push edi
call ebx
test eax, eax
jne 0x7cfaf008
mov eax, dword [0x7d04dd88]
mov edx, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
xor edx, ecx
and edx, 1
xor edx, ecx
mov dword [eax + 0x20], edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
call fcn.7cfaec88
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_223]
push 0x7d04ce10
mov dword [0x7d04b4e4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
pop esi
leave
ret