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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564508
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push str.Tool_DeleteRegKeyICA
push eax
call fcn.00401190
add esp, 0xc
push str.ICA_3.0
push esi
push str.pRegRoot___s__pSubKey___s
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.00401410
add esp, 0x14
call fcn.0044b52d
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, 1
push 0x5960a4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
call fcn.00404f00
push 0x5960a4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00404f00
push 0x5960a4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404f00
push str.ICA_3.0
push esi
lea edx, [ebp - 0x28]
push 0x594b70
push edx
mov byte [ebp - 4], 3
call fcn.0040aa50
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a5f7
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.VirtualDriverEx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a5bf
mov esi, dword [ebp - 0x1c]
test esi, esi
jns 0x42a473
push 0x80070057
call fcn.00404160
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x42a493
push esi
lea ecx, [ebp - 0x14]
call fcn.00405520
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
push 0
push str.VirtualDriverEx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a5bf
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x42a469
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x42a469
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push 0x5988ec
lea ecx, [ebp - 0x24]
call fcn.00404f00
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x624]
push eax
lea ecx, [ebp - 0x24]
push str.Canon__s
push ecx
call fcn.0040aa50
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push edx
push eax
call fcn.0053d6a8
add esp, 8
test eax, eax
je 0x42a597
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042a840
mov eax, dword [ebp - 0x10]
add esp, 4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a530
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00405110
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push edx
push 0
push str.VirtualDriverEx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
jne 0x42a5cb
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x42a469
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x42a469
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edi, 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a5bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42a60a
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x42a469
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x42a469
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
xor edi, edi
jmp 0x42a59c
cmp eax, 2
je 0x42a605
cmp eax, 3
je 0x42a605
xor edi, edi
jmp 0x42a60a
mov edi, 1
push edi
push str.return___08x
lea edx, [ebp - 0x30]
push 2
push edx
call fcn.00401410
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a641
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a664
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a687
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret