Function at 0x415220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c42a0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4ff12c]
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 - 0x20c], edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x2f1
push dword [edi + 0x38]
call ebx
push 0
push 1
push 0x2f4
push dword [edi + 0x38]
call ebx
push 0
push 0
push 0x2f6
push dword [edi + 0x38]
call ebx
push 0
push 0
push 0x2f5
push dword [edi + 0x38]
call ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0041ae60
mov dword [ebp - 0x20], eax
push 0x118
lea eax, [ebp - 0x1ec]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a21c0
add esp, 0xc
mov dword [ebp - 0x1f0], 0x11c
lea eax, [ebp - 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4152fa
cmp dword [ebp - 0x1ec], 6
mov byte [ebp - 0x20d], 1
jae 0x415301
mov byte [ebp - 0x20d], 0
cmp dword [edi + 0x34], 0
je 0x416a40
push 1
push 0
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x4e8020
mov word [ecx], ax
call fcn.00406ee0
mov byte [ebp - 4], 2
call fcn.004034c0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0040aeb0
mov esi, dword [edi + 0x114]
lea eax, [edi + 0x114]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x21c], esi
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x41559f
add eax, 0x28
lea ecx, [ebp - 0x38]
push eax
call fcn.00405ba0
mov eax, dword [ebp - 0x20c]
mov byte [ebp - 4], 3
mov edi, dword [edi + 0x128]
cmp edi, dword [eax + 0x12c]
je 0x41554b
nop dword [eax]
push edi
lea ecx, [ebp - 0x98]
call fcn.00405ba0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x80]
call fcn.00405ba0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x68]
call fcn.00405ba0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x70]
cmovae ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x6c], 8
cmovae edx, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x28]
jne 0x415521
mov esi, eax
test esi, esi
je 0x415417
nop dword [eax + eax]
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x415521
add edx, 2
add ecx, 2
sub esi, 1
jne 0x415400
mov eax, dword [ebp - 0x20]
mov esi, eax
mov ebx, dword [eax + 4]
cmp byte [ebx + 0xd], 0
jne 0x415493
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
lea ecx, [ebx + 0x10]
cmovae eax, dword [ebp - 0x38]
cmp dword [ebx + 0x24], 8
jb 0x41543c
mov ecx, dword [ebx + 0x10]
push dword [ebp - 0x28]
mov edx, dword [ebx + 0x20]
push eax
call fcn.0041bd00
shr eax, 0x1f
add esp, 8
test al, al
je 0x415457
mov ebx, dword [ebx + 8]
jmp 0x41545b
mov esi, ebx
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
je 0x415425
cmp esi, dword [ebp - 0x20]
je 0x415493
cmp dword [esi + 0x24], 8
lea edx, [esi + 0x10]
jb 0x415472
mov edx, dword [esi + 0x10]
push dword [esi + 0x20]
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
push edx
cmovae ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
call fcn.0041bd00
shr eax, 0x1f
add esp, 8
test al, al
je 0x4154c2
lea eax, [ebp - 0x38]
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041c590
push eax
add eax, 0x10
lea ecx, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0041c650
mov esi, dword [ebp - 0x218]
add esi, 0x28
lea eax, [ebp - 0x98]
cmp esi, eax
je 0x4154eb
cmp dword [ebp - 0x84], 8
mov ecx, esi
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.00406ee0
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x80]
cmp ecx, eax
je 0x415506
cmp dword [ebp - 0x6c], 8
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
push eax
call fcn.00406ee0
lea ecx, [esi + 0x30]
lea eax, [ebp - 0x68]
cmp ecx, eax
je 0x415521
cmp dword [ebp - 0x54], 8
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.00406ee0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.0040c880
mov eax, dword [ebp - 0x20c]
add edi, 0x48
cmp edi, dword [eax + 0x12c]
jne 0x4153a0
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x415589
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41557f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.0041a4a0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20c]
jmp 0x415369
mov esi, dword [edi + 0x108]
cmp esi, dword [edi + 0x10c]
je 0x415cf8
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
nop dword [eax]
push esi
lea ecx, [ebp - 0x50]
call fcn.00405ba0
mov byte [ebp - 4], 7
mov eax, dword [0x5040d0]
cmp eax, dword [ebx + 0x10]
jle 0x415637
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x415637
push 0x1f8
mov byte [ebp - 4], 8
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x21c], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 9
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 7
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0xd4]
push 0
push str.tip.startdeleteprinter
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415680
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x50]
push 0
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov ecx, dword [ebp - 0x20c]
add esp, 4
call fcn.0040aeb0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x415712
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 7
call fcn.004367b7
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x208]
call fcn.00405ba0
cmp dword [ebp - 0x1f4], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x208]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x208]
push ecx
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf000c
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x4157aa
push dword [ebp - 0x14]
call dword [sym.imp.WINSPOOL.DRV_DeletePrinter]
push dword [ebp - 0x14]
test eax, eax
jne 0x415909
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1f4]
mov edi, eax
cmp edx, 8
jb 0x4157f2
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4157e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov eax, dword [0x5040d0]
test edi, edi
jne 0x415956
cmp eax, dword [ebx + 0x10]
jle 0x415861
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x415861
push 0x1f8
mov byte [ebp - 4], 0xc
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x18], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0xd
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 7
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0xd4]
push 0
push str.tip.deletesuccess
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4158b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x50]
push 0
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov edi, dword [ebp - 0x20c]
add esp, 4
mov ecx, edi
call fcn.0040aeb0
mov byte [ebp - 4], 0xe
jmp 0x415c3c
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x41594f
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415945
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor edi, edi
jmp 0x4157f2
cmp eax, dword [ebx + 0x10]
jle 0x4159bb
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x4159bb
push 0x1f8
mov byte [ebp - 4], 0x10
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x214], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x11
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 7
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0xd4]
push 0
push str.tip.deletefail
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a03
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x50]
push 1
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov ecx, dword [ebp - 0x20c]
add esp, 4
call fcn.0040aeb0
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x415a95
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415a8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 7
call fcn.004367b7
mov eax, dword [0x5040d0]
cmp eax, dword [ebx + 0x10]
jle 0x415b2b
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x415b2b
push 0x1f8
mov byte [ebp - 4], 0x14
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x23c], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x15
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 7
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0xd4]
push 0
push str.tip.failreason
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b73
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
push 0
push 1
mov byte [ebp - 4], 0x17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.00425e00
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x415bb6
mov eax, dword [eax]
sub esp, 0x18
lea edx, [ebp - 0x208]
mov ecx, esp
push eax
call fcn.0041b050
mov edi, dword [ebp - 0x20c]
add esp, 4
mov ecx, edi
call fcn.0040aeb0
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x415c1b
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x415c7c
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f4], 7
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x1f8], eax
mov word [ebp - 0x208], ax
call fcn.004367b7
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x415ce9
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415cdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
add esi, 0x18
cmp esi, dword [edi + 0x10c]
jne 0x4155c0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x416993
mov ecx, dword fs:[0x2c]
mov ebx, dword [ecx]
mov dword [ebp - 0x14], ebx
lea edi, [eax + 0x28]
push edi
lea ecx, [ebp - 0x98]
call fcn.00405ba0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x80]
call fcn.00405ba0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x68]
call fcn.00405ba0
mov byte [ebp - 4], 0x1b
mov eax, dword [0x5040d0]
cmp eax, dword [ebx + 0x10]
jle 0x415db1
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x415db1
push 0x1f8
mov byte [ebp - 4], 0x1c
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x23c], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x1d
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 0x1b
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0x158]
push 0
push str.tip.startdeletedriver
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415e00
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x80]
push 0
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov ecx, dword [ebp - 0x20c]
add esp, 4
call fcn.0040aeb0
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x415e92
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415e88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 0x1b
call fcn.004367b7
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405ba0
xor ebx, ebx
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
push 3
cmovae eax, dword [ebp - 0x234]
push 3
push eax
push ebx
push ebx
call dword [sym.imp.WINSPOOL.DRV_DeletePrinterDriverExW]
test eax, eax
jne 0x415efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x415f3c
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415f32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov eax, dword [0x5040d0]
test ebx, ebx
jne 0x4165b4
mov ebx, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x10]
jle 0x415fb1
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x415fb1
push 0x1f8
mov byte [ebp - 4], 0x20
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x21c], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x21
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 0x1b
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0x158]
push 0
push str.tip.deletesuccess
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x22
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416000
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x80]
push 0
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov edi, dword [ebp - 0x20c]
add esp, 4
mov ecx, edi
call fcn.0040aeb0
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x416094
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41608a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 0x1b
call fcn.004367b7
cmp byte [ebp - 0x20d], 0
je 0x416966
cmp dword [ebp - 0x58], 0
jbe 0x416966
mov eax, dword [0x5040d0]
cmp eax, dword [ebx + 0x10]
jle 0x416141
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x416141
push 0x1f8
mov byte [ebp - 4], 0x24
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x218], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x25
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 0x1b
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0x158]
push 0
push str.tip.startdeletepack
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x26
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416190
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x80]
push 0
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov ecx, dword [ebp - 0x20c]
add esp, 4
call fcn.0040aeb0
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x416222
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416218
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 0x1b
call fcn.004367b7
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x208]
call fcn.00405ba0
mov byte [ebp - 4], 0x28
lea ebx, [ebp - 0x208]
cmp dword [ebp - 0x1f4], 8
push str.winspool.drv
cmovae ebx, dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4162c3
push str.DeletePrinterDriverPackageW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4162bc
push 0
push ebx
push 0
call eax
test eax, eax
je 0x4162bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 0x1b
mov edi, eax
call fcn.00407040
jmp 0x41630f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x416307
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4162fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
lea eax, [ebp - 0x158]
push 0
test edi, edi
jne 0x4163b9
push str.tip.deletesuccess
push eax
call fcn.00406b10
mov ecx, eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x29
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], edi
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416360
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x80]
push 0
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov edi, dword [ebp - 0x20c]
add esp, 4
mov ecx, edi
call fcn.0040aeb0
mov byte [ebp - 4], 0x29
jmp 0x4168ff
push str.tip.deletefail
push eax
call fcn.00406b10
mov ecx, eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x2b
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416400
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x80]
push 1
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b050
mov ecx, dword [ebp - 0x20c]
add esp, 4
call fcn.0040aeb0
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x416492
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 0x1b
call fcn.004367b7
push 0
lea eax, [ebp - 0x158]
push str.tip.failreason
push eax
call fcn.00406b10
mov ecx, eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x2d
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416507
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
push 0
push 1
mov byte [ebp - 4], 0x2e
call ebx
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.00425e00
mov byte [ebp - 4], 0x2f
cmp dword [eax + 0x14], 8
jb 0x416546
mov eax, dword [eax]
sub esp, 0x18
lea edx, [ebp - 0x208]
mov ecx, esp
push eax
call fcn.0041b050
mov edi, dword [ebp - 0x20c]
add esp, 4
mov ecx, edi
call fcn.0040aeb0
mov byte [ebp - 4], 0x2e
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4165ab
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4165a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov byte [ebp - 4], 0x2d
jmp 0x4168e6
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x10]
jle 0x41661c
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x41661c
push 0x1f8
mov byte [ebp - 4], 0x30
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x240], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x31
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 0x1b
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0x158]
push 0
push str.tip.deletefail
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x32
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416664
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
mov byte [ebp - 4], 0x33
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea edx, [ebp - 0x208]
push 0
cmovae eax, dword [ebp - 0x80]
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x214], esp
push eax
call fcn.0041b050
add esp, 4
mov byte [ebp - 4], 0x34
mov edi, dword [ebp - 0x14]
mov eax, dword [0x50425c]
cmp eax, dword [edi + 0x10]
jle 0x41670f
push 0x50425c
call fcn.0048ad23
add esp, 4
cmp dword [0x50425c], 0xffffffff
jne 0x41670f
push 0x184
push 0
push 0x5040d8
mov byte [ebp - 4], 0x35
call fcn.004a21c0
add esp, 0xc
call fcn.0040b3a0
push 0x4ca0a0
call fcn.0048b07f
push 0x50425c
mov byte [ebp - 4], 0x34
call fcn.0048acd9
add esp, 8
mov ecx, 0x5040d8
mov byte [ebp - 4], 0x33
call fcn.0040aeb0
mov byte [ebp - 4], 0x32
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x416761
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416757
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
mov byte [ebp - 4], 0x1b
call fcn.004367b7
mov eax, dword [0x5040d0]
cmp eax, dword [edi + 0x10]
jle 0x4167f7
push 0x5040d0
call fcn.0048ad23
add esp, 4
cmp dword [0x5040d0], 0xffffffff
jne 0x4167f7
push 0x1f8
mov byte [ebp - 4], 0x36
call fcn.0048ab36
mov edi, eax
mov dword [ebp - 0x244], edi
push 0x1f8
push 0
push edi
mov byte [ebp - 4], 0x37
call fcn.004a21c0
add esp, 0x10
mov ecx, edi
call fcn.0045e04c
push 0x5040d0
mov dword [0x5040d4], eax
mov byte [ebp - 4], 0x1b
call fcn.0048acd9
add esp, 4
mov ecx, dword [0x5040d4]
lea eax, [ebp - 0x158]
push 0
push str.tip.failreason
push eax
call fcn.0045e146
mov ecx, eax
mov byte [ebp - 4], 0x38
call fcn.00408300
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416840
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00406ee0
push 0
push 1
mov edx, ebx
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x234]
call fcn.00425e00
mov byte [ebp - 4], 0x3a
cmp dword [eax + 0x14], 8
jb 0x41687d
mov eax, dword [eax]
sub esp, 0x18
lea edx, [ebp - 0x208]
mov ecx, esp
push eax
call fcn.0041b050
mov edi, dword [ebp - 0x20c]
add esp, 4
mov ecx, edi
call fcn.0040aeb0
mov byte [ebp - 4], 0x39
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4168e2
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4168d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov byte [ebp - 4], 0x38
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x1f4]
cmp edx, 8
jb 0x41693f
mov ecx, dword [ebp - 0x208]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416935
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a64
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov dword [ebp - 0x1f4], 7
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1f8], eax
mov word [ebp - 0x208], ax
call fcn.004367b7
mov ebx, dword [ebp - 0x14]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.0040c880
lea ecx, [ebp - 0x18]
call fcn.0041a4a0
mov eax, dword [ebp - 0x18]
cmp eax, esi
jne 0x415d14
mov edx, dword [edi + 0x10c]
push ecx
mov ecx, dword [edi + 0x108]
call fcn.00408570
mov eax, dword [edi + 0x108]
add esp, 4
mov dword [edi + 0x10c], eax
mov byte [ebp - 4], 0x3b
lea ecx, [edi + 0x114]
mov ebx, dword [ecx]
mov eax, ebx
mov dword [ebp - 0x21c], ebx
mov edi, dword [ebx + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x416a15
mov ebx, dword [ebp - 0x238]
nop dword [eax]
push dword [esi + 8]
mov ecx, ebx
call fcn.0041a500
mov esi, dword [esi]
lea ecx, [edi + 0x10]
call fcn.00412380
push 0x40
push edi
call fcn.0048ab28
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x4169e0
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x238]
mov dword [eax + 4], ebx
mov eax, dword [ecx]
push 0
push 0
push 0x2f1
mov dword [eax], ebx
mov eax, dword [ecx]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 0x20c]
mov dword [ecx + 4], 0
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x20]
call fcn.00416a70
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.0048aaf4
mov esp, ebp
pop ebp
ret
call fcn.004a6c47
int3