Function at 0x48a130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x25c]
push edi
mov edi, dword [ebp + 0xc]
push 0x42
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e69c0
push edi
mov dword [ebp - 0x210], 0
call fcn.004a73a0
add esp, 0x28
test eax, eax
je 0x48a1aa
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push ebx
push 0x1610
push str.C:UsersOfficeDocumentsVisual_StudioPAULAPrinter.c
push 0x50a5d0
push edi
call fcn.0042c170
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x218], ebx
test ebx, ebx
jne 0x48a1f0
push edi
push str.PrinterLoadConfig___FAILED:_Could_not_open_the_given_file___s__for_reading.
call fcn.00424fd0
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x48a21f
push esi
push dword [0x670d38]
call fcn.00491320
add esp, 8
test eax, eax
jne 0x48a23b
push 0x1617
push str.C:UsersOfficeDocumentsVisual_StudioPAULAPrinter.c
push esi
push str.Invalid_HPRINTER:__p__File:___s___Line:__ld
call fcn.00424fd0
add esp, 0x10
push ebx
call fcn.0042bfc0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x20c], 0
je 0x48a25a
cmp dword [esi], 0
je 0x48a25a
lea eax, [esi + 0x4c]
push 0x2710
push eax
call fcn.00433920
add esp, 8
lea eax, [esi + 0x4c]
push 0x1f1d
push eax
mov dword [ebp - 0x214], eax
call fcn.00433710
add esp, 8
test eax, eax
je 0x48a21f
push ebx
push 0x42
lea eax, [ebp - 0x25c]
push 1
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 0x42
je 0x48a2a4
push 0x42
push eax
push edi
push str.:5:PrinterLoadConfig___s___FAILED:_Could_only_read__d_bytes_of__d_for_the_PRINTDLG_struct_
call fcn.00424a90
add esp, 0x10
jmp 0x48a46a
cmp dword [ebp - 0x254], 0
je 0x48a3b6
push ebx
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push 1
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 4
je 0x48a2e7
push edi
push str.:5:PrinterLoadConfig___s___FAILED:_Could_not_read_the_size_of_the_DEVMODE_struct.
call fcn.00424a90
add esp, 8
jmp 0x48a46a
mov eax, dword [ebp - 0x210]
push eax
test eax, eax
jle 0x48a39e
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x254], eax
test eax, eax
je 0x48a38f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x48a368
push ebx
push dword [ebp - 0x210]
push 1
push eax
call fcn.004e91b7
mov ecx, dword [ebp - 0x210]
add esp, 0x10
cmp eax, ecx
je 0x48a35a
push ecx
push eax
push edi
push str.:5:PrinterLoadConfig___s___FAILED:_Could_only_read__d_bytes_of__d_for_the_DEVMODE_struct_
call fcn.00424a90
add esp, 0x10
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x254]
jmp 0x48a464
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x48a3b6
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push str.:4:PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevMode____ld_:__GetLastError_
mov dword [ebp - 0x254], 0
call fcn.00424fd0
add esp, 8
jmp 0x48a3b6
push dword [ebp - 0x210]
push 0x42
push str.:4:PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x48a3ae
push edi
mov dword [ebp - 0x254], 0
push str.:7:PrinterLoadConfig___encountered_a_problem:_The_file___s__specifies_a_DevMode_that_is_of_size__ld
call fcn.00424fd0
add esp, 0xc
cmp dword [ebp - 0x250], 0
je 0x48a4f5
push ebx
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push 1
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 4
je 0x48a3f6
push edi
push str.:5:PrinterLoadConfig___s___FAILED:_Could_not_read_the_size_of_the_DEVNAMES_struct.
call fcn.00424a90
add esp, 8
jmp 0x48a46a
mov eax, dword [ebp - 0x210]
push eax
test eax, eax
jle 0x48a4dd
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x48a4ce
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x48a4a5
push ebx
push dword [ebp - 0x210]
push 1
push eax
call fcn.004e91b7
mov ecx, dword [ebp - 0x210]
add esp, 0x10
cmp eax, ecx
je 0x48a497
push ecx
push eax
push edi
push str.:5:PrinterLoadConfig___s___FAILED:_Could_only_read__d_bytes_of__d_for_the_DEVNAMES_struct_
call fcn.00424a90
add esp, 0x10
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x214]
push 0x1f27
push eax
call fcn.00433ae0
push ebx
call fcn.0042bfc0
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x48a4f5
push dword [ebp - 0x250]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
push 0
push str.PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames____ld_:__GetLastError_
mov dword [ebp - 0x250], 0
call fcn.00424fd0
add esp, 8
jmp 0x48a4fb
push dword [ebp - 0x210]
push 0x42
push str.PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x48a4ed
push edi
mov dword [ebp - 0x250], 0
push str.PrinterLoadConfig___encountered_a_problem:_The_file___s__specifies_a_DevNames_that_is_of_size__ld
call fcn.00424fd0
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48a524
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x48a51d
push dword [esi + 0x14]
push str.PrinterLoadConfig___encountered_a_problem:_DeleteDC__ld__FAILED__The_printer_DC_could_not_be_deleted:__GetLastError_
call fcn.00424a90
add esp, 8
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48a546
push eax
call ebx
test eax, eax
je 0x48a53f
push str.PrinterLoadConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevMode_could_not_be_freed:__GetLastError_
call fcn.00424fd0
add esp, 4
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x48a568
push eax
call ebx
test eax, eax
je 0x48a561
push str.PrinterLoadConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevNames_could_not_be_freed:__GetLastError_
call fcn.00424fd0
add esp, 4
mov dword [esi + 0x10], 0
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x48a5e5
movzx eax, word [edi + 2]
test ax, ax
je 0x48a59c
add eax, edi
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a9a20
add esp, 0xc
jmp 0x48a5a3
mov byte [ebp - 0x108], 0
movzx eax, word [edi]
test ax, ax
je 0x48a5d0
add eax, edi
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004a9a20
add esp, 0xc
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x48a5f8
push dword [ebp - 0x250]
mov byte [ebp - 0x20c], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x48a5f8
push dword [ebp - 0x250]
push str.PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames__for_pDevNames___ld_:__GetLastError_
call fcn.00424fd0
add esp, 8
lea edi, [ebp - 0x20c]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x48a601
lea ebx, [ebp - 0x108]
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x48a613
movups xmm1, xmmword [ebp - 0x25c]
mov ax, word [ebp - 0x21c]
sub ebx, ecx
movups xmm0, xmmword [ebp - 0x24c]
movups xmmword [esi + 4], xmm1
movups xmmword [esi + 0x14], xmm0
movups xmm0, xmmword [ebp - 0x23c]
psrldq xmm1, 8
movups xmmword [esi + 0x24], xmm0
movups xmm0, xmmword [ebp - 0x22c]
movups xmmword [esi + 0x34], xmm0
mov word [esi + 0x44], ax
movd eax, xmm1
test eax, eax
je 0x48a6dd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x48a6d0
push eax
xor eax, eax
cmp eax, ebx
lea eax, [ebp - 0x108]
push 0
sbb ecx, ecx
and ecx, eax
xor eax, eax
cmp eax, edi
push ecx
sbb eax, eax
lea ecx, [ebp - 0x20c]
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateDCA]
push dword [ebp - 0x254]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esi + 0x14], 0
jne 0x48a6dd
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.PrinterLoadConfig___FAILED:_CreateDC__s___s__NULL___p__FAILED:__GetLastError_
call fcn.00424fd0
add esp, 0x10
jmp 0x48a6dd
push str.PrinterLoadConfig___Could_not_Lock_hDevMode_for_CreateDC__:__GetLastError_
call fcn.00424fd0
add esp, 4
lea eax, [esi + 0x4c]
push 0x1f27
push eax
call fcn.00433ae0
push dword [ebp - 0x218]
call fcn.0042bfc0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop ebx
pop edi
pop esi
call fcn.004e50dc
mov esp, ebp
pop ebp
ret