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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455707
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x46d070]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x42c620
mov eax, dword [eax]
lea edx, [ebp - 0x64]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cbf5
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push str.ENQTYPE
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42cbbe
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42c6db
push eax
lea ecx, [ebp - 0x58]
call fcn.00433370
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
sub esi, edi
jne 0x42c69e
push str.invalid_vector_T__subscript
call fcn.00433cd3
lea eax, [ebp - 0x44]
push eax
push edi
push 0
push 0
push str.ENQTYPE
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42cbbe
test esi, esi
jne 0x42c6c9
push str.invalid_vector_T__subscript
call fcn.00433cd3
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
add eax, 0xfffffffe
add eax, edi
push eax
push edi
call fcn.004258d0
mov dword [ebp - 0xa4], 0
push 0x78
mov byte [ebp - 4], 3
call fcn.004359c7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x42c710
mov eax, dword [ebx]
jmp 0x42c712
mov eax, ebx
xor ecx, ecx
lea esi, [ebx + 0x18]
mov word [eax], cx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 8
jb 0x42c72e
mov eax, dword [esi]
jmp 0x42c730
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x30]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x42c750
mov eax, dword [ecx]
jmp 0x42c752
mov eax, ecx
xor edx, edx
lea edi, [ebx + 0x50]
mov word [eax], dx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], 8
jb 0x42c76e
mov eax, dword [edi]
jmp 0x42c770
mov eax, edi
xor edx, edx
mov word [eax], dx
lea eax, [ebx + 0x68]
mov dword [ebp - 0x68], eax
mov eax, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x28]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
cmp ecx, eax
je 0x42c7a5
push 0xffffffffffffffff
push edx
push eax
call fcn.0040cc40
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0x464988
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c84b
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42c838
push eax
lea ecx, [ebp - 0x58]
call fcn.00433370
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
sub eax, ecx
mov dword [ebp - 0x5c], eax
jne 0x42c7f6
push str.invalid_vector_T__subscript
call fcn.00433cd3
lea eax, [ebp - 0x44]
push eax
push ecx
push 0
push 0
push 0x464988
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c84b
cmp dword [ebp - 0x5c], eax
ja 0x42c823
push str.invalid_vector_T__subscript
call fcn.00433cd3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
add eax, 0xfffffffe
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004258d0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x42c84b
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040cc40
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push str.DISP_WARNING
push eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c8e7
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42c8d4
push eax
lea ecx, [ebp - 0x58]
call fcn.00433370
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
sub esi, eax
jne 0x42c896
push str.invalid_vector_T__subscript
call fcn.00433cd3
lea ecx, [ebp - 0x44]
push ecx
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 0x42c8e7
test esi, esi
jne 0x42c8bf
push str.invalid_vector_T__subscript
call fcn.00433cd3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
add eax, 0xfffffffe
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004258d0
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x42c8e7
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040cc40
push dword [ebp - 0x48]
mov edx, dword [ebx + 0x6c]
push ecx
mov ecx, dword [ebx + 0x68]
call fcn.0040b140
mov eax, dword [ebx + 0x68]
add esp, 8
mov dword [ebx + 0x6c], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x64]
call fcn.0042cc30
cmp al, 1
mov eax, dword [ebp - 0x80]
jne 0x42c9af
mov esi, eax
cmp eax, dword [ebp - 0x7c]
je 0x42c9af
mov ebx, dword [ebp - 0x68]
nop dword [eax]
push dword [esi]
push dword [ebp - 0x64]
call fcn.0042ce50
test eax, eax
je 0x42c9a4
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call fcn.0042e4a0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.0042d690
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x42c9a0
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x42c9a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x42c9a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 8
cmp esi, dword [ebp - 0x7c]
jne 0x42c940
mov ebx, dword [ebp - 0x48]
push 0x24
xor eax, eax
mov dword [ebp - 0x74], 0
push str.SoftwareCanonIJPLMInstalledDevice
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040cd60
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x9c], 0
push 0
lea ecx, [ebp - 0x94]
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
mov edi, dword [ebp - 0x84]
test eax, eax
jne 0x42cae1
cmp dword [edi + 0x14], 8
jb 0x42ca3f
mov eax, dword [edi]
jmp 0x42ca41
mov eax, edi
push 0
lea ecx, [ebp - 0x9c]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push dword [ebp - 0x94]
call esi
test eax, eax
jne 0x42cae1
cmp dword [edi + 0x14], 8
jb 0x42ca6e
mov eax, dword [edi]
jmp 0x42ca70
mov eax, edi
lea ecx, [ebp - 0x44]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cabc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 8
push eax
lea eax, [ebp - 0x74]
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 0x42cae1
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x74]
push eax
push 0xb
push 0
push str.MS_INSTDATE
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x4c], eax
cmp ebx, edi
je 0x42cafd
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.0040cc40
cmp dword [ebx + 0x10], 0
je 0x42cb21
cmp dword [ebx + 0x28], 0
je 0x42cb21
cmp dword [ebx + 0x40], 0
je 0x42cb21
mov eax, dword [ebx + 0x48]
or eax, dword [ebx + 0x4c]
je 0x42cb21
xor edi, edi
mov dword [ebp - 0x88], ebx
jmp 0x42cb24
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x9c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42cb37
push eax
call ebx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], 0
test eax, eax
je 0x42cb4e
push eax
call ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x94], 0
cmp eax, 8
jb 0x42cb6d
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040d960
mov esi, dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
je 0x42cba8
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x7c]
push ecx
mov ecx, esi
call fcn.0040b140
mov eax, dword [ebp - 0x78]
add esp, 8
sub eax, esi
sar eax, 3
push eax
push esi
call fcn.00407c30
test edi, edi
je 0x42cbbe
mov ecx, edi
call fcn.0042de50
push 0x78
push edi
call fcn.004359fa
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42cbd3
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 - 0x58]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040fb20
mov ebx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x42cc03
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
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.0043598e
mov esp, ebp
pop ebp
ret 8