Function at 0x466ae0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0a91
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc70], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push ecx
push str.InstallVitualChannel::SetRegKeyICA
lea ecx, [ebp - 0xc58]
mov dword [ebp - 0xc5c], edi
mov dword [ebp - 0xc6c], ebx
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466bc4
test byte [ecx + 0x1c], 1
je 0x466b87
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x30
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x466bc4
test byte [ecx + 0x1c], 1
je 0x466bc4
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push edi
push esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x31
call fcn.0040c1c0
add esp, 0x18
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc60], 0
push 0
push eax
mov dword [ebp - 0xc68], 1
mov edi, 1
mov dword [ebp - 0xc64], 0
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
add esp, 0x18
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push 0x5c692c
push eax
call esi
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0xc60]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x466f04
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc64]
push eax
push 0
lea eax, [ebp - 0xc68]
push eax
push 0
push str.VirtualDriverEx
push dword [ebp - 0xc60]
call esi
test eax, eax
jne 0x466ef0
mov eax, dword [ebp - 0xc64]
xor ecx, ecx
shr eax, 1
mov edx, 2
add eax, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055074c
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xc64]
push eax
push ebx
lea eax, [ebp - 0xc68]
push eax
push 0
push str.VirtualDriverEx
push dword [ebp - 0xc60]
call esi
test eax, eax
jne 0x466ea5
push dword [ebp - 0xc6c]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.00570be3
add esp, 8
test eax, eax
je 0x466d54
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466ee7
test byte [ecx + 0x1c], 4
je 0x466ee7
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0x31]
call fcn.00401840
add esp, 0xc
jmp 0x466ee7
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x466fb9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc5c], eax
mov eax, 0x5c6930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc5c]
test eax, 0xffff0000
jne 0x466d92
movzx eax, ax
push eax
call fcn.00403020
jmp 0x466d9e
push 0
push 0x5c6930
call fcn.00403bb0
push 0x800
lea eax, [ebp - 0xc20]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xc20]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.MODULENAME_PREFIX
call fcn.004f65f0
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0xc5c]
push str.Canon__s
push eax
call fcn.00408a60
mov esi, dword [ebp - 0xc5c]
add esp, 0xc
mov ecx, dword [ebp - 0xc70]
push 0x5c6930
push esi
push ebx
call fcn.00466190
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466e10
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push dword [ebp - 0xc68]
push 0
push str.VirtualDriverEx
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x466e87
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466e85
test byte [ecx + 0x1c], 4
je 0x466e85
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x33
call fcn.00401840
add esp, 0xc
xor edi, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x466ee7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x466ee7
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466ee5
test byte [ecx + 0x1c], 4
je 0x466ee5
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x34
call fcn.00401840
add esp, 0xc
xor edi, edi
push ebx
call fcn.00550747
add esp, 4
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x608f30]
jmp 0x466f4c
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466f4a
test byte [ecx + 0x1c], 4
je 0x466f4a
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x35
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
xor edi, edi
mov byte [ebp - 0xc54], 1
cmp ecx, 0x608f30
je 0x466f8e
test byte [ecx + 0x1c], 1
je 0x466f8e
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x36
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0xc58]
call fcn.0040a570
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004013a0
int3