Function at 0x4711c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a730
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x60], 0xf000c
mov eax, 0x53d218
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], 0x55e3d4
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x47154e
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x471235
sub eax, edx
sar eax, 1
je 0x47154e
cmp esi, edi
je 0x47154e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x471257
sub eax, edx
sar eax, 1
je 0x47154e
push edi
push edi
push 3
push edi
push edi
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x4712b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Open_File_Fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x24], esi
push 0x5814b0
lea eax, [ebp - 0x24]
push eax
call fcn.004fd5a3
push esi
push str.Open_PRN_File_Success___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x471521
cmp esi, edi
je 0x471521
push esi
call fcn.004da994
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x47131c
push str.__new__fucntion_returns_NULL______________
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x28], 0x7a
push 0x5814b0
lea ecx, [ebp - 0x28]
push ecx
call fcn.004fd5a3
push 0
lea edx, [ebp - 0x2c]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47135c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Read_data_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x30], esi
push 0x5814b0
lea eax, [ebp - 0x30]
push eax
call fcn.004fd5a3
push str.Get_Prn_Data_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
jne 0x4713b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Open_Printer_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x34], esi
push 0x5814b0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004fd5a3
push str.Open_Printer_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov ecx, dword [ebp - 0x14]
call fcn.00471620
test al, al
je 0x4713e7
push str.This_is_XPS_Driver_so_Document_Data_type_was_set__XPS_PASS_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x54], str.XPS_PASS
lea edx, [ebp - 0x5c]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.WINSPOOL.DRV_StartDocPrinterW
test eax, eax
jne 0x471427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Start_Doc_Printer_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x38], esi
push 0x5814b0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004fd5a3
push str.Start_Doc_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call sub.WINSPOOL.DRV_StartPagePrinter
test eax, eax
jne 0x471473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Start_Page_Printer_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x3c], esi
push 0x5814b0
lea eax, [ebp - 0x3c]
push eax
call fcn.004fd5a3
push str.Start_Page_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea ecx, [ebp - 0x40]
push ecx
push esi
push edi
mov edx, dword [ebp - 0x14]
push edx
call sub.WINSPOOL.DRV_WritePrinter
test eax, eax
jne 0x4714c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Writer_Printer_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x44], esi
push 0x5814b0
lea eax, [ebp - 0x44]
push eax
call fcn.004fd5a3
push str.Write_Prn_Data_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call sub.WINSPOOL.DRV_EndPagePrinter
test eax, eax
je 0x4714f6
push str.End_Page_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call sub.WINSPOOL.DRV_EndDocPrinter
test eax, eax
je 0x471515
push str.End_DOC_Success
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4715b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.Get_File_Size__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x48], esi
push 0x5814b0
lea eax, [ebp - 0x48]
push eax
call fcn.004fd5a3
push str.Invalid_Parameter
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4715ca
push eax
call fcn.004da999
add esp, 4
cmp ebx, 0xffffffff
je 0x4715d6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4715e3
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret