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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452bfa
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x46b070]
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 ebx, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x14], 8
jb 0x42a42c
mov eax, dword [ebx]
jmp 0x42a42e
mov eax, ebx
lea edx, [ebp - 0x5c]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42a9b4
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
push ecx
push 0
push 0
push 0
push str.ENQTYPE
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a983
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42a50a
push eax
lea ecx, [ebp - 0x68]
call fcn.00430ae0
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
sub esi, edi
jne 0x42a4cb
push str.invalid_vector_T__subscript
call fcn.004313e7
lea eax, [ebp - 0x44]
push eax
push edi
push 0
push 0
push str.ENQTYPE
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a9de
test esi, esi
jne 0x42a4f8
push str.invalid_vector_T__subscript
call fcn.004313e7
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
add eax, 0xfffffffe
add eax, edi
push eax
push edi
call fcn.00423f20
mov dword [ebp - 0xac], 0
push 0x60
mov byte [ebp - 4], 3
call fcn.004330db
mov edi, eax
add esp, 4
mov dword [ebp - 0x88], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x42a542
mov eax, dword [edi]
jmp 0x42a544
mov eax, edi
xor ecx, ecx
lea esi, [edi + 0x18]
mov word [eax], cx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 8
jb 0x42a560
mov eax, dword [esi]
jmp 0x42a562
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [edi + 0x30]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x42a582
mov eax, dword [ecx]
jmp 0x42a584
mov eax, ecx
xor edx, edx
mov word [eax], dx
lea eax, [edi + 0x54]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [ebp - 0x6c], eax
mov eax, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x28]
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x50], 0xffffffff
cmp ecx, eax
je 0x42a5bf
push 0xffffffffffffffff
push edx
push eax
call fcn.0040cc40
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0x462924
push eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a66f
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42a65c
push eax
lea ecx, [ebp - 0x68]
call fcn.00430ae0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
sub eax, ecx
mov dword [ebp - 0xa0], eax
jne 0x42a617
push str.invalid_vector_T__subscript
call fcn.004313e7
lea eax, [ebp - 0x44]
push eax
push ecx
push 0
push 0
push 0x462924
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a66f
cmp dword [ebp - 0xa0], eax
ja 0x42a647
push str.invalid_vector_T__subscript
call fcn.004313e7
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
add eax, 0xfffffffe
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00423f20
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x42a66f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040cc40
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 4
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0
push 0
push str.DISP_WARNING
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a6a7
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x50], eax
push dword [ebp - 0x48]
mov edx, dword [edi + 0x58]
push ecx
mov ecx, dword [edi + 0x54]
call fcn.0040b140
mov eax, dword [edi + 0x54]
add esp, 8
mov dword [edi + 0x58], eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x5c]
call fcn.0042a9f0
cmp al, 1
mov eax, dword [ebp - 0x84]
jne 0x42a777
mov esi, eax
cmp eax, dword [ebp - 0x80]
je 0x42a777
mov edi, dword [ebp - 0x6c]
push dword [esi]
push dword [ebp - 0x5c]
call fcn.0042ac10
test eax, eax
je 0x42a766
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.0042c230
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0042b450
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x42a762
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x42a762
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x42a762
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 8
cmp esi, dword [ebp - 0x80]
jne 0x42a702
mov edi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x48]
push 0x24
xor eax, eax
mov dword [ebp - 0x78], 0
push str.SoftwareCanonIJPLMInstalledDevice
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040cd60
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x98], 0
push 0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmovae eax, dword [ebp - 0x40]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000002
call esi
test eax, eax
jne 0x42a8a3
cmp dword [ebx + 0x14], 8
jb 0x42a801
mov eax, dword [ebx]
jmp 0x42a803
mov eax, ebx
push 0
lea ecx, [ebp - 0x98]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push dword [ebp - 0x90]
call esi
test eax, eax
jne 0x42a8a3
cmp dword [ebx + 0x14], 8
jb 0x42a830
mov eax, dword [ebx]
jmp 0x42a832
mov eax, ebx
lea ecx, [ebp - 0x44]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a87e
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 8
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push str.MS_INSTDATE
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42a8a3
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x78]
push eax
push 0xb
push 0
push str.MS_INSTDATE
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x78]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x4c], eax
cmp edi, ebx
je 0x42a8bf
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.0040cc40
cmp dword [edi + 0x10], 0
je 0x42a8e0
cmp dword [edi + 0x28], 0
je 0x42a8e0
cmp dword [edi + 0x40], 0
je 0x42a8e0
mov eax, dword [edi + 0x48]
or eax, dword [edi + 0x4c]
je 0x42a8e0
xor ebx, ebx
mov dword [ebp - 0x54], edi
jmp 0x42a8e3
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x98]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42a8f6
push eax
call edi
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0
test eax, eax
je 0x42a90d
push eax
call edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x42a92c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040d960
mov esi, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
je 0x42a96a
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x80]
push ecx
mov ecx, esi
call fcn.0040b140
mov eax, dword [ebp - 0x7c]
add esp, 8
sub eax, esi
sar eax, 3
push eax
push esi
call fcn.00407c30
test ebx, ebx
je 0x42a980
mov ecx, ebx
call fcn.0042bc10
push 0x60
push ebx
call fcn.0043310e
add esp, 8
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42a998
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040fb20
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x42a9be
push ecx
call edi
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.004330a2
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x42a983