Function at 0x4ca150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3018
call fcn.00426620
mov eax, dword [0x54a2f8]
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, 0x52ecdc
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.004f2900
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 0x4ca4ae
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.004f34d0
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 0x4ca1f0
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 0x4ca4ae
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 0x4ca4ae
push dword [ebp - 0x3010]
lea eax, [ebp - 0x2004]
push eax
call fcn.004f34d0
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 0x4ca280
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 0x4ca4ae
push ebx
lea eax, [ebp - 0x3004]
push str._sDefaultIcon
push eax
call fcn.004013a0
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004f34d0
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 0x4ca4ae
push dword [ebp - 0x3014]
lea eax, [ebp - 0x2004]
push eax
call fcn.004f34d0
lea ecx, [ebp - 0x2004]
add esp, 8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ca330
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 0x4ca4ae
push ebx
lea eax, [ebp - 0x3004]
push str._sShell
push eax
call fcn.004013a0
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004f34d0
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 0x4ca4ae
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 0x4ca4ae
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 0x4ca4ae
push dword [ebp - 0x3018]
lea eax, [ebp - 0x2004]
push eax
call fcn.004f34d0
lea ecx, [ebp - 0x2004]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ca444
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 0x4ca4ae
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.004259b7
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.004259b7
mov esp, ebp
pop ebp
ret