Function at 0x4e0910
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x8631a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.004e0430
test al, al
je 0x4e0f0c
cmp dword [0x8d2c28], ebx
je 0x4e0977
call fcn.007c9a2f
mov edi, dword [eax + 4]
mov esi, dword [edi]
call dword [0x8d2c30]
push eax
mov eax, dword [esi + 0x80]
push 0x409384
push 0x402d18
mov ecx, edi
call eax
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.005c2360
add esp, 8
xor esi, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 0x60]
mov ecx, dword [edx]
mov byte [esp + 0x58], 1
cmp ecx, ebx
jne 0x4e09f9
call fcn.004e01c0
cmp esi, ebx
je 0x4e09b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e09df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [esp + 0x30]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x4e0e5b
mov esi, dword [ecx + 8]
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], ebx
lea ecx, [esi - 4]
jl 0x4e0a36
cmp eax, dword [esi - 0x10]
jne 0x4e0a36
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4e0a6e
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
cmp edi, ebx
je 0x4e0e65
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
add edi, 0x10
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push 0x40957c
push edx
mov byte [esp + 0x64], 2
call fcn.004b1a10
add esp, 0xc
mov byte [esp + 0x58], 3
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4e0e5b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push edi
mov byte [esp + 0x5c], 4
call dword [0x8d2c2c]
mov esi, eax
add esp, 4
cmp esi, ebx
jl 0x4e0b0b
mov edi, dword [0x8d2c40]
call fcn.007c9a2f
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x44]
push esi
push edi
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconW]
test eax, eax
je 0x4e0b0b
mov edx, dword [0x8d2c40]
push esi
push edx
lea eax, [esp + 0x1c]
push 0x40956c
push eax
call fcn.004aa600
mov ebp, dword [esp + 0x24]
add esp, 0x10
cmp dword [ebp - 0xc], ebx
jne 0x4e0cfb
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4e0e5b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, 0x409568
mov byte [esp + 0x58], 5
test ecx, 0xffff0000
jne 0x4e0b66
mov edx, ecx
movzx esi, dx
push esi
call fcn.007cfe78
cmp eax, ebx
je 0x4e0b74
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.004a8d10
jmp 0x4e0b74
push 0x409568
lea ecx, [esp + 0x24]
call fcn.004b10a0
mov byte [esp + 0x58], 6
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4e0e5b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, 0x409564
mov byte [esp + 0x58], 7
test ecx, 0xffff0000
jne 0x4e0bcb
mov edx, ecx
movzx esi, dx
push esi
call fcn.007cfe78
cmp eax, ebx
je 0x4e0bd9
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004a8d10
jmp 0x4e0bd9
push 0x409564
lea ecx, [esp + 0x20]
call fcn.004b10a0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x64], 8
call fcn.004ac680
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x70], 9
call fcn.004ac680
add esp, 0x18
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
mov byte [esp + 0x58], 0xa
cmp eax, esi
je 0x4e0c67
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4e0c55
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4e0c55
push eax
call fcn.004a9b50
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4e0c4a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
xor ebx, ebx
jmp 0x4e0c67
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a8db0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x58], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0c8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x58], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0cb1
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 + 0x58], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0cd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x58], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x409548
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004af3d0
mov eax, dword [eax]
or dword [esp + 0x24], 1
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push DirectSoundEnumerateW
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4e0d8c
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, ebx
je 0x4e0d51
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
cmp eax, ebx
jne 0x4e0d8c
xor eax, eax
cmp ebp, ebx
setne al
cmp eax, ebx
je 0x4e0d8c
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x4e0d8c
xor bl, bl
jmp 0x4e0d8e
mov bl, 1
test byte [esp + 0x18], 1
je 0x4e0dba
mov eax, dword [esp + 0x3c]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0dba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4e0e6a
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
je 0x4e0dd7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], esi
lea eax, [ebp - 0x10]
mov dword [esp + 0x48], esi
mov byte [esp + 0x58], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0dfc
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 + 0x58], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0e21
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 + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0e46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp dword [esp + 0x30], esi
jne 0x4e09f5
mov esi, dword [esp + 0x44]
jmp 0x4e09a7
push 0x80004005
call fcn.004a8210
call fcn.004a8580
lea eax, [ebp - 0x10]
mov byte [esp + 0x58], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0e8b
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 + 0x58], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0eb0
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 + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4e0ee4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0f0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret