Function at 0x402cf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b54
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.004038a6
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.004038a6
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 0x402da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push 0x41e418
push eax
call fcn.00405629
mov eax, dword [0x420f58]
cmp eax, 9
jne 0x402df6
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 0x402dc4
mov edx, esi
cmp word [esi], ax
je 0x402de9
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x402de0
push ecx
push 0x41d014
mov ecx, esi
jmp 0x402e81
test eax, eax
jne 0x402e43
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 0x402e10
mov edx, esi
cmp word [esi], ax
je 0x402e39
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x402e30
push ecx
push 0x41d01c
mov ecx, esi
jmp 0x402e81
cmp eax, 0xc
jne 0x403289
cmp dword [0x420f78], 8
mov edx, 0x420f64
mov ecx, esi
cmovae edx, dword [0x420f64]
call fcn.00401050
mov edx, eax
cmp word [eax], 0
je 0x402e79
nop
add edx, 2
cmp word [edx], 0
jne 0x402e70
push ecx
push str.arm64
mov ecx, eax
call fcn.00402a40
add esp, 8
mov edx, edi
push ecx
mov ecx, esi
call fcn.00402af0
mov edi, eax
add esp, 4
cmp edi, 5
je 0x402ed5
push str.__ERR___Copy_file_fail._n
call fcn.00401130
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
push edi
call fcn.00402c40
add esp, 4
mov dword [ebp - 0xa4], esi
lea eax, [ebp - 0xa4]
push 0x41e418
push eax
call fcn.00405629
mov eax, dword [0x41d164]
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], eax
mov eax, dword [0x41d168]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x41d16c]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [0x41d170]
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 0x402f2f
mov dword [ebp - 0x44], str.Windows_x64
jmp 0x402f4c
test eax, eax
jne 0x402f3c
mov dword [ebp - 0x44], str.Windows_NT_x86
jmp 0x402f4c
cmp eax, 0xc
jne 0x4031f1
mov dword [ebp - 0x44], str.Windows_ARM64
lea eax, [ebp - 0x4c]
push eax
push 3
push 0
call dword [sym.imp.WINSPOOL.DRV_AddPrinterDriverW]
test eax, eax
jne 0x40300a
push str.__ERR___Call_AddPrinterDriver_fail._n
call fcn.00401130
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
mov dword [ebp - 0xa4], eax
call fcn.004038a6
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 [esi + ecx], ax
add ecx, 2
test ax, ax
jne 0x402f96
cmp word [edi], 0
mov eax, dword [edx + 0x41d164]
mov edx, edi
je 0x402fbc
add edx, 2
cmp word [edx], 0
jne 0x402fb3
push ecx
push eax
mov ecx, edi
call fcn.00402a40
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 0x402f96
push edi
call fcn.004035d6
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa4], eax
push 0x41e418
lea eax, [ebp - 0xa4]
push eax
call fcn.00405629
call fcn.00402250
test al, al
je 0x403146
call fcn.00402390
test al, al
je 0x403146
push 0x54
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00405890
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 0x40313d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x704
jne 0x4030b5
call fcn.00401330
test al, al
je 0x4030b5
push str.Spooler
call fcn.004011f0
add esp, 4
test al, al
je 0x4030b5
lea eax, [ebp - 0xa0]
push eax
push 2
push 0
call edi
test eax, eax
jne 0x40313d
push str.__ERR___Call_AddPrinter_fail._n
call fcn.00401130
add esp, 4
call esi
push 0x208
mov dword [ebp - 0xa4], eax
call fcn.004038a6
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 0x4030e5
cmp word [edi], 0
mov eax, dword [edx + 0x41d164]
mov edx, edi
je 0x40310b
add edx, 2
cmp word [edx], 0
jne 0x403102
push ecx
push eax
mov ecx, edi
call fcn.00402a40
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 0x4030e5
push edi
call fcn.004035d6
add esp, 4
jmp 0x402fe9
push eax
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
jmp 0x403158
push str.Wondershare_PDFelement_Port
push str.__ERR___Monitor_name___s__not_exist._n
call fcn.00401130
add esp, 8
push 0x208
call fcn.004038a6
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 0x403173
cmp word [edi], 0
mov eax, dword [edx + 0x41d164]
mov edx, edi
je 0x403199
add edx, 2
cmp word [edx], 0
jne 0x403190
push ecx
push eax
mov ecx, edi
call fcn.00402a40
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 0x403173
push edi
call fcn.004035d6
push dword [ebp - 0x1c]
call fcn.004035d6
push dword [ebp - 0x24]
call fcn.004035d6
add esp, 0xc
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.004035c5
mov esp, ebp
pop ebp
ret
push eax
push str.__ERR___Unknown_processor_model._architecture_value_is__d.
call fcn.00401130
push 0x208
call fcn.004038a6
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 0x403220
cmp word [edi], 0
mov eax, dword [edx + 0x41d164]
mov edx, edi
je 0x403249
nop dword [eax]
add edx, 2
cmp word [edx], 0
jne 0x403240
push ecx
push eax
mov ecx, edi
call fcn.00402a40
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 0x403220
push edi
call fcn.004035d6
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0xa4], 0xffffffff
jmp 0x402ff9
push eax
push str.__ERR___Unknown_processor_model._architecture_value_is__d.
call fcn.00401130
add esp, 8
mov dword [ebp - 0xa4], 0xffffffff
jmp 0x402ff9