Function at 0x660841b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x66090080], 8
jne 0x66084438
mov eax, dword [0x66090018]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x66084419
mov dword [eax], 0x5eed0001
mov dword [eax + 4], eax
mov dword [eax + 8], 0
test edi, edi
je 0x66084270
cmp word [edi], 0
je 0x660845e8
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x66084220
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x66090018]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov dword [ebx + 8], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x66084675
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x66084260
mov dword [ebx + 0xc], 0
test esi, esi
je 0x660842e0
cmp word [esi], 0
je 0x660845f8
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x66084290
sub eax, esi
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x66090018]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov dword [ebx + 0xc], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x66084633
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x660842d0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x14], 0
mov edx, dword [0x6609002c]
mov dword [ebx + 0x10], eax
mov eax, dword [0x66090020]
test ecx, ecx
je 0x66084480
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x66084314
mov dword [eax + 0x1c], ebx
mov dword [0x66090020], ebx
test edx, edx
je 0x66084428
mov edx, dword [ebx + 8]
test edx, edx
je 0x660843fc
mov eax, ebx
call sym._MSACM_GetRegistryKey
mov edi, eax
test eax, eax
je 0x660843fc
lea eax, [ebp - 0x24]
mov dword [ebx + 0x2c], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x660843ab
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x24]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [esp + 4], str.cFormatTags
mov dword [ebp - 0x30], eax
call eax
sub esp, 0x18
test eax, eax
je 0x660844b0
mov eax, dword [0x66090018]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x2c]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [0x66090018]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x2c], 0
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, ebx
call sym._MSACM_FillCache
test eax, eax
je 0x660845c8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x66084419
or dword [ebx + 0x28], 0x40000000
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x6609002c], ebx
jmp 0x66084322
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.__s___s___p__n
mov dword [esp + 8], str.MSACM_RegisterDriver
mov dword [esp + 4], 0x66090080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x660841cc
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], edx
test edx, edx
je 0x66084491
mov dword [edx + 0x18], ebx
mov dword [0x6609002c], ebx
test eax, eax
jne 0x66084322
mov dword [0x66090020], ebx
jmp 0x66084322
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFilterTags
call eax
sub esp, 0x18
test eax, eax
jne 0x660843ab
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.fdwSupport
call eax
sub esp, 0x18
test eax, eax
jne 0x660843ab
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x660845a0
shl eax, 3
mov dword [esp + 4], 8
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], eax
mov eax, dword [0x66090018]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov dword [ebx + 0x2c], eax
sub esp, 0xc
test eax, eax
je 0x660843ab
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
call eax
sub esp, 0x18
test eax, eax
jne 0x660843ab
mov eax, dword [0x66090018]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6608440b
test byte [0x66090080], 4
jne 0x66084602
mov dword [esp], ebx
xor ebx, ebx
call sym._MSACM_UnregisterDriver
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x6608422e
mov eax, 2
jmp 0x6608429e
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Couldnt_load_cache_for_ACM_driver___s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MSACM_RegisterDriver
mov dword [esp + 4], 0x66090080
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x660845d1
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x66090018]
mov dword [esp], eax
call esi
mov eax, dword [0x66090018]
sub esp, 0xc
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x66084419
mov eax, dword [0x66090018]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x66084419