Function at 0x402cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push 0x208
movq qword [ebp - 0x24], xmm0
call fcn.00403809
mov esi, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0x208
movq qword [ebp - 0x1c], xmm0
call fcn.00403809
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x104
push edi
push 1
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
test eax, eax
jne 0x402d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push 0x41e3c0
push eax
call fcn.00405549
mov eax, dword [0x420f58]
cmp eax, 9
jne 0x402db1
cmp dword [0x420f78], 8
mov ecx, 0x420f64
mov edx, esi
cmovae ecx, dword [0x420f64]
movzx eax, word [ecx]
lea edx, [edx + 2]
add ecx, 2
mov word [edx - 2], ax
test ax, ax
jne 0x402d84
mov edx, esi
cmp word [esi], ax
je 0x402da9
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x402da0
push ecx
push 0x41cfd4
jmp 0x402dff
test eax, eax
jne 0x403209
cmp dword [0x420f78], 8
mov ecx, 0x420f64
mov edx, esi
cmovae ecx, dword [0x420f64]
nop
movzx eax, word [ecx]
lea edx, [edx + 2]
add ecx, 2
mov word [edx - 2], ax
test ax, ax
jne 0x402dd0
mov edx, esi
cmp word [esi], ax
je 0x402df9
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x402df0
push ecx
push 0x41cfdc
mov ecx, esi
call fcn.00402a00
add esp, 8
mov edx, edi
push ecx
mov ecx, esi
call fcn.00402ab0
mov edi, eax
add esp, 4
cmp edi, 5
je 0x402e55
push str.__ERR___Copy_file_fail._n
call fcn.00401110
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push edi
call fcn.00402c00
add esp, 4
mov dword [ebp - 0xa4], esi
lea eax, [ebp - 0xa4]
push 0x41e3c0
push eax
call fcn.00405549
mov eax, dword [0x41d114]
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], eax
mov eax, dword [0x41d118]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x41d11c]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [0x41d120]
mov dword [ebp - 0x34], eax
mov eax, dword [0x420f58]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x41fb28
mov dword [ebp - 0x30], str.PSCRIPT5.DLL
cmp eax, 9
jne 0x402eaf
mov dword [ebp - 0x44], str.Windows_x64
jmp 0x402ebe
test eax, eax
jne 0x403171
mov dword [ebp - 0x44], str.Windows_NT_x86
lea eax, [ebp - 0x4c]
push eax
push 3
push 0
call dword [sym.imp.WINSPOOL.DRV_AddPrinterDriverW]
test eax, eax
jne 0x402f87
push str.__ERR___Call_AddPrinterDriver_fail._n
call fcn.00401110
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
mov dword [ebp - 0xa4], eax
call fcn.00403809
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov esi, edi
add esp, 4
sub esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
nop dword [eax + eax]
movzx eax, word [ecx]
mov word [ecx + esi], ax
add ecx, 2
test ax, ax
jne 0x402f10
cmp word [edi], 0
mov eax, dword [edx + 0x41d114]
mov edx, edi
je 0x402f39
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x402f30
push ecx
push eax
mov ecx, edi
call fcn.00402a00
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x14], edx
cmp edx, 0x14
jne 0x402f10
push edi
call fcn.00403556
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa4], eax
push 0x41e3c0
lea eax, [ebp - 0xa4]
push eax
call fcn.00405549
call fcn.00402220
test al, al
je 0x4030c4
call fcn.00402360
test al, al
je 0x4030c4
push 0x54
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004057b0
mov edi, dword [sym.imp.WINSPOOL.DRV_AddPrinterW]
lea eax, [ebp - 0xa0]
add esp, 0xc
mov dword [ebp - 0x9c], str.Wondershare_PDFelement
mov dword [ebp - 0x90], 0x41fb28
mov dword [ebp - 0x94], str.Wondershare_PDFelement_Port
mov dword [ebp - 0x7c], str.WinPrint
push eax
push 2
push 0
call edi
test eax, eax
jne 0x4030bb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x704
jne 0x403032
call fcn.00401310
test al, al
je 0x403032
push str.Spooler
call fcn.004011d0
add esp, 4
test al, al
je 0x403032
lea eax, [ebp - 0xa0]
push eax
push 2
push 0
call edi
test eax, eax
jne 0x4030bb
push str.__ERR___Call_AddPrinter_fail._n
call fcn.00401110
add esp, 4
call esi
push 0x208
mov dword [ebp - 0xa4], eax
call fcn.00403809
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov esi, edi
add esp, 4
sub esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
movzx eax, word [ecx]
mov word [ecx + esi], ax
add ecx, 2
test ax, ax
jne 0x403062
cmp word [edi], 0
mov eax, dword [edx + 0x41d114]
mov edx, edi
je 0x403089
nop
add edx, 2
cmp word [edx], 0
jne 0x403080
push ecx
push eax
mov ecx, edi
call fcn.00402a00
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x14], edx
cmp edx, 0x14
jne 0x403062
push edi
call fcn.00403556
add esp, 4
jmp 0x402f66
push eax
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
jmp 0x4030d6
push str.Wondershare_PDFelement_Port
push str.__ERR___Monitor_name___s__not_exist._n
call fcn.00401110
add esp, 8
push 0x208
call fcn.00403809
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov esi, edi
add esp, 4
sub esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
movzx eax, word [ecx]
mov word [ecx + esi], ax
add ecx, 2
test ax, ax
jne 0x4030f1
cmp word [edi], 0
mov eax, dword [edx + 0x41d114]
mov edx, edi
je 0x403119
nop
add edx, 2
cmp word [edx], 0
jne 0x403110
push ecx
push eax
mov ecx, edi
call fcn.00402a00
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x14], edx
cmp edx, 0x14
jne 0x4030f1
push edi
call fcn.00403556
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00401a10
lea ecx, [ebp - 0x24]
call fcn.00401a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403545
mov esp, ebp
pop ebp
ret
push eax
push str.__ERR___Unknown_processor_model._architecture_value_is__d.
call fcn.00401110
push 0x208
call fcn.00403809
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov esi, edi
add esp, 0xc
sub esi, ecx
xor edx, edx
mov dword [ebp - 0x14], edx
nop word [eax + eax]
movzx eax, word [ecx]
mov word [esi + ecx], ax
add ecx, 2
test ax, ax
jne 0x4031a0
cmp word [edi], 0
mov eax, dword [edx + 0x41d114]
mov edx, edi
je 0x4031c9
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x4031c0
push ecx
push eax
mov ecx, edi
call fcn.00402a00
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x14], edx
cmp edx, 0x14
jne 0x4031a0
push edi
call fcn.00403556
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0xa4], 0xffffffff
jmp 0x402f76
push eax
push str.__ERR___Unknown_processor_model._architecture_value_is__d.
call fcn.00401110
add esp, 8
mov dword [ebp - 0xa4], 0xffffffff
jmp 0x402f76