Function at 0x7f2f1237
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x7f30bacc], ebx
push esi
push edi
je 0x7f2f126f
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x7f2f14e6
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 8], ebx
je 0x7f2f14e3
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x7f2f14e3
mov esi, dword [ebp + 0x24]
cmp esi, ebx
jne 0x7f2f1296
cmp dword [ebp + 0x20], ebx
jne 0x7f2f14e3
mov eax, dword [edi]
imul eax, dword [0x7f30b088]
push eax
mov dword [ebp - 0xc], eax
call fcn.7f2d55af
test eax, eax
je 0x7f2f12c3
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x7f2f12c3
add eax, 3
and eax, 0xfffffffc
call fcn.7f2fec90
mov dword [ebp - 0x10], esp
jmp 0x7f2f12c6
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], ebx
jbe 0x7f2f12da
cmp dword [ebp - 0x10], ebx
jne 0x7f2f12da
mov eax, 0x3e9
jmp 0x7f2f14e6
cmp esi, ebx
je 0x7f2f12e5
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
jmp 0x7f2f12e8
mov dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp + 0x14]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x7f2f1318
mov dword [eax], ecx
cmp dword [ebp - 4], ebx
je 0x7f2f1348
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x7f2f133e
cmp ecx, ebx
jbe 0x7f2f1339
cmp ecx, 2
jbe 0x7f2f1332
cmp ecx, 7
jne 0x7f2f1339
mov ecx, dword [ebp + 0x14]
add ecx, ecx
jmp 0x7f2f133c
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
jmp 0x7f2f14de
push dword [edi]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push dword [0x7f30bac8]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call ebx
dec eax
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x7f2f137e
mov eax, dword [ebp + 0x10]
and word [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], 0x7a
add eax, eax
jmp 0x7f2f1341
xor ecx, ecx
cmp dword [ebp + 0x20], ecx
je 0x7f2f14de
mov edi, dword [ebp + 0x24]
cmp edi, ecx
je 0x7f2f14de
cmp dword [ebp - 8], ecx
jbe 0x7f2f14c2
cmp dword [ebp - 8], 2
jbe 0x7f2f13ad
cmp dword [ebp - 8], 7
jne 0x7f2f14c2
mov eax, dword [0x7f30b088]
imul eax, dword [ebp + 0x14]
cmp eax, ecx
mov dword [ebp + 0x14], eax
je 0x7f2f13d2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x10], eax
jmp 0x7f2f13d5
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0x10], 0
jne 0x7f2f13e2
push 0xe
jmp 0x7f2f14e5
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp dword [ebp - 8], 7
mov dword [ebp - 4], eax
jne 0x7f2f1431
mov eax, dword [edi]
shr eax, 1
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x10]
call fcn.7f2d65a2
mov ecx, dword [edi]
test ecx, ecx
jbe 0x7f2f142b
shr ecx, 1
cmp eax, ecx
jbe 0x7f2f142b
mov dword [ebp - 4], 0xea
lea eax, [eax + eax + 2]
jmp 0x7f2f14ac
mov eax, dword [ebp + 0x14]
lea eax, [eax + eax + 2]
push eax
call fcn.7f2d55af
test eax, eax
je 0x7f2f145c
mov eax, dword [ebp + 0x14]
lea eax, [eax + eax + 2]
test eax, eax
je 0x7f2f145c
add eax, 3
and eax, 0xfffffffc
call fcn.7f2fec90
mov esi, esp
jmp 0x7f2f145e
xor esi, esi
push dword [ebp + 0x14]
push esi
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push dword [0x7f30bac8]
call ebx
push esi
call fcn.7f2daf04
pop ecx
mov ecx, dword [edi]
lea eax, [eax + eax + 2]
cmp eax, ecx
mov dword [ebp + 0x14], eax
jbe 0x7f2f1492
test ecx, ecx
jbe 0x7f2f14ac
mov dword [ebp - 4], 0xea
jmp 0x7f2f14ac
mov edi, dword [ebp + 0x20]
and dword [ebp - 4], 0
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x24]
push dword [ebp + 0x10]
mov dword [edi], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x7f2f14de
push edi
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x7f2f14e6
push 0x57
pop eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x20