Function at 0x4896f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3018
call fcn.004daad0
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x3010], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
mov edx, 0x540df0
push edi
mov dword [ebp - 0x3014], eax
mov eax, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2004]
mov dword [ebp - 0x3018], eax
call fcn.004ae1e0
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0
push 0x20006
push 0
lea eax, [ebp - 0x2004]
push eax
push 0
push eax
push 0x80000000
call esi
test eax, eax
jne 0x489a4e
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.004ad6d0
lea ecx, [ebp - 0x2004]
add esp, 8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489790
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push 0
push dword [ebp - 0x3008]
call edi
test eax, eax
jne 0x489a4e
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0
push 0x20006
push 0
lea eax, [ebp - 0x2004]
push eax
push 0
push eax
push 0x80000000
call esi
test eax, eax
jne 0x489a4e
push dword [ebp - 0x3010]
lea eax, [ebp - 0x2004]
push eax
call fcn.004ad6d0
lea ecx, [ebp - 0x2004]
add esp, 8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489820
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push 0
push dword [ebp - 0x3008]
call edi
test eax, eax
jne 0x489a4e
push ebx
lea eax, [ebp - 0x3004]
push str._sDefaultIcon
push eax
call fcn.00402170
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004ad6d0
add esp, 0x14
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0
push 0x20006
push 0
push str.DefaultIcon
push 0
lea eax, [ebp - 0x2004]
push eax
push 0x80000000
call esi
test eax, eax
jne 0x489a4e
push dword [ebp - 0x3014]
lea eax, [ebp - 0x2004]
push eax
call fcn.004ad6d0
lea ecx, [ebp - 0x2004]
add esp, 8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4898d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push 0
push dword [ebp - 0x3008]
call edi
test eax, eax
jne 0x489a4e
push ebx
lea eax, [ebp - 0x3004]
push str._sShell
push eax
call fcn.00402170
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004ad6d0
add esp, 0x14
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0
push 0x20006
push 0
push str.Shell
push 0
lea eax, [ebp - 0x2004]
push eax
push 0x80000000
call esi
test eax, eax
jne 0x489a4e
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0
push 0x20006
push 0
push str.Open
push 0
push str.Open
push dword [ebp - 0x3008]
call esi
test eax, eax
jne 0x489a4e
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0
push 0x20006
push 0
push str.Command
push 0
push str.Command
push dword [ebp - 0x3008]
call esi
test eax, eax
jne 0x489a4e
push dword [ebp - 0x3018]
lea eax, [ebp - 0x2004]
push eax
call fcn.004ad6d0
lea ecx, [ebp - 0x2004]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4899e4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push 0
push dword [ebp - 0x3008]
call edi
test eax, eax
jne 0x489a4e
push eax
push 0x2e
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9e67
mov esp, ebp
pop ebp
ret