Function at 0x64e01200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
xor ebp, ebp
push edi
mov edi, 9
push esi
push ebx
sub esp, 0x18c
mov dword [esp + 0xc], edi
lea eax, [esp + 0x48]
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 0x10], eax
mov eax, str.HARDWAREDEVICEMAPScsi
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call edi
sub esp, 0x14
test eax, eax
jne 0x64e013a8
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x3c], ecx
lea ebx, [esp + 0x54]
lea ebp, [esp + 0x4c]
lea esi, [esi]
lea esi, [esi]
nop
mov dword [esp + 4], eax
lea esi, [eax + 1]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov edx, 0xf
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x64e01340
mov dword [esp + 0x10], ebp
mov eax, 1
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0x14
test eax, eax
je 0x64e012c0
mov eax, esi
jmp 0x64e01260
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x64e01320
mov ecx, dword [esp + 0x50]
add dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
sub esp, 4
jmp 0x64e01260
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x64e03018], 8
jne 0x64e01370
mov eax, dword [esp + 0x3c]
add esp, 0x18c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov edx, 0x64e050a0
mov ecx, 0x64e03018
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.Returning__ld_host_adapters_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x64e01359
xor eax, eax
test byte [0x64e03018], 2
je 0x64e0135d
mov eax, str.HARDWAREDEVICEMAPScsi
mov edx, eax
shr edx, 0x10
je 0x64e0156d
mov dword [esp], str.HARDWAREDEVICEMAPScsi
mov esi, 0xffffffff
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x64e0147c
lea esi, [esi]
lea esi, [esi]
nop
mov edx, eax
cmp word [edx + edx + 0x64e050c2], 0
lea eax, [eax + 1]
jne 0x64e013f0
mov word [esp + 0x54], 0x224c
lea ecx, [esp + 0x56]
mov ebx, str.HARDWAREDEVICEMAPScsi
lea esi, [esp + 0x176]
mov ebp, ebx
jmp 0x64e01455
cmp eax, 9
je 0x64e014d0
cmp eax, 0xa
jne 0x64e014ea
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x64e01545
cmp ecx, esi
ja 0x64e01545
mov edx, eax
movzx eax, word [ebp]
add ebp, 2
cmp eax, 0xd
je 0x64e014c0
jbe 0x64e01420
cmp eax, 0x22
je 0x64e01538
cmp eax, 0x5c
nop
jne 0x64e014dd
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x64e01440
mov eax, str._invalid_
mov edx, str.Could_not_open_HKLM_s_n
mov ecx, 0x64e050a0
mov dword [esp + 0x10], eax
mov ebx, 0x64e03018
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
add esp, 0x18c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov word [ecx], 0x725c
add ecx, 2
jmp 0x64e01440
mov word [ecx], 0x745c
add ecx, 2
jmp 0x64e01440
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x64e01585
mov byte [ecx], 0x5c
mov edi, eax
add ecx, 5
shr edi, 0xc
movzx ebx, byte [edi + str.0123456789abcdefASPI_GetNumControllers]
mov edi, eax
shr edi, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefASPI_GetNumControllers]
mov edi, eax
shr edi, 4
and eax, 0xf
and edi, 0xf
movzx eax, byte [eax + str.0123456789abcdefASPI_GetNumControllers]
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefASPI_GetNumControllers]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x64e01440
mov word [ecx], 0x225c
add ecx, 2
jmp 0x64e01440
mov byte [ecx], 0x22
test eax, eax
jle 0x64e0158d
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [esp + 0x54]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x64e01481
mov dword [esp], str._04x
movzx eax, ax
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x64e01481
mov byte [ecx], al
inc ecx
jmp 0x64e01440
lea eax, [ecx + 1]
jmp 0x64e01559