Function at 0x10004080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10010080], 8
jne 0x10004308
mov eax, dword [0x10010018]
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 - 0x1c], eax
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x100042e9
mov dword [eax], 0x5eed0001
mov dword [eax + 4], eax
mov dword [eax + 8], 0
test edi, edi
je 0x10004140
cmp word [edi], 0
je 0x100044b8
mov eax, edi
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x100040f0
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x10010018]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov dword [ebx + 8], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x10004545
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10004130
mov dword [ebx + 0xc], 0
test esi, esi
je 0x100041b0
cmp word [esi], 0
je 0x100044c8
mov eax, esi
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10004160
sub eax, esi
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x10010018]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov dword [ebx + 0xc], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x10004503
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x100041a0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x14], 0
mov edx, dword [0x1001002c]
mov dword [ebx + 0x10], eax
mov eax, dword [0x10010020]
test ecx, ecx
je 0x10004350
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x100041e4
mov dword [eax + 0x1c], ebx
mov dword [0x10010020], ebx
test edx, edx
je 0x100042f8
mov edx, dword [ebx + 8]
test edx, edx
je 0x100042cc
mov eax, ebx
call sym._MSACM_GetRegistryKey
mov edi, eax
test eax, eax
je 0x100042cc
lea eax, [ebp - 0x18]
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 0x1000427b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x24]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
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 - 0x20], eax
call eax
sub esp, 0x18
test eax, eax
je 0x10004380
mov eax, dword [0x10010018]
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 [0x10010018]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x18]
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 0x10004498
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100042e9
or dword [ebx + 0x28], 0x40000000
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x1001002c], ebx
jmp 0x100041f2
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], 0x10010080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000409c
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], edx
test edx, edx
je 0x10004361
mov dword [edx + 0x18], ebx
mov dword [0x1001002c], ebx
test eax, eax
jne 0x100041f2
mov dword [0x10010020], ebx
jmp 0x100041f2
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
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 0x1000427b
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
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 0x1000427b
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10004470
shl eax, 3
mov dword [esp + 4], 8
mov dword [ebp - 0x10], eax
mov dword [esp + 8], eax
mov eax, dword [0x10010018]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov dword [ebx + 0x2c], eax
sub esp, 0xc
test eax, eax
je 0x1000427b
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
call eax
sub esp, 0x18
test eax, eax
jne 0x1000427b
mov eax, dword [0x10010018]
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 0x100042db
test byte [0x10010080], 4
jne 0x100044d2
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 0x100040fe
mov eax, 2
jmp 0x1000416e
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], 0x10010080
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x100044a1
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 [0x10010018]
mov dword [esp], eax
call esi
mov eax, dword [0x10010018]
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 0x100042e9
mov eax, dword [0x10010018]
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 0x100042e9