Function at 0x496280
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635552
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebx + 0xc]
push 0x208
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005feb40
add esp, 0xc
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0x20019
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStore_shellWindows.taskbarpin
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.00416a30
test eax, eax
je 0x496339
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4963a6
push eax
jmp 0x4963a0
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0x208
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.ExplorerCommandHandler
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49639b
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x496380
cmp eax, 2
jne 0x49639b
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4963c6
test al, 1
jne 0x49639b
shr eax, 1
cmp word [ebp + eax*2 - 0x222], 0
je 0x4963cf
test edi, edi
je 0x4963a6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
xor eax, eax
mov word [ebp - 0x220], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4963e6
push edi
call esi
mov dword [ebp - 0x234], 0
sub esp, 8
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x234]
push 0x2001f
sub esp, 8
push str.SOFTWAREClasses_shell:
push reloc.WS2_32.dll_accept
call fcn.00416f80
test eax, eax
jne 0x496696
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496421
mov edi, dword [ebp - 0x234]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push str.ExplorerCommandHandler
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4966ee
test edi, edi
je 0x49646c
push edi
call esi
xor edi, edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push 0x68a99c
push 0x15
push 0
push 0x68a9ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x49666a
xor eax, eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x4966fe
mov esi, dword [ebp - 0x25c]
mov eax, 8
push esi
mov word [ebp - 0x258], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x496518
test esi, esi
jne 0x496704
mov byte [ebp - 4], 3
lea eax, [ebp - 0x23c]
mov ecx, dword [ebp - 0x238]
movups xmm0, xmmword [ebp - 0x258]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x24]
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x4966ac
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x4966ac
mov eax, dword [ebp - 0x244]
test eax, eax
jne 0x49657b
xor esi, esi
mov dword [ebp - 0x244], esi
jmp 0x496598
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x244], esi
test esi, esi
je 0x496724
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push edx
push esi
push ecx
call dword [eax + 0x30]
push esi
mov edi, eax
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x49664e
cmp dword [ebp - 0x240], 0
je 0x49664e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x258]
push eax
call edi
test eax, eax
js 0x49672e
mov eax, 8
push 0x6ad880
mov word [ebp - 0x258], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x496704
mov byte [ebp - 4], 5
sub esp, 0x10
mov ecx, dword [ebp - 0x240]
mov eax, esp
movups xmm0, xmmword [ebp - 0x258]
push ecx
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x5c]
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x258]
push eax
call edi
test esi, esi
jns 0x49664e
push str.InvokeVerb_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], 0
push 0x2001f
push str.SOFTWAREClasses_shell
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x234]
call fcn.00416a30
test eax, eax
je 0x4966bf
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call edi
push 0
call edi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4963a6
push eax
call esi
jmp 0x4963a6
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call esi
push 0
call esi
jmp 0x49639b
push 0x6ad880
lea ecx, [ebp - 0x234]
call fcn.00496e50
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x4966de
push edi
call esi
xor edi, edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x4963a6
push edi
call esi
jmp 0x4963a6
push eax
call fcn.00401f90
mov eax, 0xa
mov dword [ebp - 0x250], 0x8007000e
push 0x8007000e
mov word [ebp - 0x258], ax
call fcn.00401f90
push 0x8007000e
call fcn.00401f90
push eax
call fcn.00401f90
int3