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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452bea
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 0x42a41c
mov eax, dword [ebx]
jmp 0x42a41e
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 0x42a9a4
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 0x42a973
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42a4fa
push eax
lea ecx, [ebp - 0x68]
call fcn.00430ad0
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
sub esi, edi
jne 0x42a4bb
push str.invalid_vector_T__subscript
call fcn.004313d7
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 0x42a9ce
test esi, esi
jne 0x42a4e8
push str.invalid_vector_T__subscript
call fcn.004313d7
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
add eax, 0xfffffffe
add eax, edi
push eax
push edi
call fcn.00423f00
mov dword [ebp - 0xac], 0
push 0x60
mov byte [ebp - 4], 3
call fcn.004330cb
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 0x42a532
mov eax, dword [edi]
jmp 0x42a534
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 0x42a550
mov eax, dword [esi]
jmp 0x42a552
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 0x42a572
mov eax, dword [ecx]
jmp 0x42a574
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 0x42a5af
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 0x42a65f
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42a64c
push eax
lea ecx, [ebp - 0x68]
call fcn.00430ad0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
sub eax, ecx
mov dword [ebp - 0xa0], eax
jne 0x42a607
push str.invalid_vector_T__subscript
call fcn.004313d7
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 0x42a65f
cmp dword [ebp - 0xa0], eax
ja 0x42a637
push str.invalid_vector_T__subscript
call fcn.004313d7
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.00423f00
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x42a65f
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 0x42a697
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.0042a9e0
cmp al, 1
mov eax, dword [ebp - 0x84]
jne 0x42a767
mov esi, eax
cmp eax, dword [ebp - 0x80]
je 0x42a767
mov edi, dword [ebp - 0x6c]
push dword [esi]
push dword [ebp - 0x5c]
call fcn.0042ac00
test eax, eax
je 0x42a756
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.0042c220
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0042b440
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x42a752
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x42a752
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x42a752
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 0x42a6f2
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 0x42a893
cmp dword [ebx + 0x14], 8
jb 0x42a7f1
mov eax, dword [ebx]
jmp 0x42a7f3
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 0x42a893
cmp dword [ebx + 0x14], 8
jb 0x42a820
mov eax, dword [ebx]
jmp 0x42a822
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 0x42a86e
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 0x42a893
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 0x42a8af
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.0040cc40
cmp dword [edi + 0x10], 0
je 0x42a8d0
cmp dword [edi + 0x28], 0
je 0x42a8d0
cmp dword [edi + 0x40], 0
je 0x42a8d0
mov eax, dword [edi + 0x48]
or eax, dword [edi + 0x4c]
je 0x42a8d0
xor ebx, ebx
mov dword [ebp - 0x54], edi
jmp 0x42a8d3
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x98]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42a8e6
push eax
call edi
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0
test eax, eax
je 0x42a8fd
push eax
call edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x42a91c
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 0x42a95a
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 0x42a970
mov ecx, ebx
call fcn.0042bc00
push 0x60
push ebx
call fcn.004330fe
add esp, 8
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42a988
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 0x42a9ae
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.00433092
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x42a973