Function at 0x4674d0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0b47
mov eax, dword fs:[0]
push eax
mov eax, 0x1c64
call fcn.0056e430
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 - 0x1c70], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push ecx
push str.InstallVitualChannel::VCSetIniFile
lea ecx, [ebp - 0x1c58]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4675ac
test byte [ecx + 0x1c], 1
je 0x46756f
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, 0x3f
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x4675ac
test byte [ecx + 0x1c], 1
je 0x4675ac
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, 0x40
call fcn.0040c1c0
add esp, 0x18
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x1c5c], 0
push 0
push eax
mov dword [ebp - 0x1c6c], 1
mov dword [ebp - 0x1c68], 0x104
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
add esp, 0x24
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x420]
push 0x5c692c
push eax
call esi
push edi
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x1c5c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x467bab
lea eax, [ebp - 0x1c68]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1c6c]
push eax
push 0
push str.MsiInstallDir
push dword [ebp - 0x1c5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x467726
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4676ca
test byte [ecx + 0x1c], 4
je 0x4676ca
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, 0x41
call fcn.00401840
add esp, 0xc
push dword [ebp - 0x1c5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1c54], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46771f
test byte [ecx + 0x1c], 1
je 0x46771f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x42
call fcn.004018a0
add esp, 0x10
xor ebx, ebx
jmp 0x467c39
push dword [ebp - 0x1c5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Module.ini
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x467c64
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c64], eax
mov edi, 0x5c6930
mov byte [ebp - 4], 1
shr edi, 0x10
lea ecx, [ebp - 0x1c64]
test edi, edi
jne 0x467783
mov eax, 0x5c6930
movzx esi, ax
push esi
call fcn.00403020
jmp 0x467797
push 0
push 0x5c6930
call fcn.00403bb0
mov eax, 0x5c6930
movzx esi, ax
mov byte [ebp - 4], 2
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x467c6e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c60], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c60]
test edi, edi
jne 0x4677ce
push esi
call fcn.00403020
jmp 0x4677da
push 0
push 0x5c6930
call fcn.00403bb0
push 0x800
lea eax, [ebp - 0x1420]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1420]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.MODULENAME_PREFIX
call fcn.004f65f0
lea eax, [ebp - 0x1420]
push eax
lea eax, [ebp - 0x1c60]
push str.Canon__s_ERROR
push eax
call fcn.00408a60
lea eax, [ebp - 0x1420]
push eax
lea eax, [ebp - 0x1c64]
push str.Canon__s
push eax
call fcn.00408a60
mov edi, dword [ebp - 0x1c60]
lea eax, [ebp - 0x218]
add esp, 0x18
push eax
push 0x400
lea eax, [ebp - 0xc20]
push eax
push edi
push str.VirtualDriver
push str.ICA_3.0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [ebp - 0x1c64]
test eax, eax
jne 0x467930
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4678de
test byte [ecx + 0x1c], 2
je 0x4678de
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x1c58]
mov ebx, 0x608f54
cmovae ebx, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5ce63c
push ebx
mov ecx, 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
mov byte [ebp - 0x1c54], 1
cmp ecx, 0x608f30
je 0x467b19
test byte [ecx + 0x1c], 1
je 0x467b19
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x46
call fcn.004018a0
add esp, 0x10
xor ebx, ebx
jmp 0x467b6b
lea eax, [ebp - 0xc20]
push ebx
push eax
call fcn.00570be3
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 8
test eax, eax
jne 0x467a31
mov ecx, dword [ebp - 0x1c70]
lea eax, [ebp - 0xc20]
push 0x5c6930
push esi
push eax
call fcn.00466190
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc20]
push eax
push str.VirtualDriver
push str.ICA_3.0
call ebx
test eax, eax
jne 0x467a31
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4679df
test byte [ecx + 0x1c], 2
je 0x4679df
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x1c58]
mov ebx, 0x608f54
cmovae ebx, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5ce63c
push ebx
mov ecx, 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
mov byte [ebp - 0x1c54], 1
cmp ecx, 0x608f30
je 0x467b19
test byte [ecx + 0x1c], 1
je 0x467b19
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x48
call fcn.004018a0
add esp, 0x10
xor ebx, ebx
jmp 0x467b6b
push 0x800
lea eax, [ebp - 0x1c20]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1c20]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.VIRTUALCHANNEL_NAME
call fcn.004f65f0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1c20]
push eax
push str.DriverNameWin32
push esi
call ebx
test eax, eax
jne 0x467b1d
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x467ad6
test byte [ecx + 0x1c], 2
je 0x467ad6
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x1c58]
mov ebx, 0x608f54
cmovae ebx, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5ce63c
push ebx
mov ecx, 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
mov byte [ebp - 0x1c54], 1
cmp ecx, 0x608f30
je 0x467b19
test byte [ecx + 0x1c], 1
je 0x467b19
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4a
call fcn.004018a0
add esp, 0x10
xor ebx, ebx
jmp 0x467b6b
mov byte [ebp - 0x1c54], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x467b66
test byte [ecx + 0x1c], 1
je 0x467b66
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4b
call fcn.004018a0
add esp, 0x10
mov ebx, 1
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x467b89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x467c39
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x467c39
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x467bf1
test byte [ecx + 0x1c], 4
je 0x467bf1
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, 0x43
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
mov byte [ebp - 0x1c54], 1
cmp ecx, 0x608f30
je 0x467c34
test byte [ecx + 0x1c], 1
je 0x467c34
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x44
call fcn.004018a0
add esp, 0x10
mov ebx, 1
lea ecx, [ebp - 0x1c58]
call fcn.0040a570
mov eax, ebx
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
push 0x80004005
call fcn.004013a0
int3