Function at 0x4d52c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x862088
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4e0]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4e4]
xor ebx, ebx
mov dword [esp + 0x18], ecx
cmp esi, ebx
jne 0x4d5321
mov eax, 0x80004003
jmp 0x4d62f9
call fcn.004cde30
push esi
lea ecx, [esp + 0x60]
call fcn.004a8f10
mov ecx, eax
mov dword [esp + 0x4d8], ebx
call fcn.004aa3a0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d537b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], ebx
jg 0x4d5385
or eax, 0xffffffff
jmp 0x4d539d
push 0x3a
push edi
call fcn.0080308d
add esp, 8
cmp eax, ebx
jne 0x4d5399
or eax, 0xffffffff
jmp 0x4d539d
sub eax, edi
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004ac570
push 0x3a
mov ecx, eax
mov byte [esp + 0x4dc], 3
call fcn.004d4200
mov ecx, eax
call fcn.004b1130
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d5402
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x50]
call fcn.004a8f10
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x4dc], 6
call fcn.004d44d0
mov ecx, eax
mov byte [esp + 0x4d8], 7
call fcn.004b1130
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d546e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
or ebp, 0xffffffff
cmp dword [ecx - 0xc], 1
mov dword [esp + 0x44], ebp
jle 0x4d54c1
lea edx, [esp + 0x3c]
push 0x407f58
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x4d558b
add edi, 0xfffffff0
push edi
call fcn.004a9b50
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 1
lea esi, [eax + 0x10]
push DirectSoundEnumerateW
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
add esi, 0xfffffff0
mov dword [esp + 0x44], ebp
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d5509
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp ebp, 0xffffffff
jne 0x4d558b
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 5
lea ecx, [eax + 0xc]
or edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d555d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4d8], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5581
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 0x80040216
jmp 0x4d62f9
lea eax, [esp + 0x28]
push 0x407f48
push eax
call fcn.004afd20
add esp, 8
test al, al
jne 0x4d55b7
lea ecx, [esp + 0x28]
push 0x407f3c
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x4d55e3
mov edx, dword [esp + 0x24]
push 1
push ebx
push ebx
push 0x80
push ebx
add edx, 0xa8
push edx
push 0x40bc94
call fcn.004cf8c0
mov ecx, dword [esp + 0x34]
add esp, 0x10
push eax
call fcn.004ce7b0
cmp ebp, 0xffffffff
jne 0x4d56dd
mov eax, dword [esp + 0x24]
mov ebp, dword [eax + 0x78]
cmp ebp, ebx
je 0x4d57ca
jmp 0x4d5600
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x4d56ce
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ebp, dword [ebp]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4d563f
cmp eax, dword [esi - 0x10]
jne 0x4d563f
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4d5677
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4d56d8
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
push 0
lea ecx, [esp + 0x20]
push ecx
add edi, 0x10
lea ecx, [ebx + 0x40]
mov dword [esp + 0x24], edi
call fcn.004b0640
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d56ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4d56bf
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push ebx
call fcn.004ce7b0
test ebp, ebp
jne 0x4d5600
xor ebx, ebx
jmp 0x4d57ca
push 0x80004005
call fcn.004a8210
call fcn.004a8580
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x78]
cmp eax, ebx
je 0x4d57ca
lea esp, [esp]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4d56ce
mov ecx, dword [eax + 8]
mov edi, dword [ecx + 0x70]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
cmp edi, ebx
je 0x4d57c2
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x4d56ce
mov esi, dword [edi + 8]
mov edi, dword [edi]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x44], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4d5750
cmp eax, dword [esi - 0x10]
jne 0x4d5750
lea ebp, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4d5788
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x4d56d8
mov eax, dword [esi - 0xc]
mov dword [ebp + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov ecx, dword [esp + 0x48]
add ebp, 0x10
push ecx
mov dword [ebx], ebp
call fcn.004d4b20
add esp, 8
test al, al
jne 0x4d57a8
test edi, edi
jne 0x4d5713
jmp 0x4d57bc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 1
push edx
call fcn.004ce7b0
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, ebx
jne 0x4d56f0
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], ebx
je 0x4d58af
mov ecx, dword [esp + 0x24]
mov ebp, dword [ecx + 0x78]
cmp ebp, ebx
je 0x4d58af
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x4d56ce
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ebp, dword [ebp]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4d5825
cmp eax, dword [esi - 0x10]
jne 0x4d5825
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4d585d
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4d56d8
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
push 0
lea ecx, [esp + 0x20]
push ecx
lea esi, [edi + 0x10]
lea ecx, [ebx + 0x58]
mov dword [esp + 0x24], esi
call fcn.004b0640
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d5891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4d58a5
mov ecx, dword [esp + 0x18]
push 0
push 0
push 2
push ebx
call fcn.004ce7b0
test ebp, ebp
jne 0x4d57e6
xor ebx, ebx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x78]
mov ebp, dword [esp + 0x18]
cmp esi, ebx
je 0x4d58f3
mov edi, edi
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x4d56ce
mov eax, dword [esi + 8]
mov esi, dword [esi]
cmp dword [eax + 0x48], ebx
jne 0x4d58ef
cmp dword [eax + 0x78], ebx
jne 0x4d58ef
cmp dword [eax + 0x60], ebx
jne 0x4d58ef
push ebx
push ebx
push 3
push eax
mov ecx, ebp
call fcn.004ce7b0
cmp esi, ebx
jne 0x4d58c0
cmp dword [esp + 0x44], 0xffffffff
jne 0x4d5b8a
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x4dc], 0xb
call fcn.004a9b50
add esp, 4
push 0x20019
lea esi, [eax + 0x10]
push esi
push DirectSoundEnumerateW
lea ecx, [esp + 0x98]
call fcn.004afb40
test eax, eax
sete byte [esp + 0x17]
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4d5968
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp byte [esp + 0x17], 0
mov esi, dword [esp + 0x8c]
mov edi, 0x100
je 0x4d5b25
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push 0x20019
push 0x407f24
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4e4], 0xc
call fcn.004afb40
test eax, eax
jne 0x4d5a72
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x24], edi
call fcn.004a9b50
add esp, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xd0]
add eax, 0x10
push edx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], eax
call fcn.004afbc0
test eax, eax
lea ecx, [esp + 0x1c]
sete byte [esp + 0x17]
call fcn.004a8c20
cmp byte [esp + 0x17], 0
je 0x4d5a72
push ecx
lea eax, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004a8f10
lea ecx, [esp + 0xb0]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
add esp, 8
push 1
mov dword [esp + 0x80], edx
mov ecx, dword [eax + 4]
push ebx
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x2c]
push 4
push 0x20
mov dword [esp + 0x94], edx
mov eax, dword [eax + 0xc]
push 0x10000
add ecx, 0xa8
push ecx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0xa4], eax
call fcn.004cf8c0
add esp, 0x10
push eax
mov ecx, ebp
call fcn.004ce7b0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 0x407f08
lea ecx, [esp + 0x98]
mov dword [esp + 0x2c], edi
call fcn.004afbc0
test eax, eax
jne 0x4d5b0e
push ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0xb0]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
add esp, 8
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 4]
push 1
push ebx
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
push 5
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x30]
push 0x20
push 0x10000
add eax, 0xa8
push eax
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0xa4], edx
call fcn.004cf8c0
add esp, 0x10
push eax
mov ecx, ebp
call fcn.004ce7b0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x4d8], 0xb
cmp eax, ebx
je 0x4d5b25
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x90
call fcn.007c8529
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4d8], 0xd
cmp eax, ebx
je 0x4d5b57
push 0x20
push 0x10000
push 0x40bc44
mov ecx, eax
call fcn.004cf180
jmp 0x4d5b59
xor eax, eax
push 1
push ebx
push 6
push eax
mov ecx, ebp
mov byte [esp + 0x4e8], 0xb
call fcn.004ce7b0
mov byte [esp + 0x4d8], 0xa
cmp esi, ebx
je 0x4d5f00
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d5f00
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
push 0x20019
push 0x407ef0
push DirectSoundEnumerateW
lea ecx, [esp + 0xa8]
mov byte [esp + 0x4e4], 0xe
call fcn.004afb40
mov ebp, dword [esp + 0x9c]
mov edi, 0x100
test eax, eax
jne 0x4d5ee9
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x30]
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xe0]
push ecx
push edx
push ebp
mov dword [esp + 0x40], edi
call esi
test eax, eax
jne 0x4d5ee9
lea eax, [esp + 0xac]
push eax
push ecx
lea edx, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.004a8f10
call fcn.005c4fc0
add esp, 8
cmp eax, ebx
jl 0x4d5ee0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
push 0x20019
lea eax, [esp + 0xd0]
push eax
push ebp
lea ecx, [esp + 0x98]
mov byte [esp + 0x4e4], 0xf
call fcn.004afb40
mov edi, dword [esp + 0x8c]
test eax, eax
jne 0x4d5eba
mov dword [esp + 0x40], ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x44]
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xe0]
push eax
push ecx
push edi
mov dword [esp + 0x40], 0x100
call esi
test eax, eax
jne 0x4d5eba
lea edx, [esp + 0xbc]
push edx
push ecx
lea eax, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.004a8f10
call fcn.005c4fc0
add esp, 8
cmp eax, ebx
jl 0x4d5ea4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push 0x20019
lea ecx, [esp + 0xd0]
push ecx
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4e4], 0x10
call fcn.004afb40
mov ebp, dword [esp + 0x30]
test eax, eax
jne 0x4d5e89
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xd0]
push eax
push 0x407f08
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0x100
call fcn.004afbc0
test eax, eax
je 0x4d5d4e
mov eax, ebp
mov byte [esp + 0x4d8], 0xf
cmp eax, ebx
je 0x4d5ea0
push eax
jmp 0x4d5e96
push ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0x68]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push 0x48b790
push eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x2c], 0x200
xor esi, esi
call fcn.004c17a0
add esp, 0x10
test eax, eax
jne 0x4d5e89
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x50]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2e0]
push edx
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4d5e89
push ecx
lea eax, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.004a8f10
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004d4b20
add esp, 8
test al, al
jne 0x4d5e40
lea edx, [esp + 0x7c]
push 0x48b790
push edx
inc esi
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x24], 0x200
call fcn.004c17a0
add esp, 8
test eax, eax
je 0x4d5dc2
jmp 0x4d5e89
mov eax, dword [esp + 0x24]
push 0x20
push 0x10000
add eax, 0xa8
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.004cf8c0
add esp, 0x10
mov esi, eax
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0xb0]
push eax
mov ecx, esi
call fcn.004cd970
mov ecx, dword [esp + 0x18]
push 1
push ebx
push 9
push esi
call fcn.004ce7b0
mov byte [esp + 0x4d8], 0xf
cmp ebp, ebx
je 0x4d5ea0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
inc dword [esp + 0x40]
mov ebp, dword [esp + 0x9c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4d5c7f
mov byte [esp + 0x4d8], 0xe
cmp edi, ebx
je 0x4d5ed4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov edi, 0x100
inc dword [esp + 0x2c]
jmp 0x4d5be0
mov byte [esp + 0x4d8], 0xa
cmp ebp, ebx
je 0x4d5efc
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 0xc], ebx
je 0x4d622d
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, ecx
add eax, 0xfffffff0
push eax
mov byte [esp + 0x4dc], 0x11
call fcn.004a9b50
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push 0x407ec0
push eax
mov byte [esp + 0x4e8], 0x12
call fcn.004b1a10
mov eax, dword [eax]
add esp, 0x10
push 0x20019
push eax
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004afb40
test eax, eax
mov eax, dword [esp + 0x2c]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x4d8], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x4d6216
push 0x200
lea ecx, [esp + 0xd0]
push ebx
push ecx
mov dword [esp + 0x24], edi
call fcn.00802690
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xd0]
push eax
push 0x407f08
lea ecx, [esp + 0x3c]
call fcn.004afbc0
cmp eax, ebx
je 0x4d6062
cmp eax, 0xd
jne 0x4d6216
push ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0x68]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push 0x48b790
push eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
call fcn.004c17a0
add esp, 0x10
test eax, eax
jne 0x4d6216
push ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0x68]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov esi, dword [0x48b79c]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [0x48b790]
mov ecx, dword [0x48b794]
add esp, 8
mov dword [esp + 0x8c], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa0], ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xd0]
push ecx
mov dword [esp + 0x90], edx
mov edx, dword [0x48b798]
push 0x407ef0
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0x24], edi
call fcn.004afbc0
test eax, eax
jne 0x4d6164
push ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0x68]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 0xc]
add esp, 8
mov dword [esp + 0x98], edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 0x407eb0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], edi
call fcn.004afbc0
test eax, eax
jne 0x4d61cf
push ecx
lea edx, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0x68]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xac], ecx
mov edx, dword [eax + 0xc]
add esp, 8
mov dword [esp + 0xa8], edx
mov eax, dword [esp + 0x24]
push 0x20
push 0x10000
add eax, 0xa8
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.004cf8c0
add esp, 0x10
mov esi, eax
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call fcn.004cd970
push 1
push ebx
push 7
push esi
mov ecx, ebp
call fcn.004ce7b0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x4d8], 0xa
cmp eax, ebx
je 0x4d622d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x4d623d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
push 0x20
push 0x10000
add ecx, 0xa8
push ecx
push 0x40bc34
call fcn.004cf8c0
add esp, 0x10
mov esi, eax
push 0x48b790
push 0x40b4f4
mov ecx, esi
call fcn.004cd970
push 1
push ebx
push 9
push esi
mov ecx, ebp
call fcn.004ce7b0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d62a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d62cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x4d8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d62f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.0080262b
add esp, 0x4c8
ret 8