Function at 0x6ca3f690
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], 0x6ca960a8
mov esi, dword [esp + 0xec]
mov dword [esp], ebx
mov dword [esp + 0x54], 0
call fcn.6c9d7a80
test eax, eax
je 0x6ca3f8c0
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.6c9dad00
mov dword [esp], ebx
call fcn.6c9d7ad0
mov dword [esp + 8], ebx
add eax, 1
mov dword [esp + 4], 0x6ca96015
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca9600c
call fcn.6c9cfa90
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.6c9d3b40
test edi, edi
jne 0x6ca3f8c0
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 0x6ca3f8f8
mov eax, dword [esp + 0x54]
add eax, 2
mov dword [esp], eax
call fcn.6c9d3a30
mov ebx, eax
test eax, eax
je 0x6ca3f8f8
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 0x6ca3f910
mov eax, dword [esp + 0x54]
xor edx, edx
and eax, 0xfffffffe
mov word [ebx + eax], dx
mov dword [esp], ebx
call fcn.6c9d7b00
mov dword [esp + 8], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0x6ca9600c
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca96015
call fcn.6c9cfa90
mov dword [esp], ebx
mov dword [esp + 0x4c], eax
call fcn.6c9d3b40
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x6ca3f8e8
lea esi, [esi]
mov dword [esp], esi
call fcn.6c9d7b00
mov dword [esp + 8], esi
lea eax, [eax + eax + 2]
mov dword [esp + 4], 0x6ca9600c
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca96015
call fcn.6c9cfa90
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 0x6ca3f8c0
mov dword [esp], ebx
call fcn.6c9d3b40
jmp 0x6ca3f8c0