Function at 0x6cdc15b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [ebp + 8]
lea eax, [esi + 1]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 9
mov dword [esp + 8], 0
mov dword [esp + 4], str.HARDWAREDEVICEMAPScsi
mov dword [esp], 0x80000002
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x6cdc17d0
mov dword [ebp + 8], esi
xor eax, eax
lea ebx, [ebp - 0x54]
lea edi, [ebp - 0x5c]
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 0xc], 0xf
lea esi, [eax + 1]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x6cdc1798
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 9
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x6cdc1670
mov eax, esi
jmp 0x6cdc1610
lea eax, [ebp - 0x58]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._RegQueryInfoKeyW_48
sub esp, 0x30
test eax, eax
jne 0x6cdc1780
mov ecx, dword [ebp - 0x58]
sub dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
test eax, eax
jg 0x6cdc1663
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea eax, [ebp - 0x36]
mov dword [esp + 0xc], 0xf
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
neg eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x6cdc1810
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._RegCloseKey_4
lea eax, [ebp - 0x42]
mov esi, dword [sym.imp.ucrtbase.dll_wcstol]
sub esp, 4
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov dword [esp + 8], 0xa
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
shl ebx, 0x10
call esi
lea esp, [ebp - 0xc]
add eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, esi
sub esp, 4
jmp 0x6cdc1610
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [ebp - 0x6c]
sub esp, 4
test eax, eax
jle 0x6cdc16fc
test byte [0x6cdc3018], 2
jne 0x6cdc1829
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6cdc3018], 2
je 0x6cdc17bd
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Could_not_open_HKLM_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ASPI_GetHCforController
mov dword [esp + 4], 0x6cdc3018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6cdc17bd
test byte [0x6cdc3018], 2
jne 0x6cdc1856
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x6cdc17bd
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Invalid_controller__d__n
mov dword [esp + 8], str.ASPI_GetHCforController
mov dword [esp + 4], 0x6cdc3018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6cdc17bd
mov dword [esp + 0xc], str.Failed_to_enumerate_keys_n
mov dword [esp + 8], str.ASPI_GetHCforController
mov dword [esp + 4], 0x6cdc3018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6cdc1819