Function at 0x6c9f3a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xd8
mov ebx, dword [esp + 0xf0]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x6ca35f28
mov esi, dword [esp + 0xec]
mov dword [esp], ebx
mov dword [esp + 0x54], 0
call fcn.6c9a2430
test eax, eax
je 0x6c9f3cc0
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x48], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x44], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x40], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x3c], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x38], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x34], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 6]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 7]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 4]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 5]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 1]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 2]
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 3]
lea ebx, [esp + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.SystemCurrentControlSetControlMediaCategories_02X_02X_02X_02X__02X_02X__02X_02X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [esp], ebx
mov dword [esp + 4], pe_nt_image_headers32
call fcn.6c9a51e0
mov dword [esp], ebx
call fcn.6c9a2480
mov dword [esp + 8], ebx
add eax, 1
mov dword [esp + 4], 0x6ca35e95
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca35e8c
call fcn.6c99af00
mov dword [esp + 0xc], 1
mov ebx, eax
lea eax, [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call fcn.6c99edc0
test edi, edi
jne 0x6c9f3cc0
mov eax, dword [esp + 0x50]
lea ebp, [esp + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x6c9f3cf3
mov eax, dword [esp + 0x54]
add eax, 2
mov dword [esp], eax
call fcn.6c99ecd0
mov ebx, eax
test eax, eax
je 0x6c9f3cf3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
mov dword [esp], eax
call edi
sub esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
test edi, edi
jne 0x6c9f3d05
mov eax, dword [esp + 0x54]
xor edx, edx
and eax, 0xfffffffe
mov word [ebx + eax], dx
mov dword [esp], ebx
call fcn.6c9a2510
mov dword [esp + 8], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0x6ca35e8c
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca35e95
call fcn.6c99af00
mov dword [esp], ebx
mov dword [esp + 0x4c], eax
call fcn.6c99edc0
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x6c9f3ce8
lea esi, [esi]
mov dword [esp], esi
call fcn.6c9a2510
mov dword [esp + 8], esi
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0x6ca35e8c
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca35e95
call fcn.6c99af00
add esp, 0xd8
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x6c9f3cc0
mov dword [esp], ebx
call fcn.6c99edc0
jmp 0x6c9f3cc0