Function at 0x41c7d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x567da1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1fcc
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x1fc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x1fe0]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0x1c]
mov esi, ecx
push str.Tool_DeletePrinter
push eax
mov dword [esp + 0x20], esi
mov ebx, edx
call fcn.00401190
add esp, 0xc
push edi
push ebx
push esi
push str.hWnd___08x__lpszPrinter___s__bJob___d
mov esi, 1
lea ecx, [esp + 0x28]
push esi
push ecx
mov dword [esp + 0x2000], edi
call fcn.00401410
push 0x860
lea edx, [esp + 0x1790]
push edi
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x60], edi
call fcn.00541d20
add esp, 0x24
push 0x410
lea eax, [esp + 0x1368]
push edi
push eax
mov dword [esp + 0x70], edi
call fcn.00541d20
add esp, 0xc
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], esi
call fcn.0044b52d
mov esi, dword [eax + 4]
push edi
push edi
push 1
mov ecx, ebx
mov dword [esp + 0x44], esi
call fcn.0041f480
add esp, 0xc
cmp eax, 1
jne 0x41c8ea
push 3
push str.return___08x
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
lea eax, [edi + 3]
jmp 0x41d490
mov dword [esp + 0x5c], edi
cmp ebx, edi
je 0x41c905
mov edx, dword [esi + 0x5f0]
mov eax, dword [edx + 0xa4]
push ebx
call eax
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x74]
push ecx
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push ebx
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0xf000c
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
cmp eax, edi
jne 0x41c98a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41c9dd
push 4
push str.return___08x
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
mov eax, 4
jmp 0x41d490
call fcn.00414850
lea edx, [esp + 0x1364]
mov ecx, ebx
mov dword [esp + 0x44], eax
call fcn.0041fbe0
mov edx, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41ca30
lea ecx, [esp + 0x3c]
push ecx
push edi
push edi
push 3
push edi
push edx
mov dword [esp + 0x54], edi
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverW]
test eax, eax
jne 0x41c9f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41c9f0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
push 1
push str.return___08x
push 2
lea ecx, [esp + 0x24]
push ecx
jmp 0x41d46f
mov edx, dword [esp + 0x3c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x4c], edi
test edi, edi
je 0x41c9d2
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
push edi
push 3
push 0
push ecx
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverW]
test eax, eax
jne 0x41ca3c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
jmp 0x41d461
mov ecx, dword [edi + 0x1c]
push 0
call fcn.00414e00
add esp, 4
cmp eax, 1
jne 0x41cb44
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
lea ecx, [esp + 0x20]
call fcn.00406370
lea ecx, [esp + 0x28]
call fcn.00406370
push 2
lea ecx, [esp + 0x24]
mov byte [esp + 0x1fec], 2
call fcn.004050e0
push 3
lea ecx, [esp + 0x2c]
call fcn.004050e0
call fcn.0044b52d
mov esi, dword [eax + 4]
mov edx, dword [esi + 0x140]
cmp dword [edx + 0x28], 0
je 0x41cae7
mov eax, dword [esp + 0x28]
mov edi, dword [esi + 0x144]
push eax
call fcn.00410a70
push 0x20
push 0xa
lea ebx, [esp + 0x28]
call fcn.00412690
mov ecx, dword [esp + 0x20]
mov edi, dword [esi + 0x144]
push ecx
call fcn.00410a70
mov edi, dword [esi + 0x144]
push 0x596088
call fcn.00410a70
jmp 0x41cafe
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0x30
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 2
push str.return___08x
lea edx, [esp + 0x20]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.00405310
lea ecx, [esp + 0x20]
call fcn.00405310
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
mov eax, 2
jmp 0x41d490
push 0x80
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.00541d20
mov ecx, dword [edi + 0xc]
add esp, 0xc
push 1
push 0x40
lea edx, [esp + 0xa4]
call fcn.004157c0
add esp, 8
test eax, eax
jne 0x41cb9a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
push 1
push str.return___08x
push 2
lea edx, [esp + 0x24]
push edx
jmp 0x41d46f
push 0x820
lea eax, [esp + 0x530]
push 0
push eax
call fcn.00541d20
lea ecx, [esp + 0x3c]
add esp, 0xc
push ecx
lea edx, [esp + 0x530]
mov ecx, ebx
mov dword [esp + 0x34], 0
call fcn.00413b80
mov edx, dword [esi + 0x5f4]
add esp, 4
cmp dword [esp + 0x44], 0xa
mov dword [esp + 0x14], edx
jne 0x41cc33
mov eax, ebx
lea ecx, [esp + 0x80]
call fcn.00402cf0
lea ecx, [esp + 0x52c]
mov byte [esp + 0x1fe8], 3
mov edx, dword [esp + 0x30]
push ecx
push edx
lea edx, [esp + 0x2c]
mov ecx, eax
call fcn.0041d4c0
add esp, 8
lea esi, [esp + 0x80]
mov dword [esp + 0x14], eax
mov byte [esp + 0x1fe8], 0
call fcn.00402d30
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
jmp 0x41cc5c
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
lea eax, [esi + 0x5e8]
push eax
lea ecx, [esp + 0x53c]
call fcn.00444b00
test eax, eax
jne 0x41d45a
lea ecx, [esp + 0x2c]
call fcn.00406370
lea ecx, [esp + 0x20]
call fcn.00406370
lea ecx, [esp + 0x58]
call fcn.00406370
lea ecx, [esp + 0x54]
call fcn.00406370
mov byte [esp + 0x1fe8], 7
mov ecx, dword [edi + 4]
push ecx
lea ecx, [esp + 0x44]
call fcn.00404f00
push 5
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x1ff0], 8
call fcn.004103e0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x1fec], 9
call fcn.004063a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fe8], 8
call fcn.00405310
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x4c]
call fcn.00404f00
lea ecx, [esp + 0x28]
call fcn.00406370
lea ecx, [esp + 0x28]
mov byte [esp + 0x1fe8], 0xb
mov eax, dword [esp + 0x48]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x58], esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00406410
mov edx, dword [esp + 0x20]
add eax, 0x10
add esp, 4
mov dword [edx], eax
call fcn.00420c40
lea eax, [esi + 0x5e4]
push 0x5983c0
push eax
call fcn.00406a50
add esp, 0x10
test al, al
je 0x41cd53
mov ecx, dword [edi + 4]
lea eax, [esp + 0x9c]
push eax
push ebx
call fcn.00428140
add esp, 8
jmp 0x41cf57
push ebx
lea ecx, [esp + 0x38]
call fcn.00404f00
push 2
push 0x5983c8
push ebx
mov byte [esp + 0x1ff4], 0xc
call fcn.0053da48
add esp, 0xc
test eax, eax
jne 0x41ce58
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.004103e0
push eax
add esi, 0xf8
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x1ff4], 0xd
call fcn.004104e0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1fec], 0xe
call fcn.004063a0
lea ecx, [esp + 0x14]
call fcn.00405310
lea ecx, [esp + 0x50]
mov byte [esp + 0x1fe8], 0xc
call fcn.00405310
push esi
lea ecx, [esp + 0x24]
call fcn.004063a0
mov esi, dword [esp + 0x2c]
push esi
push SysReAllocString
call fcn.0041dd40
add esp, 8
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
lea ecx, [esp + 0x30]
call fcn.0040a280
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.00410460
mov byte [esp + 0x1fe8], 0xf
mov edi, dword [esp + 0x14]
mov esi, SysReAllocString
call fcn.0041df30
cmp eax, 1
jne 0x41ce42
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fe8], 0xc
call fcn.00405310
jmp 0x41cf0c
push ebx
lea ecx, [esp + 0x18]
call fcn.00404f00
push eax
lea edx, [esi + 0xf4]
push edx
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x1ff4], 0x10
call fcn.004104e0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1fec], 0x11
call fcn.004063a0
lea ecx, [esp + 0x50]
call fcn.00405310
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fe8], 0xc
call fcn.00405310
lea ecx, [esi + 0xf8]
push ecx
lea ecx, [esp + 0x24]
call fcn.004063a0
mov edi, dword [esp + 0x2c]
push edi
push SysReAllocString
call fcn.0041dd40
add esp, 8
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esi + 0x5e4]
push str.CAPT
push eax
call fcn.00406a50
add esp, 8
test al, al
je 0x41cf0c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41cf0c
cmp dword [esi + 0x628], 0
je 0x41cf0c
mov esi, ebx
call fcn.0042b3a0
mov edi, dword [esp + 0x20]
mov esi, SysReAllocString
call fcn.0041df30
cmp eax, 1
jne 0x41cf3e
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, str.SOFTWARECANON_
call fcn.0041df30
cmp eax, 1
jne 0x41cf3e
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x34]
mov byte [esp + 0x1fe8], 0xb
call fcn.00405310
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
push 0x208
lea edx, [esp + 0x328]
push 0
push edx
call fcn.00541d20
mov eax, dword [edi + 4]
add esp, 0xc
push ebx
push eax
call fcn.0041d780
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x41d25f
mov edx, dword [edi + 4]
lea ecx, [esp + 0x324]
push ecx
push edx
call fcn.00420730
push 0x206
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x12a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x130], ax
call fcn.00541d20
add esp, 0x14
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov byte [esp + 0x1fe8], 0x12
cmp dword [esi + 0x86c], ebx
je 0x41d001
call fcn.00416ee0
mov ecx, str.SPOOLER
call fcn.004170d0
call fcn.0041bc90
xor edx, edx
cmp eax, 0xb
sete dl
mov dword [esi + 0x86c], edx
lea esi, [esp + 0x80]
call fcn.0040b7b0
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x120]
push 0
push eax
mov ecx, esi
call fcn.004250c0
add esp, 0xc
call fcn.004271c0
sub eax, 0
je 0x41d03a
sub eax, 2
mov esi, 5
je 0x41d03c
mov esi, dword [edi]
mov ebx, dword [esp + 0x38]
lea eax, [ebx + 0x5e4]
push str.CAPT
push eax
call fcn.00406a50
add esp, 8
test al, al
je 0x41d06e
cmp dword [ebx + 0x628], 0
je 0x41d06e
call fcn.00429280
test eax, eax
jne 0x41d06e
mov dword [esp + 0x68], eax
mov edx, dword [ebx + 0x5f4]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x52c]
push ecx
push edx
push eax
lea ecx, [ebx + 0x5e8]
push ecx
mov ecx, dword [esp + 0x40]
mov edx, esi
call fcn.00444570
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [esp + 0x6c], esi
je 0x41d102
mov ecx, 0x5988ec
lea eax, [esp + 0x11c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d0d6
test dx, dx
je 0x41d0d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d0d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d0b0
xor eax, eax
jmp 0x41d0db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d102
push 0x5988ec
lea edx, [esp + 0x120]
push 1
push edx
lea ecx, [esp + 0x8c]
mov edx, 0x5988ec
call fcn.004250c0
add esp, 0xc
cmp esi, 1
jne 0x41d141
cmp dword [esp + 0x44], 0xa
jne 0x41d124
mov eax, dword [edi + 4]
mov edx, dword [ebx + 0x170]
lea ecx, [ebx + 0x168]
push eax
push edx
call fcn.0044abdf
cmp dword [esp + 0x4c], 0
jne 0x41d147
lea ecx, [esp + 0x324]
call fcn.00420910
mov dword [esp + 0x64], 1
jmp 0x41d147
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
lea esi, [esp + 0x80]
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x1fe8], 0xb
call fcn.00403dc0
mov eax, dword [ebx + 0x140]
cmp dword [eax + 0x5c], 0
jne 0x41d25b
mov ecx, dword [edi + 4]
call fcn.00415c30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d1c4
call fcn.00416230
lea ecx, [esp + 0x44]
push ecx
push 0x2001f
push 0
push str.SOFTWARECanonVDCSETUPVDCUser
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x58], 0
call esi
test eax, eax
jne 0x41d1c4
mov edx, dword [esp + 0x44]
push edx
mov dword [esp + 0x34], eax
call ebx
call fcn.00419b60
test eax, eax
je 0x41d24e
call fcn.004197a0
xor eax, eax
push 0x616
push eax
lea ecx, [esp + 0xd56]
push ecx
mov dword [esp + 0x40], 0
mov word [esp + 0xd58], ax
call fcn.00541d20
add esp, 0xc
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea edx, [esp + 0xd54]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x34]
push eax
push 0x2001f
push 0
lea ecx, [esp + 0xd58]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41d24e
mov edx, dword [esp + 0x34]
xor esi, esi
push edx
mov dword [esp + 0x74], esi
call ebx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x38]
call fcn.00428e40
mov ebx, eax
jmp 0x41d272
mov esi, ebx
xor ebx, ebx
mov dword [esp + 0x30], 1
cmp dword [esp + 0x60], ebx
jne 0x41d252
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 1
cmp dword [esp + 0x5c], edi
jne 0x41d2aa
lea ecx, [esp + 0x1774]
call fcn.0041f700
cmp eax, edi
jne 0x41d2aa
mov eax, dword [esi + 0x5f0]
mov edx, dword [eax + 0x88]
lea ecx, [esp + 0x1774]
push ecx
call edx
cmp dword [esp + 0x64], edi
jne 0x41d2bf
call fcn.00416ee0
mov ecx, str.SPOOLER
call fcn.004170d0
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov esi, esp
push eax
call fcn.00406410
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00421230
add esp, 4
cmp dword [esp + 0x6c], 0
jne 0x41d35d
push 6
push str.return___08x
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.00405310
lea ecx, [esp + 0x48]
call fcn.00405310
lea ecx, [esp + 0x40]
call fcn.00405310
lea ecx, [esp + 0x54]
call fcn.00405310
lea ecx, [esp + 0x58]
call fcn.00405310
lea ecx, [esp + 0x20]
call fcn.00405310
lea ecx, [esp + 0x2c]
call fcn.00405310
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
mov eax, 6
jmp 0x41d490
cmp dword [esp + 0x30], 0
je 0x41d3ea
cmp dword [esp + 0x70], 0
je 0x41d3ea
test ebx, ebx
je 0x41d3ea
cmp dword [esp + 0x68], 0
je 0x41d3ea
push 0
push str.return___08x
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.00405310
lea ecx, [esp + 0x48]
call fcn.00405310
lea ecx, [esp + 0x40]
call fcn.00405310
lea ecx, [esp + 0x54]
call fcn.00405310
lea ecx, [esp + 0x58]
call fcn.00405310
lea ecx, [esp + 0x20]
call fcn.00405310
lea ecx, [esp + 0x2c]
call fcn.00405310
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x41d490
push 5
push str.return___08x
lea edx, [esp + 0x20]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.00405310
lea ecx, [esp + 0x48]
call fcn.00405310
lea ecx, [esp + 0x40]
call fcn.00405310
lea ecx, [esp + 0x54]
call fcn.00405310
lea ecx, [esp + 0x58]
call fcn.00405310
lea ecx, [esp + 0x20]
call fcn.00405310
lea ecx, [esp + 0x2c]
call fcn.00405310
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
mov eax, 5
jmp 0x41d490
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 1
push str.return___08x
push 2
lea eax, [esp + 0x24]
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1fe8], 0xffffffff
call fcn.00401370
mov eax, 1
mov ecx, dword [esp + 0x1fe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1fc8]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret