Function at 0x419710
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x457f8b
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.00441390
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x1038]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1048]
mov esi, dword [esp + 0x104c]
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], edi
call fcn.004316f5
mov ebx, dword [eax + 4]
push ebp
push ebp
push edi
push esi
call fcn.0040d520
add esp, 0x10
cmp eax, edi
jne 0x4197a9
cmp dword [esp + 0x1050], ebp
jne 0x4197a9
lea eax, [ebp + 3]
jmp 0x41a419
push esi
call fcn.0040d780
add esp, 4
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0xf000c
call sub.WINSPOOL.DRV_OpenPrinterA
cmp eax, ebp
mov dword [esp + 0x38], eax
jne 0x4197f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x41a419
call fcn.004048c0
cmp eax, 2
mov dword [esp + 0x3c], eax
je 0x419819
cmp eax, 3
je 0x419819
lea eax, [esp + 0x1dc]
push eax
push esi
call fcn.00411e20
jmp 0x41982b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1dc]
push ecx
push edx
call fcn.0040e010
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x419848
mov eax, dword [esp + 0x18]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, edi
jmp 0x41a419
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push ebp
push ebp
push 3
push ebp
push edx
mov dword [esp + 0x60], ebp
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
jne 0x41986f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419837
mov ecx, dword [esp + 0x48]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x18]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x50], edi
jne 0x419895
push edx
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x41a414
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push eax
push ecx
push edi
push 3
push ebp
push edx
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
jne 0x4198c3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x41a414
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x1c]
push ebp
push ebp
push ecx
push esi
push edx
call fcn.00408e30
add esp, 0x14
cmp eax, 1
jne 0x41998f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
lea ecx, [esp + 0x1c]
call fcn.00401630
lea ecx, [esp + 0x20]
mov dword [esp + 0x1040], ebp
call fcn.00401630
push 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x1044], 1
call fcn.00401ed0
push 3
lea ecx, [esp + 0x24]
call fcn.00401ed0
call fcn.004316f5
mov esi, dword [eax + 4]
mov ecx, dword [esi + 0x128]
cmp dword [ecx + 0x24], ebp
je 0x41995c
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x12c]
push edx
call fcn.00403910
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x12c]
push eax
call fcn.00403910
jmp 0x419973
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push 0x30
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x20]
call fcn.00401660
lea ecx, [esp + 0x1c]
call fcn.00401660
mov eax, 2
jmp 0x41a419
mov edx, dword [edi + 0xc]
push 1
lea ecx, [esp + 0x9c]
push ecx
push edx
call fcn.00404a10
add esp, 0xc
test eax, eax
je 0x4198ad
lea eax, [esp + 0x1dc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4199b7
sub eax, edx
je 0x4199fc
test byte [esp + 0x34], 8
je 0x4199fc
lea ecx, [esp + 0x1dc]
push ecx
push ebp
call fcn.0040c980
add esp, 8
test eax, eax
jne 0x4199fc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x18]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a414
xor eax, eax
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], al
lea eax, [esp + 0x90]
push eax
push esi
call fcn.00404180
push 0x410
lea ecx, [esp + 0x800]
push ebp
push ecx
mov dword [esp + 0x3c], eax
call fcn.004413c0
push 0x410
lea edx, [esp + 0x80c]
push edx
push esi
call fcn.004044e0
add esp, 0x20
cmp eax, ebp
mov dword [esp + 0x64], eax
je 0x419a77
cmp dword [esp + 0x3c], 0xa
je 0x419a66
lea eax, [esp + 0x7f4]
push eax
push esi
call fcn.0040dca0
jmp 0x419a74
lea ecx, [esp + 0x7f4]
push ecx
push esi
call fcn.0040dd10
add esp, 8
xor ebp, ebp
cmp dword [esp + 0x3c], 0xa
jne 0x419a91
mov edx, dword [esp + 0x18]
push edx
call fcn.00413810
add esp, 4
test eax, eax
jne 0x419aa1
mov eax, dword [esp + 0x18]
push eax
call sub.WINSPOOL.DRV_DeletePrinter
mov dword [esp + 0x38], eax
jmp 0x419aac
push esi
call fcn.00404070
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x18]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
cmp dword [esp + 0x38], 0
je 0x41a40d
test ebp, ebp
jne 0x41a40d
mov eax, dword [esp + 0x3c]
cmp eax, 2
je 0x419ad7
cmp eax, 3
jne 0x419b2c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x84]
push edx
call ebp
test eax, eax
je 0x419b2c
mov edi, edi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x84]
push edx
call ebp
test eax, eax
jne 0x419b00
lea ecx, [esp + 0x24]
call fcn.00401630
lea ecx, [esp + 0x30]
mov dword [esp + 0x1040], 2
call fcn.00401630
lea ecx, [esp + 0x20]
call fcn.00401630
lea ecx, [esp + 0x1c]
call fcn.00401630
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x1044], 5
call fcn.004027b0
push 5
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x1048], 6
call fcn.004072d0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x1044], 7
call fcn.00402020
lea ecx, [esp + 0x14]
mov byte [esp + 0x1040], 6
call fcn.00401660
mov edx, dword [edi + 4]
push edx
lea ecx, [esp + 0x58]
call fcn.004027b0
lea ecx, [esp + 0x34]
call fcn.00401630
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x104c], 9
call fcn.004016a0
call fcn.00410300
lea eax, [ebx + 0x3c4]
push 0x45dcd8
push eax
call fcn.00407090
add esp, 0x10
test al, al
je 0x419c27
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [edi + 4]
push edx
lea eax, [esp + 0xa0]
push eax
push ecx
push esi
call fcn.00414530
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x41a012
mov eax, dword [esp + 0x3c]
cmp eax, 2
je 0x419ddf
cmp eax, 3
je 0x419ddf
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
call fcn.004027b0
push 2
push 0x45d5bc
push esi
mov byte [esp + 0x104c], 0xc
call fcn.00443529
add esp, 0xc
test eax, eax
jne 0x419d42
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
add eax, 0xffffffff
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
call fcn.004072d0
push eax
lea esi, [ebx + 0xe4]
lea ecx, [esp + 0x18]
push esi
push ecx
mov byte [esp + 0x104c], 0xd
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1044], 0xe
call fcn.00402020
lea ecx, [esp + 0x14]
call fcn.00401660
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1040], 0xc
call fcn.00401660
push esi
lea ecx, [esp + 0x34]
call fcn.00402020
mov esi, dword [esp + 0x24]
push esi
push 0x80000001
call fcn.0040ce00
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000001
call esi
push 0x5c
lea ecx, [esp + 0x28]
call fcn.00401410
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
call fcn.00407350
mov edi, dword [esp + 0x14]
push edi
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x419d34
push edi
push 0x80000001
call esi
lea ecx, [esp + 0x14]
call fcn.00401660
jmp 0x419dc5
push esi
lea ecx, [esp + 0x18]
call fcn.004027b0
push eax
lea eax, [ebx + 0xe0]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x104c], 0xf
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1044], 0x10
call fcn.00402020
lea ecx, [esp + 0x2c]
call fcn.00401660
lea ecx, [esp + 0x14]
mov byte [esp + 0x1040], 0xc
call fcn.00401660
lea edx, [ebx + 0xe4]
push edx
lea ecx, [esp + 0x34]
call fcn.00402020
mov esi, dword [esp + 0x24]
push esi
push 0x80000001
call fcn.0040ce00
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000001
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1040], 9
call fcn.00401660
mov ebp, dword [esp + 0x30]
jmp 0x419fd4
cmp dword [esp + 0x28], 1
jne 0x419df6
lea eax, [esp + 0x90]
push eax
call fcn.00404340
add esp, 4
mov ecx, dword [esp + 0x40]
push 0x45d77c
push ecx
call fcn.00440d82
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
test eax, eax
je 0x419e54
mov edx, dword [esp + 0x40]
push 0x45d77c
push edx
call fcn.00440d82
add esp, 8
test eax, eax
je 0x419e43
mov eax, dword [ebx + 0xb8]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00413470
add esp, 8
test eax, eax
jge 0x419e54
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x38], 1
jmp 0x419fa6
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.004027b0
push eax
lea edx, [ebx + 0xe0]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x104c], 0xa
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1044], 0xb
call fcn.00402020
lea ecx, [esp + 0x2c]
call fcn.00401660
lea ecx, [esp + 0x14]
mov byte [esp + 0x1040], 9
call fcn.00401660
lea ecx, [ebx + 0xe4]
push ecx
lea ecx, [esp + 0x34]
call fcn.00402020
lea edx, [ebx + 0xf0]
push edx
lea ecx, [esp + 0x24]
call fcn.00402020
lea eax, [ebx + 0xec]
push eax
lea ecx, [esp + 0x20]
call fcn.00402020
mov edi, dword [esp + 0x24]
push edi
push 0x80000002
call fcn.0040ce00
add esp, 8
push edi
push 0x80000002
call esi
mov ebp, dword [esp + 0x30]
push ebp
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
je 0x419f1f
call fcn.00412c30
test eax, eax
jne 0x419f90
jmp 0x419f27
push ebp
push 0x80000002
call esi
mov ecx, dword [esp + 0x20]
push ecx
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x419f4a
mov edx, dword [esp + 0x20]
push edx
push 0x80000002
call esi
mov eax, dword [esp + 0x1c]
push eax
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x419f6d
mov ecx, dword [esp + 0x1c]
push ecx
push 0x80000002
call esi
push str.SOFTWARECANON_
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x419f90
push str.SOFTWARECANON_
push 0x80000002
call esi
push edi
push 0x80000001
call fcn.0040ce00
add esp, 8
push edi
push 0x80000001
call esi
cmp dword [esp + 0x28], 0
je 0x419fd4
lea edx, [esp + 0x90]
push edx
push str.EnumLPTENUM
call fcn.0040e5a0
lea eax, [esp + 0x98]
push eax
push str.EnumUSBPRINT
call fcn.0040e5a0
add esp, 0x10
push ebp
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x41a012
push ebp
push 0x80000001
call esi
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x41a012
push str.SOFTWARECANON_
push 0x80000001
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 2
je 0x41a262
cmp eax, 3
je 0x41a262
cmp eax, 6
je 0x41a13d
cmp eax, 0xa
je 0x41a13d
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x50]
mov edx, dword [ebp + 4]
push ecx
push edx
call fcn.0040cc30
add esp, 8
test eax, eax
je 0x41a2e9
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, 1
cmp dword [esp + 0x5c], esi
jne 0x41a095
lea eax, [esp + 0xc04]
push eax
call fcn.0040d910
add esp, 4
cmp eax, esi
jne 0x41a095
push 0
lea ecx, [esp + 0xc08]
push esi
push ecx
call fcn.0040d320
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x41a0a3
cmp eax, 0xa
jne 0x41a0c0
cmp dword [esp + 0x58], esi
jne 0x41a0c0
push str.SPOOLER
call fcn.00404f90
push str.SPOOLER
call fcn.0040c410
add esp, 8
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call fcn.004016a0
call fcn.0040fc70
add esp, 4
cmp dword [esp + 0x4c], 0
je 0x41a3c7
test edi, edi
je 0x41a3c7
cmp dword [esp + 0x60], 0
je 0x41a3c7
lea ecx, [esp + 0x34]
call fcn.00401660
lea ecx, [esp + 0x54]
call fcn.00401660
lea ecx, [esp + 0x40]
call fcn.00401660
lea ecx, [esp + 0x1c]
call fcn.00401660
lea ecx, [esp + 0x20]
call fcn.00401660
lea ecx, [esp + 0x30]
call fcn.00401660
lea ecx, [esp + 0x24]
call fcn.00401660
xor eax, eax
jmp 0x41a419
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x50]
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.0040cc30
add esp, 8
test eax, eax
jne 0x41a057
push 0x104
push eax
lea edx, [esp + 0xe0]
push edx
call fcn.004413c0
mov ecx, dword [ebp + 4]
push 0
push 0x104
lea eax, [esp + 0xec]
push eax
push ecx
call fcn.0040de80
add esp, 0x1c
push 0x45dcc8
mov dword [esp + 0x30], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a257
cmp dword [ebx + 0x4f0], esi
je 0x41a1c8
push str.SPOOLER
call fcn.00404f90
push str.SPOOLER
call fcn.0040c410
add esp, 8
mov dword [ebx + 0x4f0], esi
push str.DeletePrinterDriverExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a206
mov edx, dword [ebp + 4]
push 3
push 3
push edx
push 0
push 0
call eax
cmp dword [esp + 0x3c], 0xa
mov esi, eax
mov dword [esp + 0x4c], esi
jne 0x41a206
test esi, esi
je 0x41a206
mov eax, dword [ebp + 4]
push eax
lea ecx, [ebx + 0x14c]
call fcn.0040ca80
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, 1
jne 0x41a257
cmp dword [esp + 0x64], 0
je 0x41a22e
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x7f4]
push ecx
push edx
call fcn.00417080
add esp, 8
cmp dword [esp + 0x2c], 0
jne 0x41a2e9
push 0
lea ecx, [esp + 0xdc]
call fcn.00412630
add esp, 4
mov dword [esp + 0x58], 1
jmp 0x41a2e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a2e9
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x50]
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.0040cc30
add esp, 8
test eax, eax
jne 0x41a057
lea edx, [esp + 0x3e4]
push edx
mov ebx, ebp
call fcn.004119c0
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 4]
push eax
push 0
push 0
call sub.WINSPOOL.DRV_DeletePrinterDriverA
mov esi, eax
cmp esi, 1
jne 0x41a2df
cmp dword [esp + 0x38], 0
je 0x41a2ba
mov ecx, dword [ebp + 4]
push ecx
call fcn.00411b20
add esp, 4
test ebx, ebx
jne 0x41a2d3
mov edx, dword [ebp + 0x20]
push ebx
push edx
lea eax, [esp + 0x3ec]
push eax
call fcn.0040d010
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
call fcn.00418250
mov esi, eax
jmp 0x41a2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x4c], esi
mov ecx, dword [ebp + 4]
push 0
push ecx
mov edi, 1
call fcn.00408150
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 8
test eax, eax
je 0x41a33e
call fcn.00409470
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push str.SOFTWARECanonVDCSETUPVDCUser
push 0x80000002
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x41a33e
mov eax, dword [esp + 0x14]
push eax
xor edi, edi
call ebx
call fcn.004087e0
test eax, eax
je 0x41a05c
call fcn.0040b180
push 0x30b
lea ecx, [esp + 0x4ed]
push 0
push ecx
mov dword [esp + 0x20], 0
mov byte [esp + 0x4f4], 0
call fcn.004413c0
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea edx, [esp + 0x4fc]
push 0x45ce28
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
lea ecx, [esp + 0x4f4]
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x41a05c
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x64], eax
call ebx
jmp 0x41a05c
lea ecx, [esp + 0x34]
call fcn.00401660
lea ecx, [esp + 0x54]
call fcn.00401660
lea ecx, [esp + 0x40]
call fcn.00401660
lea ecx, [esp + 0x1c]
call fcn.00401660
lea ecx, [esp + 0x20]
call fcn.00401660
lea ecx, [esp + 0x30]
call fcn.00401660
lea ecx, [esp + 0x24]
call fcn.00401660
mov eax, 5
jmp 0x41a419
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov ecx, dword [esp + 0x1038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.0044027a
add esp, 0x1030
ret