Function at 0x64e013e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 0xc], 9
inc eax
mov dword [esp + 8], 0
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.HARDWAREDEVICEMAPScsi
mov dword [esp], 0x80000002
call edi
sub esp, 0x14
test eax, eax
jne 0x64e015f0
xor eax, eax
lea ebx, [ebp - 0x54]
lea esi, [esi]
mov dword [esp + 4], eax
lea esi, [eax + 1]
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], 0xf
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x64e015c0
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], 9
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0x14
test eax, eax
je 0x64e01490
mov eax, esi
jmp 0x64e01438
lea eax, [ebp - 0x58]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
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 + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x64e015a0
mov edx, dword [ebp - 0x58]
sub dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
test eax, eax
jg 0x64e0148c
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
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 dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x64e01630
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
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 dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
sub esp, 4
jmp 0x64e01438
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
sub esp, 4
test eax, eax
jle 0x64e0151a
test byte [0x64e03018], 2
jne 0x64e0164a
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x64e03018], 2
je 0x64e015e3
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], 0x64e03018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64e015e3
test byte [0x64e03018], 2
jne 0x64e0165b
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x64e015e3
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.Invalid_controller__d__n
mov dword [esp + 0x10], eax
jmp 0x64e0160a
mov dword [esp + 0xc], str.Failed_to_enumerate_keys_n
mov dword [esp + 8], str.ASPI_GetHCforController
mov dword [esp + 4], 0x64e03018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64e01639