Function at 0x4e2b40
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x863518
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.005c2360
add esp, 8
mov esi, dword [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0x34], ebp
cmp esi, ebp
jl 0x4e2bd4
cmp esi, 4
jae 0x4e2bd4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
cmp byte [esp + 0x40], 0
mov byte [esp + 0x34], 1
je 0x4e2f42
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push 0x4098e4
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
je 0x4e2c12
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4e2bd4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2bfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x20]
call reloc.ole32.dll_CoUninitialize
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
lea edi, [esi + 0x8d2c44]
push edi
lea ecx, [esp + 0x1c]
push 0x409428
push ecx
call fcn.004b1a10
push 0x409410
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x4c], 2
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push DirectSoundEnumerateW
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
mov eax, dword [esp + 0x3c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2c8f
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 + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2cb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4e2ccf
lea ecx, [esp + 0x20]
call fcn.004b0100
lea ecx, [esp + 0x14]
call fcn.004a8c20
jmp 0x4e2bfc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x403954
push edx
call fcn.004b1a10
push 0x403954
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x4c], 3
call fcn.004af3d0
lea ecx, [esi + 0x8d2c48]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x58], 4
call fcn.004ac680
mov eax, dword [eax]
add esp, 0x24
push 1
push eax
push ebp
lea ecx, [esp + 0x2c]
call fcn.004dffb0
lea ecx, [esp + 0x3c]
call fcn.004a8c20
lea ecx, [esp + 0x18]
call fcn.004a8c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.004a8c20
lea ecx, [esp + 0x20]
call reloc.ole32.dll_CoUninitialize
push edi
lea eax, [esp + 0x20]
push 0x409838
push eax
call fcn.004b1a10
push 0x409484
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x4c], 5
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
lea ecx, [esp + 0x3c]
setne bl
call fcn.004a8c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.004a8c20
test bl, bl
jne 0x4e2cb8
movzx edx, word [esi + 0x8d2c4c]
push edx
lea ecx, [esp + 0x40]
call fcn.004a8f10
mov eax, dword [eax]
push 1
push eax
push 0x409828
lea ecx, [esp + 0x2c]
call fcn.004dffb0
lea ecx, [esp + 0x3c]
call fcn.004a8c20
push 1
push 0x409308
push 0x409814
lea ecx, [esp + 0x2c]
call fcn.004dffb0
push 1
push 0x4098e4
push 0x4097f8
lea ecx, [esp + 0x2c]
call fcn.004dffb0
push edi
lea eax, [esp + 0x40]
push 0x4097ec
push eax
call fcn.004b1a10
mov eax, dword [eax]
add esp, 0xc
push 1
push eax
push 0x4097d4
lea ecx, [esp + 0x2c]
call fcn.004dffb0
lea ecx, [esp + 0x3c]
call fcn.004a8c20
push 0x4097cc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push 1
push eax
push 0x4097b4
lea ecx, [esp + 0x2c]
call fcn.004dffb0
lea ecx, [esp + 0x3c]
call fcn.004a8c20
lea ecx, [esp + 0x20]
call reloc.ole32.dll_CoUninitialize
push edi
lea eax, [esp + 0x20]
push 0x409498
push eax
call fcn.004b1a10
push 0x409484
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x4c], 6
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
lea ecx, [esp + 0x3c]
setne bl
call fcn.004a8c20
mov byte [esp + 0x34], 1
lea ecx, [esp + 0x1c]
call fcn.004a8c20
test bl, bl
jne 0x4e2cb8
push 0x4097ac
lea ecx, [esp + 0x1c]
call fcn.004b2080
push edi
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x40], 7
call fcn.004ac680
push 0x409484
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x4c], 8
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
push 1
push 0x402a88
push eax
lea ecx, [esp + 0x2c]
call fcn.004dffb0
lea ecx, [esp + 0x3c]
call fcn.004a8c20
lea ecx, [esp + 0x1c]
call fcn.004a8c20
lea ecx, [esp + 0x18]
call fcn.004a8c20
jmp 0x4e305b
lea esi, [esi + esi*2]
lea esi, [esi*4 + 0x8d2c44]
push esi
lea ecx, [esp + 0x20]
push 0x409498
push ecx
call fcn.004b1a10
push 0x409484
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x4c], 9
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x3c]
call fcn.004dff00
test eax, eax
mov eax, dword [esp + 0x3c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2fb3
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 + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e2fd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4e2bc5
push esi
lea ecx, [esp + 0x20]
push 0x409474
push ecx
call fcn.004b1a10
push 0x409484
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x4c], 0xa
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3036
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 + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e305b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
call reloc.ole32.dll_CoUninitialize
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4e3073
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e309b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret