Function at 0x401ca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a71b2
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x206
mov dword [ebp - 0x23c], eax
xor ebx, ebx
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x234], ecx
mov word [ebp - 0x21c], dx
call fcn.00493520
add esp, 0xc
mov dword [ebp - 0x238], 0x104
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
lea ecx, [ebp - 0x220]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStore_shellWindows.taskbarpin
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401d87
mov edx, dword [ebp - 0x220]
push str.ExplorerCommandHandler
lea eax, [ebp - 0x22c]
push eax
lea edi, [ebp - 0x238]
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], ebx
call fcn.004024e0
test eax, eax
mov eax, dword [ebp - 0x220]
je 0x401d91
cmp eax, ebx
je 0x401d87
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x401fc9
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x401da4
push eax
call edi
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x22c]
push ecx
mov eax, str.SOFTWAREClasses_shell:
mov ecx, SysReAllocString
mov dword [ebp - 0x228], ebx
call fcn.00402460
test eax, eax
je 0x401ddb
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x401dd1
push eax
call edi
mov eax, 0x80004005
jmp 0x401fc9
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x22c]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 1
push ebx
push str.ExplorerCommandHandler
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x401e1e
cmp esi, ebx
je 0x401e14
push esi
call edi
mov eax, 0x80004005
jmp 0x401fc9
lea esi, [ebp - 0x22c]
call fcn.00402640
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], ebx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x230]
push edx
push 0x4b086c
push 0x15
push ebx
push 0x4b087c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x401f65
mov edi, dword [ebp - 0x23c]
lea esi, [ebp - 0x254]
call fcn.00402350
mov byte [ebp - 4], 3
mov edi, dword [eax]
mov edx, dword [ebp - 0x230]
mov esi, dword [edx]
lea ecx, [ebp - 0x244]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x24]
push edx
call ecx
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x234]
cmp eax, ebx
jne 0x401fe5
xor esi, esi
mov dword [ebp - 0x234], esi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax]
lea edx, [ebp - 0x240]
push edx
push esi
push eax
mov eax, dword [ecx + 0x30]
call eax
push esi
mov edi, eax
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x401f4f
mov edi, 0x4ba298
lea esi, [ebp - 0x254]
call fcn.00402350
mov byte [ebp - 4], 5
mov edi, dword [eax]
mov edx, dword [ebp - 0x240]
mov esi, dword [edx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x5c]
push edx
call ecx
lea edx, [ebp - 0x254]
push edx
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, eax
mov dword [ebp - 0x230], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x22c]
push eax
mov edx, 0x2001f
mov eax, str.SOFTWAREClasses_shell
mov ecx, SysReAllocString
call fcn.004025d0
test eax, eax
je 0x401f8f
mov edi, 0x80004005
push 0x4ba298
lea ecx, [ebp - 0x22c]
call fcn.00402190
lea esi, [ebp - 0x22c]
call fcn.00402640
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
push ebx
call esi
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x401fc7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x234], esi
cmp esi, ebx
jne 0x401ed6
push 0x8007000e
call fcn.004035c0
int3