Function at 0x4ed790
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x544da8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call fcn.00505193
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4ed7d3
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ebx
call fcn.00505193
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4ed801
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], 1
call fcn.00505193
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4ed830
push 0x80004005
call fcn.00402900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c], 2
call fcn.00504604
cmp eax, ebx
je 0x4ed85b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
cmp eax, ebx
jne 0x4ed85f
xor edi, edi
jmp 0x4ed871
mov edi, dword [eax + 0x60]
cmp edi, ebx
jne 0x4ed86a
xor edi, edi
jmp 0x4ed871
add dword [edi + 0x1a0c], 1
test dword [edi + 8], 0x100000
je 0x4ed8a3
test dword [edi + 0x34], 0x200
lea eax, [esp + 0x14]
je 0x4ed895
lea ecx, [edi + 0x4ec]
push ecx
mov esi, 0x109a
jmp 0x4ed8f0
lea edx, [edi + 0x4ec]
push edx
mov esi, 0xcaf
jmp 0x4ed8f0
test dword [edi + 0xc], 0x400
je 0x4ed8b3
mov esi, 0xce7
jmp 0x4ed8e5
mov eax, dword [edi + 0x34]
test eax, 0x800
je 0x4ed8cb
lea ecx, [edi + 0x4ec]
push ecx
mov esi, 0x109b
jmp 0x4ed8ec
test eax, 0x800000
je 0x4ed8e0
lea edx, [edi + 0x4ec]
push edx
mov esi, 0x109a
jmp 0x4ed8ec
mov esi, 0x93d
lea eax, [edi + 0x4ec]
push eax
lea eax, [esp + 0x18]
call fcn.00474a80
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x28]
push 0x582b98
push ecx
call fcn.00402c70
push esi
lea edx, [esp + 0x28]
push str._s.lnk
push edx
call fcn.00402c70
add esp, 0x18
add dword [edi + 0x1a0c], 0xffffffff
jne 0x4ed930
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push ebx
push str.SOFTWARERealtekAudioGUI_INFORMATION
mov byte [esp + 0x4c], 3
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4ed9b3
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 4], 1
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
jle 0x4ed97f
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004029d0
mov ebp, dword [esp + 0x18]
xor eax, eax
test ebp, ebp
setne al
test eax, eax
jne 0x4ed994
push 0x80004005
call fcn.00402900
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebp
push 1
push 0
push str.ShortCutLnk
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4ed9ea
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SOFTWARERealtekAudioGUI_INFORMATION
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov ebp, dword [esp + 0x18]
jne 0x4ed9ea
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Realtek.GUI.ToastMsg
call fcn.00404670
mov byte [esp + 0x40], 4
mov esi, dword [esp + 0x28]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push esi
call fcn.00404600
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x44], 3
call fcn.004edac0
add esp, 8
test ebx, ebx
mov edi, eax
je 0x4eda36
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebp, 0xfffffff0
mov byte [esp + 0x3c], 1
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4eda58
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x3c], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eda76
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eda9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret