Function at 0x4e3840
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x86368a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push 0x40957c
push ecx
mov byte [esp + 0x60], 2
call fcn.004b1a10
add esp, 0xc
cmp byte [esp + 0x64], 0
mov byte [esp + 0x54], 3
jne 0x4e39cd
mov eax, dword [esp + 0x5c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov esi, esp
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004e1c30
add esp, 4
test al, al
je 0x4e3918
mov eax, dword [esp + 0x18]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x6c], esp
mov esi, esp
push eax
call fcn.004a9b50
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
push eax
mov byte [esp + 0x64], 4
call fcn.004a9b50
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x60], 3
call fcn.004e1470
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], DirectSoundEnumerateW
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.004e0090
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x54], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e395b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x4e396a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e398f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e39b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push ecx
push DirectSoundEnumerateW
lea ecx, [esp + 0x5c]
call fcn.004dff00
mov edi, dword [esp + 0x40]
test eax, eax
jne 0x4e40ac
mov eax, dword [esp + 0x60]
xor ecx, ecx
cmp eax, ebp
setne cl
mov esi, eax
cmp ecx, ebp
je 0x4e40ac
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
jne 0x4e40ac
cmp byte [0x8d2c24], 0
je 0x4e3a4a
push 1
push 0x402a88
push 0x409964
lea ecx, [esp + 0x4c]
call fcn.004dffb0
jmp 0x4e3a56
push 0x409964
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x409568
lea ecx, [esp + 0x2c]
call fcn.004b2080
push 0x409564
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 5
call fcn.004b2080
lea eax, [esp + 0x30]
push 1
push eax
mov byte [esp + 0x5c], 6
call fcn.005c2360
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x68], 7
call fcn.004ac680
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x74], 8
call fcn.004ac680
add esp, 0x20
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3ada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3aff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3b24
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 + 0x54], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e3b49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x68], 0
je 0x4e3cc8
push 0x4099b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004af3d0
add esp, 0xc
mov eax, dword [eax]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
mov ebx, 1
push DirectSoundEnumerateW
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], 0xe
mov dword [esp + 0x3c], ebx
call fcn.004dff00
test eax, eax
jne 0x4e3c3f
push 0x8189
lea ecx, [esp + 0x3c]
call fcn.004a8f10
mov eax, dword [eax]
push 1
push eax
mov ebx, 3
push ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x2c], ebx
call fcn.004dffb0
test eax, eax
jne 0x4e3c3f
mov eax, dword [esp + 0x1c]
push 1
push eax
push 0x40975c
lea ecx, [esp + 0x4c]
call fcn.004dffb0
test eax, eax
jne 0x4e3c3f
push 0x409980
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
mov ebx, 7
push DirectSoundEnumerateW
lea ecx, [esp + 0x5c]
mov dword [esp + 0x3c], ebx
call fcn.004dff00
test eax, eax
jne 0x4e3c3f
mov eax, dword [0x8d2c38]
push 1
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.004dffb0
mov byte [esp + 0x17], 0
test eax, eax
je 0x4e3c44
mov byte [esp + 0x17], 1
test bl, 4
je 0x4e3c59
and ebx, 0xfffffffb
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
call fcn.004a8c20
test bl, 2
je 0x4e3c6e
and ebx, 0xfffffffd
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ebx
call fcn.004a8c20
mov dword [esp + 0x54], 0xd
test bl, 1
je 0x4e3c8b
and ebx, 0xfffffffe
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.004a8c20
cmp byte [esp + 0x17], 0
je 0x4e3d24
lea ecx, [esp + 0x1c]
call fcn.004a8c20
lea ecx, [esp + 0x18]
call fcn.004a8c20
lea ecx, [esp + 0x40]
call fcn.004b0100
lea ecx, [esp + 0x5c]
call fcn.004a8c20
lea ecx, [esp + 0x60]
call fcn.004a8c20
jmp 0x4e4129
lea ecx, [esp + 0x40]
call reloc.ole32.dll_CoUninitialize
push 0x4099b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x4c], DirectSoundEnumerateW
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
call fcn.004e0090
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 0x4e3d24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x409668
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push DirectSoundEnumerateW
lea ecx, [esp + 0x5c]
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 0x4e3d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4e3c96
cmp byte [esp + 0x68], bl
je 0x4e3df0
push 0x818a
lea ecx, [esp + 0x40]
call fcn.004a8f10
mov eax, dword [eax]
mov ebx, dword [esp + 0x20]
push 1
push eax
push ebp
lea ecx, [esp + 0x4c]
or ebx, 8
call fcn.004dffb0
test eax, eax
jne 0x4e3dce
mov ecx, dword [esp + 0x1c]
push 1
push ecx
push 0x40975c
lea ecx, [esp + 0x4c]
call fcn.004dffb0
mov byte [esp + 0x17], 0
test eax, eax
je 0x4e3dd3
mov byte [esp + 0x17], 1
test bl, 8
je 0x4e3de4
lea ecx, [esp + 0x3c]
and ebx, 0xfffffff7
call fcn.004a8c20
cmp byte [esp + 0x17], 0
je 0x4e3e2a
jmp 0x4e3c96
push 1
push 0x402a88
push ebp
lea ecx, [esp + 0x4c]
call fcn.004dffb0
test eax, eax
jne 0x4e3c96
push 1
push 0x402a88
push 0x40975c
lea ecx, [esp + 0x4c]
call fcn.004dffb0
test eax, eax
jne 0x4e3c96
mov ebx, dword [esp + 0x20]
push 0x409640
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push DirectSoundEnumerateW
lea ecx, [esp + 0x5c]
or ebx, 0x10
call fcn.004dff00
test eax, eax
jne 0x4e3e7e
mov ecx, dword [0x8d2c34]
push 1
push ecx
push ebp
lea ecx, [esp + 0x4c]
call fcn.004dffb0
mov byte [esp + 0x17], 0
test eax, eax
je 0x4e3e83
mov byte [esp + 0x17], 1
test bl, 0x10
je 0x4e3e94
lea ecx, [esp + 0x3c]
and ebx, 0xffffffef
call fcn.004a8c20
cmp byte [esp + 0x17], 0
jne 0x4e3c96
mov edx, dword [0x8b7350]
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x5c]
call fcn.004dff00
test eax, eax
jne 0x4e3c96
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push 1
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004dffb0
test eax, eax
jne 0x4e3c96
cmp byte [esp + 0x6c], al
je 0x4e3fb1
cmp dword [0x8d2c28], ebp
je 0x4e3f40
mov edx, dword [esp + 0x5c]
push edx
call dword [0x8d2c2c]
mov esi, eax
add esp, 4
cmp esi, ebp
jl 0x4e3f40
mov edi, dword [0x8d2c40]
call fcn.007c9a2f
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x44]
push esi
push edi
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
test eax, eax
je 0x4e3f40
mov ecx, dword [0x8d2c40]
push esi
push ecx
lea edx, [esp + 0x24]
push 0x40956c
push edx
call fcn.004aa600
add esp, 0x10
push 0x409548
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push eax
push DirectSoundEnumerateW
lea ecx, [esp + 0x5c]
or ebx, 0x20
call fcn.004dff00
test eax, eax
jne 0x4e3f92
mov edx, dword [esp + 0x1c]
push 1
push edx
push ebp
lea ecx, [esp + 0x4c]
call fcn.004dffb0
mov byte [esp + 0x17], 0
test eax, eax
je 0x4e3f97
mov byte [esp + 0x17], 1
test bl, 0x20
je 0x4e3fa5
lea ecx, [esp + 0x3c]
call fcn.004a8c20
cmp byte [esp + 0x17], 0
je 0x4e3ff6
jmp 0x4e3c96
lea ecx, [esp + 0x40]
call reloc.ole32.dll_CoUninitialize
push 0x409548
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x4c], DirectSoundEnumerateW
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
call fcn.004e0090
lea ecx, [esp + 0x3c]
call fcn.004a8c20
mov eax, dword [esp + 0x5c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004e1c30
mov ecx, dword [esp + 0x68]
add esp, 4
cmp cl, al
je 0x4e4069
mov eax, dword [esp + 0x18]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x6c], esp
mov esi, esp
push eax
call fcn.004a9b50
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
push eax
mov byte [esp + 0x64], 0x10
call fcn.004a9b50
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x60], 0xd
call fcn.004e1470
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004a8c20
lea ecx, [esp + 0x18]
call fcn.004a8c20
lea ecx, [esp + 0x40]
call fcn.004b0100
lea ecx, [esp + 0x5c]
call fcn.004a8c20
lea ecx, [esp + 0x60]
call fcn.004a8c20
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x54], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e40d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebp
je 0x4e40dc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e4101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e4129
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret