Function at 0x429040
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455173
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
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 edi, ecx
mov dword [ebp - 0x88], edi
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x54]
mov dword [ebp - 0x9c], eax
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xac], ebx
call fcn.004275e0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 4], eax
mov edx, str.SoftwareCanonIJPLMInstalledDevice
lea eax, [ebp - 0x70]
push eax
push str.NEW_DATE
call fcn.0042e2d0
cmp eax, 1
jne 0x4299cd
xor eax, eax
mov dword [ebp - 0xc4], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0xd8], ax
lea ecx, [ebp - 0xd8]
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc8], 0
push eax
call fcn.0040cc40
lea eax, [edi + 0x88]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
cmp eax, ecx
je 0x42911a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040cc40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc4]
cmp eax, 8
jb 0x42913c
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.0040d960
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x71], 1
mov dword [ebp - 0x78], 0
call fcn.004278a0
cmp dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], str.ANALYSIS
je 0x42918b
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call fcn.004276c0
push dword [ebp - 0x80]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x429196
lea eax, [ebp - 0x7c]
push eax
call fcn.00427730
mov esi, eax
cmp dword [ebp - 0x78], 0
je 0x4291ab
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x84], esi
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
je 0x429710
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x4c]
je 0x429710
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 0x46383c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402640
push ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0042bc70
push eax
call fcn.0042bfa0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x71], al
mov byte [ebp - 4], 2
call fcn.0040da30
cmp byte [ebp - 0x71], 0
je 0x42970c
mov ebx, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xa0], ecx
cmp ebx, ecx
je 0x429709
mov esi, dword [ebp - 0x88]
nop dword [eax]
mov edx, dword [ebx]
mov eax, dword [edx + 0x6c]
sub eax, dword [edx + 0x68]
cmp eax, 8
jb 0x4296ed
mov edi, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xbc], eax
cmp edi, eax
je 0x4296ed
nop dword [eax + eax]
mov esi, dword [ebx]
mov eax, dword [edi]
add eax, 0x18
push eax
lea ecx, [esi + 0x18]
call fcn.0041d7f0
test eax, eax
jne 0x4296cc
mov ebx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0xb8], eax
cmp ebx, eax
je 0x4296c9
nop
mov eax, dword [edi]
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0xb4], eax
cmp esi, eax
je 0x4296b7
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.00427470
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
mov ecx, dword [ebx]
push eax
call fcn.00427470
mov edx, dword [ebp - 0x84]
mov ecx, eax
cmp dword [edx + 0x14], 8
lea edi, [edx + 0x10]
mov dword [ebp - 0x90], edi
jb 0x4292ef
mov edx, dword [edx]
cmp dword [ecx + 0x14], 8
lea eax, [ecx + 0x10]
jb 0x4292fa
mov ecx, dword [ecx]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
mov eax, dword [edi]
mov edi, dword [ebp - 0x8c]
cmp edi, dword [ebx]
cmovb eax, edi
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x429340
xor eax, eax
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x429369
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx]
cmp eax, ecx
jbe 0x429362
mov dword [ebp - 0x78], 0xffffffff
jmp 0x429369
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x429354
add ecx, 2
add edx, 2
sub dword [ebp - 0x78], 1
jmp 0x42931a
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x42931e
sbb eax, eax
neg eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x7c]
cmp eax, 8
jb 0x429387
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040d960
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4293b4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
cmp dword [ebp - 0x78], 0
jne 0x4296a8
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.004274b0
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
mov ecx, dword [ebx]
push eax
call fcn.004274b0
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x14], 8
lea edi, [edx + 0x10]
mov dword [ebp - 0x90], edi
jb 0x4293f5
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x429400
mov eax, dword [eax]
mov ecx, dword [ecx]
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0x84], ecx
mov ecx, dword [edi]
mov edi, dword [ebp - 0x84]
cmp edi, dword [ebx]
cmovb ecx, edi
mov dword [ebp - 0x8c], ecx
test ecx, ecx
jne 0x429450
xor eax, eax
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x429476
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx]
cmp eax, ecx
jbe 0x42946f
mov dword [ebp - 0x78], 0xffffffff
jmp 0x429476
mov cx, word [eax]
cmp cx, word [edx]
jne 0x429467
add eax, 2
add edx, 2
sub dword [ebp - 0x8c], 1
jmp 0x429423
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x429427
sbb eax, eax
neg eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x7c]
cmp eax, 8
jb 0x429494
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040d960
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4294c1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
cmp dword [ebp - 0x78], 0
jle 0x429697
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 6
mov ecx, dword [ebx]
push eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.00427470
mov byte [ebp - 4], 7
sub esp, 0x18
mov eax, dword [ebp - 0x80]
mov ecx, esp
mov edx, dword [eax]
add edx, 0x18
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x429526
mov eax, dword [ecx]
jmp 0x429528
mov eax, ecx
push 0xffffffffffffffff
xor edi, edi
push edi
push edx
mov word [eax], di
call fcn.0040cc40
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.0042a690
mov edi, dword [ebp - 0x94]
test al, al
jne 0x429589
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x429580
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x429580
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xa4]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x429580
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
jmp 0x4296a8
push dword [ebp - 0x9c]
lea eax, [ebp - 0xb0]
push eax
push ecx
lea eax, [ebp - 0xa8]
push eax
call fcn.00429a10
push esi
push edi
test al, al
jne 0x4295bd
mov eax, dword [ebp - 0x88]
add eax, 0x60
push eax
call fcn.00429df0
jmp 0x429654
mov eax, dword [ebp - 0xb0]
sub eax, 0
je 0x4295f9
sub eax, 2
je 0x4295de
mov eax, dword [ebp - 0x88]
add eax, 0x6c
push eax
call fcn.00429df0
jmp 0x429654
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x88]
add eax, 0x78
push eax
call fcn.00429df0
jmp 0x429654
mov eax, dword [ebp - 0x88]
add eax, 0x60
push eax
call fcn.00429df0
lea eax, [ebp - 0xf0]
push eax
call fcn.0042d2e0
mov ecx, dword [esi]
add ecx, 0x20
mov byte [ebp - 4], 9
lea eax, [ebp - 0xf0]
cmp ecx, eax
je 0x429631
push 0xffffffffffffffff
push 0
push eax
call fcn.0040cc40
mov eax, dword [ebp - 0xdc]
cmp eax, 8
jb 0x42964f
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.0040d960
mov eax, dword [esi]
mov byte [eax], 1
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x429580
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x429580
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xa4]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x429580
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
jmp 0x4296a8
mov eax, dword [ebp - 0x88]
push esi
push edi
add eax, 0x60
push eax
call fcn.00429df0
add esi, 8
cmp esi, dword [ebp - 0xb4]
jne 0x4292b6
add ebx, 8
mov dword [ebp - 0x7c], ebx
cmp ebx, dword [ebp - 0xb8]
jne 0x4292a0
mov ebx, dword [ebp - 0x80]
add edi, 8
mov dword [ebp - 0x94], edi
cmp edi, dword [ebp - 0xbc]
jne 0x429270
mov ecx, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x88]
add ebx, 8
mov dword [ebp - 0x80], ebx
cmp ebx, ecx
jne 0x429240
mov edi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0xac]
jmp 0x42970c
lea ebx, [edi + 0x54]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00427670
mov esi, dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x429733
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
test esi, esi
je 0x42979b
mov eax, dword [edi + 0x70]
lea ecx, [ebp - 0x80]
sub eax, dword [edi + 0x6c]
sar eax, 3
test eax, eax
mov dword [ebp - 0x80], 0
setne bl
call fcn.004278a0
cmp dword [ebp - 0x80], 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], str.ANALYSIS
push eax
je 0x429772
call fcn.004277a0
jmp 0x429777
call fcn.00427830
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
cmp dword [ebp - 0x80], 0
je 0x42979d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42979d
mov bl, 1
mov dword [ebp - 0x98], 0
test bl, bl
je 0x429950
mov esi, dword [edi + 0x6c]
mov edi, dword [edi + 0x70]
mov byte [ebp - 0x84], 0
cmp esi, edi
je 0x4297e3
mov ecx, dword [esi]
push 0x4648a4
add ecx, 0x50
call fcn.00410730
test eax, eax
je 0x4297dc
add esi, 8
cmp esi, edi
jne 0x4297c0
jmp 0x4297e3
mov byte [ebp - 0x84], 1
mov ecx, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
push edx
push dword [ebp - 0x84]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x429941
mov eax, dword [ebp - 0x98]
cmp eax, 1
je 0x429818
test eax, eax
jne 0x429947
mov ebx, dword [ebp - 0x88]
mov dword [ebx + 0x84], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042d2e0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0xb
lea ecx, [ebx + 0x88]
cmp ecx, eax
je 0x42984e
push 0xffffffffffffffff
push 0
push eax
call fcn.0040cc40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xf4]
cmp eax, 8
jb 0x429870
inc eax
lea ecx, [ebp - 0x108]
push eax
push dword [ebp - 0x108]
call fcn.0040d960
mov eax, dword [ebx + 0x84]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLMInstalledDevice
push 0x80000002
mov dword [ebp - 0x7c], 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4298ca
push 4
lea eax, [ebp - 0xa0]
push eax
push 4
push 0
push 0x4648a8
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x28]
push eax
call fcn.00427670
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x4298e3
mov esi, dword [esi]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLMInstalledDevice
push 0x80000002
call ebx
test eax, eax
jne 0x42992c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.NEW_DATE
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x429941
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
mov eax, dword [ebp - 0x98]
cmp eax, 1
je 0x429950
test eax, eax
jne 0x4299ae
push dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x88]
mov ecx, ebx
call fcn.0042a040
push 0x24
xor eax, eax
mov dword [ebp - 0x44], 7
push str.SoftwareCanonIJPLMInstalledDevice
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0040cd60
lea eax, [ebx + 0x54]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042d140
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4299b4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040d960
jmp 0x4299b4
mov ebx, dword [ebp - 0x88]
cmp byte [ebp - 0x71], 0
je 0x4299c8
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebx + 0x84]
mov dword [ecx], eax
mov bl, byte [ebp - 0x71]
jmp 0x4299cf
xor bl, bl
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x4299e4
inc ecx
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
call fcn.0040d960
mov al, bl
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