Function at 0x12182ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
je 0x12182b0a
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.12171010
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x12182b0a
jmp 0x12182c72
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x12182c72
cmp dword [ebp + 0x20], 0
je 0x12182c14
cmp dword [ebp - 4], 1
je 0x12182b5f
cmp dword [ebp - 4], 7
je 0x12182b5f
cmp dword [ebp - 4], 2
jne 0x12182b7b
mov eax, dword [ebp - 0x18]
push eax
push 0
call fcn.12171010
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x12182b7b
jmp 0x12182c72
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], 0
je 0x12182b91
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x12182b97
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x12182c14
cmp dword [ebp + 0x20], 0
je 0x12182c14
cmp dword [ebp - 4], 1
je 0x12182bd8
cmp dword [ebp - 4], 2
jne 0x12182bf6
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
shr edx, 1
push edx
mov eax, dword [ebp + 0x20]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
jmp 0x12182c14
cmp dword [ebp - 4], 7
jne 0x12182c14
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
shr eax, 1
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.12171010
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x12182c40
cmp dword [ebp - 4], 1
je 0x12182c2c
cmp dword [ebp - 4], 7
je 0x12182c2c
cmp dword [ebp - 4], 2
jne 0x12182c38
mov eax, dword [ebp - 0x18]
shl eax, 1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x12182c40
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
shr edx, 1
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
cmp dword [ebp + 0x1c], 0
je 0x12182c72
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
cmp dword [ebp - 0xc], 0
je 0x12182c82
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x12182c92
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x20