Function at 0x1000920c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
push esi
push edi
mov ecx, 9
mov esi, str.1B5D1795_4D18_4057_81DA_06A5FC19F3AC
lea edi, [ebp - 0x228]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x201]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 9
mov esi, str.AD8341CB_C580_46e7_B593_44440EFB4DE8
lea edi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x11d]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push str.SYSTEMCurrentControlSetControlMediaCategories_
lea eax, [ebp - 0x104]
push eax
call fcn.1001cb30
add esp, 8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
cmp ecx, 1
jne 0x1000929b
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.1001cb40
add esp, 8
jmp 0x100092bf
mov ecx, dword [ebp + 8]
and ecx, 0xffff
cmp ecx, 2
jne 0x100092bf
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.1001cb40
add esp, 8
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x104]
push edx
push reloc.DSOUND.dll_DirectSoundEnumerateA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10009319
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x22c], 0x80
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0
push str.Name
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1d0], 0
jmp 0x10009341
mov edx, dword [ebp - 0x1d0]
add edx, 1
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp - 0x1d0]
cmp eax, dword [0x100361ac]
jge 0x1000957c
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx*4 + 0x1003616c]
mov dword [0x10036164], edx
mov dword [ebp - 0x39c], 0xa8
mov dword [ebp - 0x384], 4
push SysStringLen
lea eax, [ebp - 0x39c]
push eax
mov ecx, dword [0x10036164]
push ecx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x37c]
mov dword [ebp - 0x3a4], edx
mov dword [ebp - 0x148], 0
jmp 0x100093bd
mov eax, dword [ebp - 0x148]
add eax, 1
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
cmp ecx, dword [ebp - 0x3a4]
jae 0x1000942d
mov dword [ebp - 0x2f0], 0xa8
mov edx, dword [ebp - 0x398]
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x2e8], eax
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [0x10036164]
push edx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000942b
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.1001d260
add esp, 8
test eax, eax
jne 0x1000942b
jmp 0x1000942d
jmp 0x100093ae
mov edx, dword [ebp - 0x148]
cmp edx, dword [ebp - 0x3a4]
jb 0x10009442
xor eax, eax
jmp 0x1000957e
push 4
call fcn.1002367d
add esp, 4
mov dword [ebp - 0x3a8], eax
mov eax, dword [ebp - 0x3a8]
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x1e8], 0x18
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1e0], 0x20010002
mov dword [ebp - 0x1dc], 1
mov dword [ebp - 0x1d8], 0x94
mov edx, dword [ebp - 0x3a0]
mov eax, dword [edx]
mov dword [ebp - 0x1d4], eax
push reloc.DSOUND.dll_DirectSoundEnumerateA
lea ecx, [ebp - 0x1e8]
push ecx
mov edx, dword [0x10036164]
push edx
call dword [sym.imp.WINMM.dll_mixerGetLineControlsA]
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], 0x18
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 4
cmp dword [ebp + 0xc], 0
je 0x10009539
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x2f4], eax
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x234], ecx
push 0
lea edx, [ebp - 0x248]
push edx
mov eax, dword [0x10036164]
push eax
call dword [sym.imp.WINMM.dll_mixerSetControlDetails]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009532
xor eax, eax
jmp 0x1000957e
mov eax, 1
jmp 0x1000957e
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x234], ecx
push 0
lea edx, [ebp - 0x248]
push edx
mov eax, dword [0x10036164]
push eax
call dword [sym.imp.WINMM.dll_mixerGetControlDetailsA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009565
jmp 0x10009577
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2f4]
mov dword [ecx], edx
mov eax, 1
jmp 0x1000957e
jmp 0x10009332
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret