Function at 0x4e30c0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x863571
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x54]
call fcn.004afe70
xor ebx, ebx
mov dword [esp + 0x38], DirectSoundEnumerateW
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], ebx
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4e3124
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x4c], 1
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4e3153
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov edx, 0x104
mov byte [esp + 0x4c], 2
mov dword [esp + 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edx
or eax, ecx
jge 0x4e3190
push edx
lea ecx, [esp + 0x18]
call fcn.004a8a90
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebp
push eax
push DirectSoundEnumerateW
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4e33b4
cmp eax, ebx
jne 0x4e3399
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x4e31d7
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.005bc290
add esp, 8
cmp eax, ebx
jl 0x4e33a5
cmp eax, dword [ebp - 8]
jg 0x4e33a5
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], cx
cmp dword [ebp - 0xc], ebx
jl 0x4e3384
push 0x40957c
push ebp
call fcn.0080292f
add esp, 8
cmp eax, ebx
je 0x4e3384
sub eax, ebp
sar eax, 1
jne 0x4e3384
push 8
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
call fcn.004aa4c0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x4c], 3
cmp eax, esi
je 0x4e3282
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4e3274
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4e3274
push eax
call fcn.004a9b50
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4e326b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x4e3282
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a8db0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e32a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebx, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4e32d9
cmp eax, dword [edi]
jne 0x4e32d9
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4e3314
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x4e33af
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.0080217f
add esp, 0x10
add esi, 0x10
mov dword [ebx], esi
call fcn.004e1c30
add esp, 4
test al, al
je 0x4e3384
mov esi, dword [esp + 0x54]
mov ebp, dword [esi + 4]
mov ecx, esi
call fcn.005dfd30
mov esi, dword [esi + 0x10]
mov ebx, dword [esi]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x4c], 4
test esi, esi
je 0x4e3358
push edi
call fcn.004a9b50
add esp, 4
add eax, 0x10
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x10], ebx
mov dword [esi + 4], ebp
mov dword [esi], 0
mov eax, dword [ecx + 4]
inc dword [ecx + 8]
mov byte [esp + 0x4c], 2
test eax, eax
je 0x4e337b
mov dword [eax], esi
jmp 0x4e337d
mov dword [ecx], esi
mov ebp, dword [esp + 0x14]
mov dword [ecx + 4], esi
inc dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, 0x104
mov dword [esp + 0x1c], edx
xor ebx, ebx
jmp 0x4e339d
mov edx, dword [esp + 0x1c]
cmp edx, ebx
jge 0x4e3171
push 0x80070057
call fcn.004a8210
call fcn.004a8580
mov edx, dword [esp + 0x54]
cmp dword [edx + 8], ebx
lea eax, [esi - 0x10]
setne bl
mov byte [esp + 0x4c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e33df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x4c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3400
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push DirectSoundEnumerateW
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret