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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b258
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
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.0040ac70
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.0040aed0
add esp, 0x14
call fcn.00442c4d
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], edi
mov edi, 1
push 0x58ace4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
call fcn.00401210
push 0x58ace4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401210
push 0x58ace4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401210
push str.ICA_3.0
push esi
lea edx, [ebp - 0x28]
push 0x58b914
push edx
mov byte [ebp - 4], 3
call fcn.00405ba0
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 0x4234f7
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 0x4234bf
mov esi, dword [ebp - 0x1c]
test esi, esi
jns 0x423373
push 0x80070057
call fcn.004010a0
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 0x423393
push esi
lea ecx, [ebp - 0x14]
call fcn.00401760
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 0x4234bf
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005343a3
add esp, 8
test eax, eax
js 0x423369
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x423369
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push 0x58a8c8
lea ecx, [ebp - 0x24]
call fcn.00401210
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x628]
push eax
lea ecx, [ebp - 0x24]
push str.Canon__s
push ecx
call fcn.00405ba0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push edx
push eax
call fcn.00535a9a
add esp, 8
test eax, eax
je 0x423497
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00423740
mov eax, dword [ebp - 0x10]
add esp, 4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423430
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00401590
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 0x4234cb
call fcn.005343a3
add esp, 8
test eax, eax
js 0x423369
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x423369
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 0x4234bf
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 0x42350a
call fcn.005343a3
add esp, 8
test eax, eax
js 0x423369
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x423369
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
xor edi, edi
jmp 0x42349c
cmp eax, 2
je 0x423505
cmp eax, 3
je 0x423505
xor edi, edi
jmp 0x42350a
mov edi, 1
push edi
push str.return___08x
lea edx, [ebp - 0x30]
push 2
push edx
call fcn.0040aed0
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 0x423541
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 0x423564
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 0x423587
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.0040ae50
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