Function at 0x666493e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x66650048], 8
jne 0x66649650
mov eax, dword [0x66657004]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x66649643
mov dword [eax], 0x5eed0001
mov dword [eax + 4], eax
mov dword [eax + 8], 0
test edi, edi
je 0x666494a0
cmp word [edi], 0
je 0x66649810
mov eax, edi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x66649450
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x66657004]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
xor edx, edx
mov dword [ebx + 8], eax
sub esp, 0xc
test eax, eax
je 0x66649849
lea esi, [esi]
nop
movzx ecx, word [edi + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x66649490
mov dword [ebx + 0xc], 0
test esi, esi
je 0x66649510
cmp word [esi], 0
je 0x66649820
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x666494c0
sub eax, esi
add eax, 2
mov dword [esp + 8], eax
mov eax, dword [0x66657004]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
xor edx, edx
mov dword [ebx + 0xc], eax
sub esp, 0xc
test eax, eax
je 0x6664982a
lea esi, [esi]
nop
movzx ecx, word [esi + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x66649500
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x14], 0
mov edx, dword [0x66657020]
mov dword [ebx + 0x10], eax
mov eax, dword [section..bss]
test ecx, ecx
je 0x666496a0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x66649544
mov dword [eax + 0x1c], ebx
mov dword [section..bss], ebx
test edx, edx
je 0x666496d0
mov edx, dword [ebx + 8]
test edx, edx
je 0x66649626
lea eax, [ebx + 8]
call fcn.666471c0
mov edi, eax
test eax, eax
je 0x66649626
lea eax, [ebp - 0x24]
mov dword [ebx + 0x2c], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegCreateKeyW
sub esp, 0xc
test eax, eax
jne 0x666495d6
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
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 + 4], str.cFormatTags
mov dword [esp], eax
mov dword [ebp - 0x1c], 4
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x666496e0
mov eax, dword [0x66657004]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebx + 0x2c]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [0x66657004]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x2c], 0
sub esp, 0xc
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov eax, ebx
call fcn.66648fe0
test eax, eax
je 0x666497f8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x66649643
or dword [ebx + 0x28], 0x40000000
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call fcn.66647640
mov ebx, eax
mov eax, edi
call fcn.66647640
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], 0x66650048
mov dword [esp], 3
call fcn.66647130
jmp 0x666493fc
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], edx
test edx, edx
je 0x666496b1
mov dword [edx + 0x18], ebx
mov dword [0x66657020], ebx
test eax, eax
jne 0x66649552
mov dword [section..bss], ebx
jmp 0x66649552
mov dword [0x66657020], ebx
jmp 0x66649552
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x20]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.cFilterTags
mov dword [esp], eax
mov dword [ebp - 0x1c], 4
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x666495d6
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x28]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.fdwSupport
mov dword [esp], eax
mov dword [ebp - 0x1c], 4
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x666495d6
mov eax, dword [ebx + 0x24]
mov ecx, dword [0x66657004]
test eax, eax
je 0x666497d7
shl eax, 3
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebx + 0x2c], eax
sub esp, 0xc
test eax, eax
je 0x666495d6
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 + 8], 0
mov dword [esp + 4], str.aFormatTagCache
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x666495d6
mov ecx, dword [0x66657004]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], ecx
call sub.kernel32.dll_HeapFree
sub esp, 0xc
jmp 0x66649635
test byte [0x66650048], 4
jne 0x6664986c
mov dword [esp], ebx
xor ebx, ebx
call fcn.66648ae0
jmp 0x66649643
mov eax, 2
jmp 0x6664945e
mov eax, 2
jmp 0x666494ce
mov eax, dword [ebx + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x66657004]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
mov eax, dword [0x66657004]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
jmp 0x66649643
mov eax, esi
call fcn.66647640
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], 0x66650048
mov dword [esp], 2
call fcn.66647130
jmp 0x66649801