Function at 0x4e1470
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x8632b0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24c], 1
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4e14d6
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x24c], 2
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4e1508
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push 0x208
lea ecx, [esp + 0x3c]
push ebp
mov edi, 0x104
push ecx
mov byte [esp + 0x258], 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], edi
call fcn.00802690
add esp, 0xc
cmp dword [0x8d2c3c], ebp
jne 0x4e15ae
lea edx, [esp + 0x2c]
push edx
push 0x409334
push 3
push ebp
push 0x48b770
mov dword [esp + 0x40], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x8d2c3c]
mov esi, eax
cmp ecx, eax
je 0x4e15a6
cmp eax, ebp
je 0x4e1592
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [0x8d2c3c]
cmp ecx, ebp
je 0x4e159e
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov ecx, esi
mov dword [0x8d2c3c], ecx
cmp ecx, ebp
je 0x4e184e
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4e15c8
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
cmp byte [esp + 0x25c], 0
mov byte [esp + 0x24c], 5
je 0x4e17b4
mov ecx, dword [esp + 0x254]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push ecx
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
je 0x4e16f4
lea eax, [esi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x24c], 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e1639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4e1648
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [esp + 0x24c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e166c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x254]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x24c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e16bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x258]
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e16ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4e1bf9
mov eax, dword [0x8d2c3c]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x258]
push 1
push ebp
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4e17ac
mov ecx, dword [esp + 0x258]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push ecx
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
je 0x4e178a
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x18]
call fcn.004a8c20
lea ecx, [esp + 0x20]
call fcn.004b0100
lea ecx, [esp + 0x30]
call fcn.004a8c20
lea ecx, [esp + 0x14]
call fcn.004a8c20
lea ecx, [esp + 0x254]
call fcn.004a8c20
lea ecx, [esp + 0x258]
call fcn.004a8c20
xor al, al
jmp 0x4e1bf9
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x8b7348]
push 1
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004dffb0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x8b7344]
push eax
jmp 0x4e17f9
mov ecx, dword [esp + 0x258]
push 0x2001f
push ecx
push DirectSoundEnumerateW
lea ecx, [esp + 0x2c]
call fcn.004afb40
test eax, eax
jne 0x4e1615
mov eax, dword [0x8b7348]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004afbc0
test eax, eax
jne 0x4e1806
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a8ed0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x254]
mov eax, dword [0x8d2c3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ebp
push ecx
push esi
push eax
call edx
mov dword [esp + 0x34], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x24c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4e1b38
cmp byte [esp + 0x25c], 0
je 0x4e1a11
mov ecx, dword [esp + 0x254]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push ecx
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
je 0x4e18ab
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4e188e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [esp + 0x24c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4e1660
push 0x208
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x28], edi
call fcn.00802690
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
lea ecx, [esp + 0x2c]
call fcn.004afbc0
test eax, eax
jne 0x4e1911
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
call fcn.004a8f10
mov ecx, eax
mov byte [esp + 0x24c], 6
mov dword [esp + 0x18], 1
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov edx, dword [eax]
cmp dword [edx - 0xc], ebp
je 0x4e1911
mov bl, 1
jmp 0x4e1913
xor bl, bl
test byte [esp + 0x18], 1
mov dword [esp + 0x24c], 4
je 0x4e1945
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4e1957
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.004a8ed0
mov eax, dword [esp + 0x258]
mov edi, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebp
setne cl
mov esi, eax
cmp ecx, ebp
je 0x4e198b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebp
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebp
je 0x4e19a2
cmp edi, ebp
je 0x4e1996
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
jmp 0x4e164b
mov ecx, dword [esp + 0x258]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push ecx
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
lea ecx, [esp + 0x20]
test eax, eax
je 0x4e19ff
call fcn.004b0100
lea ecx, [esp + 0x30]
call fcn.004a8c20
lea ecx, [esp + 0x14]
call fcn.004a8c20
lea ecx, [esp + 0x254]
call fcn.004a8c20
lea ecx, [esp + 0x258]
call fcn.004a8c20
xor al, al
jmp 0x4e1bf9
mov edx, dword [esp + 0x14]
mov eax, dword [0x8b7348]
push 1
push edx
push eax
jmp 0x4e1b33
push 0x208
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x28], edi
call fcn.00802690
mov edx, dword [esp + 0x264]
add esp, 0xc
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push edx
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
jne 0x4e1639
mov eax, dword [0x8b7348]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004afbc0
test eax, eax
jne 0x4e1aa3
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
call fcn.004a8f10
mov ecx, eax
mov byte [esp + 0x24c], 7
mov dword [esp + 0x18], 2
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov edx, dword [eax]
cmp dword [edx - 0xc], ebp
je 0x4e1aa3
mov bl, 1
jmp 0x4e1aa5
xor bl, bl
test byte [esp + 0x18], 2
mov dword [esp + 0x24c], 4
je 0x4e1ad7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4e1ae9
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.004a8ed0
mov edx, dword [esp + 0x254]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push edx
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
je 0x4e1b27
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4e1b1b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
jmp 0x4e164b
mov ecx, dword [esp + 0x14]
push 1
push ecx
push ebp
lea ecx, [esp + 0x2c]
call fcn.004dffb0
cmp dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
setge bl
cmp eax, ebp
je 0x4e1b4e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e1b76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1b9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x254]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1bc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x258]
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0080262b
add esp, 0x23c
ret