Function at 0x4137d0
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x8110
call fcn.00414060
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8124]
push edi
push esi
lea eax, [esp + 0x4c]
push str._SendJob_File_to_printer_in_Lexmark_Engine___s_
push eax
call fcn.0041408f
lea ecx, [esp + 0x54]
push ecx
call fcn.00405a00
push esi
call fcn.00403f60
add esp, 0x14
test eax, eax
push esi
jne 0x413855
lea edx, [esp + 0x4c]
push str.ocs_print_sending___s__File_Missing
push edx
call fcn.0041408f
mov ecx, dword [0x42a708]
lea eax, [esp + 0x54]
push 0x42a728
push eax
push ecx
call fcn.004037a0
mov edx, dword [0x42afec]
add esp, 0x18
push 0
push 0
push 2
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8110
ret
call fcn.00403fc0
mov ebp, eax
lea eax, [esp + 0x4c]
push ebp
push esi
push str.File__s____size_i
push eax
call fcn.0041408f
lea ecx, [esp + 0x5c]
push ecx
call fcn.00405a00
push esi
call fcn.004040a0
mov ebx, eax
add esp, 0x1c
cmp ebx, 0xffffffff
jne 0x4138e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00404300
test eax, eax
je 0x41389f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
lea edx, [esp + 0x50]
push str.Cannot_open_handle_err_i___s_
push edx
call fcn.0041408f
mov ecx, dword [0x42a708]
lea eax, [esp + 0x58]
push 0x42a728
push eax
push ecx
call fcn.004037a0
mov edx, dword [0x42afec]
add esp, 0x1c
push 0
push 0
push 2
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8110
ret
mov edi, dword [esp + 0x8124]
xor eax, eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
lea edx, [esp + 0x10]
mov dword [esp + 0x3c], eax
push ecx
push edx
mov dword [esp + 0x48], eax
push edi
mov dword [esp + 0x4c], 4
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x413999
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
lea eax, [esp + 0x50]
push str.Cannot_OpenPrinter_err_i___s_
push eax
call fcn.0041408f
mov edx, dword [0x42a708]
lea ecx, [esp + 0x58]
push 0x42a728
push ecx
push edx
call fcn.004032b0
push edi
push esi
lea eax, [esp + 0x6c]
push str.ocs_print_cannot_openprinter___s__to___s_
push eax
call fcn.0041408f
mov edx, dword [0x42a708]
lea ecx, [esp + 0x74]
push 0x42a728
push ecx
push edx
call fcn.004032b0
mov eax, dword [0x42afec]
add esp, 0x38
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8110
ret
mov ecx, 0x2000
xor eax, eax
lea edi, [esp + 0x120]
xor esi, esi
rep stosd dword es:[edi], eax
xor ecx, ecx
push 0x14
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x1c], str.OCS_PRINT
mov dword [esp + 0x20], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x24], 0x41fc7c
call fcn.004042e0
mov eax, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x18]
push edx
push 1
push eax
call sub.WINSPOOL.DRV_StartDocPrinterA
test eax, eax
je 0x413c36
mov ecx, dword [esp + 0x10]
push ecx
call sub.WINSPOOL.DRV_StartPagePrinter
test eax, eax
je 0x413bd1
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x128]
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov eax, dword [esp + 0x14]
add esi, eax
push ebp
push esi
lea ecx, [esp + 0x50]
push str.Sent_file___i__bytes_of___i__bytes__to_printer
push ecx
call fcn.0041408f
lea edx, [esp + 0x58]
push edx
call fcn.00405a00
push 0xa
call fcn.004042e0
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x413ab4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413aa8
lea ecx, [esp + 0x44]
lea edx, [esp + 0x120]
push ecx
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call sub.WINSPOOL.DRV_WritePrinter
test eax, eax
jne 0x413aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x4c]
push str.OCSPRINT..failed_writing_to_printer_err__i
push ecx
call fcn.0041408f
mov eax, dword [0x42a708]
lea edx, [esp + 0x54]
push 0x42a728
push edx
push eax
call fcn.004032b0
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x413a02
mov ecx, dword [esp + 0x10]
push ecx
call sub.WINSPOOL.DRV_EndPagePrinter
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_EndDocPrinter
push ebp
push esi
lea eax, [esp + 0x50]
push str._done__Sent_file___i__bytes_of___i__bytes__to_printer
push eax
call fcn.0041408f
mov edx, dword [0x42a708]
lea ecx, [esp + 0x58]
push 0x42a728
push ecx
push edx
call fcn.004037a0
add esp, 0x1c
cmp ebp, esi
je 0x413b0e
mov eax, dword [0x42a708]
push 0x42a728
push str._print_job_not_completed_
push eax
call fcn.004032b0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
call fcn.00404300
test eax, eax
je 0x413b36
mov edx, dword [esp + 0x8128]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x110]
push eax
call fcn.00403ef0
mov edx, eax
mov esi, dword [esp + 0x812c]
push esi
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
and eax, 0xffff
mov ecx, dword [edx + 4]
push eax
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x36]
mov edx, dword [edx + 0xc]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x36]
and eax, 0xffff
mov dword [esp + 0x40], edx
push eax
mov eax, dword [esp + 0x46]
and eax, 0xffff
and edx, 0xffff
push eax
push edx
mov edx, dword [esp + 0x4a]
and ecx, 0xffff
and edx, 0xffff
lea eax, [esp + 0x64]
push edx
push ecx
push str.Print_Job_Completed___02i:_02i:_02i:_03i____M:_02i_D:_02i_Y:_04i___s
push eax
call fcn.0041408f
lea ecx, [esp + 0x74]
push ecx
call fcn.00405a00
add esp, 0x30
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8110
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x4c]
push str.Cannot_StartPagePrinter_err_i
push edx
call fcn.0041408f
mov ecx, dword [0x42a708]
lea eax, [esp + 0x54]
push 0x42a728
push eax
push ecx
call fcn.004032b0
mov edx, dword [esp + 0x28]
add esp, 0x18
push edx
call sub.WINSPOOL.DRV_EndDocPrinter
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov ecx, dword [esp + 0x8128]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8110
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x4c]
push str.Cannot_StartDocPrinter_err_i
push edx
call fcn.0041408f
mov ecx, dword [0x42a708]
lea eax, [esp + 0x54]
push 0x42a728
push eax
push ecx
call fcn.004032b0
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
call fcn.00404300
test eax, eax
je 0x413c8d
mov eax, dword [esp + 0x8128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x42afec]
push esi
push esi
push 2
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8110
ret