Function at 0x4e25e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x863450
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
cmp byte [esp + 0x48], 0
mov dword [esp + 0x40], edi
je 0x4e29a2
push 0x409568
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0
call fcn.004b2080
push 0x409564
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.004b2080
lea eax, [esp + 0x28]
push 1
push eax
mov byte [esp + 0x48], 2
call fcn.005c2360
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x54], 3
call fcn.004ac680
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x60], 4
call fcn.004ac680
add esp, 0x20
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x40], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e26ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x40], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e26d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x40], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e26f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e271c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push edi
push 0x2001f
push edi
push edi
push 0x409768
push DirectSoundEnumerateW
lea ecx, [esp + 0x48]
call fcn.004dff00
test eax, eax
jne 0x4e297b
call fcn.007cff5d
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4e275a
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 + 0x20], esi
push 0x8189
mov byte [esp + 0x44], 0xa
call fcn.007cfe78
cmp eax, edi
je 0x4e2790
push 0x8189
push eax
lea ecx, [esp + 0x28]
call fcn.004a8d10
mov esi, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor eax, eax
cmp esi, edi
setne al
mov byte [esp + 0x40], 9
cmp eax, edi
mov edi, dword [esp + 0x2c]
je 0x4e27c2
push esi
call ebx
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0
push edi
call ebp
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e27de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
je 0x4e2804
push eax
call ebx
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x40975c
push edi
call ebp
push 0
push 0
push 0x2001f
push 0
push 0
push 0x409708
push DirectSoundEnumerateW
lea ecx, [esp + 0x48]
call fcn.004dff00
test eax, eax
jne 0x4e2979
mov eax, dword [0x8d2c38]
xor ecx, ecx
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
je 0x4e2854
push eax
call ebx
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x2c]
push edx
push esi
push 1
push 0
push 0
push eax
call ebp
push 0
push 0
push 0x2001f
push 0
push 0
push 0x4096cc
push DirectSoundEnumerateW
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call fcn.004dff00
test eax, eax
jne 0x4e2979
mov byte [esp + 0x48], al
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4e289f
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 + 0x20], esi
push 0x818a
mov byte [esp + 0x44], 0xb
call fcn.007cfe78
test eax, eax
je 0x4e28d5
push 0x818a
push eax
lea ecx, [esp + 0x28]
call fcn.004a8d10
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x40], 9
test eax, eax
je 0x4e28fb
push esi
call ebx
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0
push edi
call ebp
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e2917
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
je 0x4e293d
push eax
call ebx
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x40975c
push edi
call ebp
push 0
push 0
push 0x2001f
push 0
push 0
push 0x409680
push DirectSoundEnumerateW
lea ecx, [esp + 0x48]
call fcn.004dff00
test eax, eax
jne 0x4e2979
mov edx, dword [0x8d2c34]
push 1
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.004dffb0
mov byte [esp + 0x48], 1
xor edi, edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e29de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4e29de
push 0x409768
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], DirectSoundEnumerateW
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.004e0090
test eax, eax
push 0x4096cc
lea ecx, [esp + 0x30]
sete bl
call fcn.004e0090
test eax, eax
sete cl
and bl, cl
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4e29ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret