Function at 0x10008870
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 [0x10010048], 8
jne 0x10008af8
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
mov eax, dword [0x10016004]
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 0x10008c99
mov dword [eax], 0x5eed0001
mov dword [eax + 4], eax
mov dword [eax + 8], 0
test edi, edi
je 0x10008930
cmp word [edi], 0
je 0x10008ca0
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x100088e0
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x10016004]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0xc
mov ecx, eax
mov dword [ebx + 8], eax
test eax, eax
je 0x10008d29
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10008920
mov dword [ebx + 0xc], 0
test esi, esi
je 0x100089a0
cmp word [esi], 0
je 0x10008cb0
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10008950
sub eax, esi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x10016004]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0xc
mov ecx, eax
mov dword [ebx + 0xc], eax
test eax, eax
je 0x10008ceb
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10008990
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x14], 0
mov edi, dword [ebp + 0x10]
mov edx, dword [0x10016020]
mov dword [ebx + 0x10], eax
mov eax, dword [section..bss]
test edi, edi
je 0x10008b40
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
test eax, eax
je 0x100089d4
mov dword [eax + 0x1c], ebx
mov dword [section..bss], ebx
test edx, edx
je 0x10008ae8
mov edx, dword [ebx + 8]
test edx, edx
je 0x10008abc
mov eax, ebx
call fcn.10007560
mov edi, eax
test eax, eax
je 0x10008abc
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 0x10008a6b
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 dword [esp + 8], 0
mov dword [esp + 4], str.cFormatTags
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
call eax
sub esp, 0x18
test eax, eax
je 0x10008b70
mov dword [esp + 8], edi
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [0x10016004]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x2c]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x10016004]
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 fcn.10008630
test eax, eax
je 0x10008c88
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10008ad9
or dword [ebx + 0x28], 0x40000000
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x10016020], ebx
jmp 0x100089e2
mov eax, esi
call fcn.10007280
mov ebx, eax
mov eax, edi
call fcn.10007280
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___s___p__n
mov dword [esp + 8], str.MSACM_RegisterDriver
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0x10010048
mov dword [esp], 3
call fcn.10007510
jmp 0x1000888c
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], edx
test edx, edx
je 0x10008b51
mov dword [edx + 0x18], ebx
mov dword [0x10016020], ebx
test eax, eax
jne 0x100089e2
mov dword [section..bss], ebx
jmp 0x100089e2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 4
lea eax, [ebx + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFilterTags
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x18
test eax, eax
jne 0x10008a6b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 4
lea eax, [ebx + 0x28]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.fdwSupport
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x18
test eax, eax
jne 0x10008a6b
mov eax, dword [ebx + 0x24]
mov ecx, dword [0x10016004]
test eax, eax
je 0x10008c67
shl eax, 3
mov dword [ebp - 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov dword [esp], ecx
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0xc
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x10008a6b
mov dword [esp + 0x10], eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
mov ecx, dword [0x10016004]
sub esp, 0x18
test eax, eax
jne 0x10008a6b
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x10008acb
test byte [0x10010048], 4
jne 0x10008cba
mov dword [esp], ebx
call fcn.10008110
xor ebx, ebx
jmp 0x10008ad9
mov eax, 2
jmp 0x100088ee
mov eax, 2
jmp 0x1000895e
mov eax, esi
call fcn.10007280
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], 0x10010048
mov dword [esp], 2
call fcn.10007510
jmp 0x10008c91
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 4], ecx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
mov eax, dword [0x10016004]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [0x10016004]
xor ebx, ebx
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x10008ad9
xor eax, eax
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [0x10016004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x10008ad9