Function at 0x427100
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5863b7
mov eax, dword fs:[0]
push eax
sub esp, 0xc3c
mov eax, dword [0x5eb770]
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
push 0
mov esi, ecx
push str.Tool_DeleteVCIniFile
push 0
lea ecx, [ebp - 0xc48]
mov edi, edx
call fcn.0044ca70
add esp, 0xc
push edi
push esi
push str.pRegRoot___s__pSubKey___s
lea eax, [ebp - 0xc48]
push 1
push eax
mov dword [ebp - 4], 0
call fcn.0044cd10
add esp, 0x14
call fcn.0046d2d8
mov ebx, dword [eax + 4]
xor ecx, ecx
push 0x204
push ecx
mov dword [ebp - 0xc2c], ecx
mov dword [ebp - 0x218], ecx
mov eax, 1
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0xc24], eax
mov dword [ebp - 0xc3c], eax
mov dword [ebp - 0xc40], 0x104
call fcn.0055ca80
add esp, 0xc
push 0x204
lea edx, [ebp - 0x41c]
push 0
push edx
mov dword [ebp - 0x420], 0
call fcn.0055ca80
add esp, 0xc
push 0x7fc
lea eax, [ebp - 0xc1c]
push 0
push eax
mov dword [ebp - 0xc20], 0
call fcn.0055ca80
add esp, 0xc
push 0x5b7dd8
lea ecx, [ebp - 0xc30]
call fcn.00403340
push edi
push esi
lea ecx, [ebp - 0xc30]
push 0x5b7940
push ecx
mov byte [ebp - 4], 1
call fcn.0040a740
mov eax, dword [ebp - 0xc30]
add esp, 0x10
lea edx, [ebp - 0xc2c]
push edx
push 0xf003f
xor edi, edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427478
lea ecx, [ebp - 0xc40]
push ecx
mov ecx, dword [ebp - 0xc2c]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0xc3c]
push eax
push edi
push str.MsiInstallDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x42744f
push str.Module.ini
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427469
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
push str.ICA_3.0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x42745f
push 0x5b69a4
lea ecx, [ebp - 0xc28]
call fcn.00403340
push 0x5b69a4
lea ecx, [ebp - 0xc38]
mov byte [ebp - 4], 2
call fcn.00403340
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x664]
push eax
lea ecx, [ebp - 0xc38]
push str.Canon__s_ERROR
push ecx
call fcn.0040a740
mov edx, dword [ebx + 0x664]
add esp, 0xc
push edx
lea eax, [ebp - 0xc28]
push str.Canon__s
push eax
call fcn.0040a740
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x400
lea edx, [ebp - 0xc20]
push edx
push str.Canon__s_ERROR
push str.VirtualDriver
push str.ICA_3.0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.Canon__s_ERROR
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x427360
mov dword [ebp - 0xc24], edi
mov ecx, dword [ebp - 0xc28]
push ecx
lea edx, [ebp - 0xc20]
push edx
call fcn.00556fbe
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 8
test eax, eax
je 0x4273d8
push 0x5b7dd8
lea ecx, [ebp - 0xc34]
call fcn.00403340
lea eax, [ebp - 0xc34]
push eax
lea ecx, [ebp - 0xc20]
mov byte [ebp - 4], 4
call fcn.00426d20
mov edx, dword [ebp - 0xc34]
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push edx
push str.VirtualDriver
push str.ICA_3.0
call esi
test eax, eax
jne 0x4273cd
mov dword [ebp - 0xc24], edi
lea ecx, [ebp - 0xc34]
call fcn.004037a0
mov ecx, dword [ebp - 0xc28]
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push ecx
call esi
test eax, eax
jne 0x4273f4
mov dword [ebp - 0xc24], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42741a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x427482
cmp eax, 2
je 0x42745f
mov dword [ebp - 0xc24], edi
cmp eax, 3
jne 0x427469
mov dword [ebp - 0xc24], 1
mov ecx, dword [ebp - 0xc2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x427482
mov dword [ebp - 0xc24], 1
mov esi, dword [ebp - 0xc24]
push esi
push str.return___08x
lea edx, [ebp - 0xc48]
push 2
push edx
call fcn.0044cd10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc30]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4274c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xc48]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, esi
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.0055649d
mov esp, ebp
pop ebp
ret