Function at 0x46b4d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3e
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ebx
call fcn.004b7880
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [esp + 0x6d]
push ebx
push eax
mov byte [esp + 0x74], bl
call fcn.004b7880
add esp, 0xc
push esi
lea eax, [esp + 0x175]
push ebx
push eax
mov byte [esp + 0x17c], bl
call fcn.004b7880
add esp, 0xc
mov edx, edi
mov dword [esp + 0x10], ebx
call fcn.0047ebaf
test eax, eax
jne 0x46b980
push 0x1610
push str..Printer.c
mov edx, 0x4d520c
mov ecx, edi
call fcn.0041e477
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [esp + 0x1c], esi
jne 0x46b58b
push edi
push str.PrinterLoadConfig___FAILED:_Could_not_open_the_given_file___s__for_reading.
call fcn.0041936e
pop ecx
pop ecx
jmp 0x46b980
push 0x1617
push dword [esp + 0x1c]
call fcn.0046e529
test eax, eax
pop ecx
pop ecx
je 0x46b979
mov eax, dword [esp + 0x18]
call fcn.0046e55e
test eax, eax
je 0x46b979
push esi
push 0x42
lea eax, [esp + 0x28]
push 1
push eax
call fcn.004b7b96
add esp, 0x10
cmp eax, 0x42
je 0x46b5e1
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.00418e96
add esp, 0x10
jmp 0x46b777
cmp dword [esp + 0x28], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
pop edi
je 0x46b6d7
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edi
push 1
push eax
mov dword [esp + 0x20], ebx
call fcn.004b7b96
add esp, 0x10
cmp eax, edi
je 0x46b625
push dword [esp + 0x14]
push str.:5:PrinterLoadConfig___s___FAILED:_Could_not_read_the_size_of_the_DEVMODE_struct.
call fcn.00418e96
pop ecx
pop ecx
jmp 0x46b777
cmp dword [esp + 0x10], ebx
push dword [esp + 0x10]
jle 0x46b6c2
push 0x42
call esi
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x46b6b5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x46b698
push dword [esp + 0x1c]
push dword [esp + 0x14]
push 1
push eax
call fcn.004b7b96
add esp, 0x10
cmp eax, dword [esp + 0x10]
je 0x46b68c
push dword [esp + 0x10]
push eax
push dword [esp + 0x1c]
push str.:5:PrinterLoadConfig___s___FAILED:_Could_only_read__d_bytes_of__d_for_the_DEVMODE_struct_
call fcn.00418e96
add esp, 0x10
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x28]
jmp 0x46b771
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x46b6d7
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push str.:4:PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevMode____ld_:__GetLastError_
mov dword [esp + 0x30], ebx
call fcn.0041936e
pop ecx
pop ecx
jmp 0x46b6d7
push dword [esp + 0x10]
push 0x42
push str.:4:PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x46b6cf
push dword [esp + 0x18]
mov dword [esp + 0x30], ebx
push str.:7:PrinterLoadConfig___encountered_a_problem:_The_file___s__specifies_a_DevMode_that_is_of_size__ld
call fcn.0041936e
add esp, 0xc
cmp dword [esp + 0x2c], ebx
je 0x46b7d4
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edi
push 1
push eax
mov dword [esp + 0x20], ebx
call fcn.004b7b96
add esp, 0x10
cmp eax, edi
je 0x46b70b
push dword [esp + 0x14]
push str.:5:PrinterLoadConfig___s___FAILED:_Could_not_read_the_size_of_the_DEVNAMES_struct.
jmp 0x46b619
cmp dword [esp + 0x10], ebx
push dword [esp + 0x10]
jle 0x46b7bf
push 0x42
call esi
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x46b7b2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x46b795
push dword [esp + 0x1c]
push dword [esp + 0x14]
push 1
push eax
call fcn.004b7b96
add esp, 0x10
cmp eax, dword [esp + 0x10]
je 0x46b789
push dword [esp + 0x10]
push eax
push dword [esp + 0x1c]
push str.:5:PrinterLoadConfig___s___FAILED:_Could_only_read__d_bytes_of__d_for_the_DEVNAMES_struct_
call fcn.00418e96
add esp, 0x10
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
call fcn.0046e594
mov ecx, dword [esp + 0x1c]
jmp 0x46b97b
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x46b7d4
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push str.PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames____ld_:__GetLastError_
mov dword [esp + 0x34], ebx
call fcn.0041936e
pop ecx
pop ecx
jmp 0x46b7d4
push dword [esp + 0x10]
push 0x42
push str.PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x46b7cc
push dword [esp + 0x18]
mov dword [esp + 0x34], ebx
push str.PrinterLoadConfig___encountered_a_problem:_The_file___s__specifies_a_DevNames_that_is_of_size__ld
call fcn.0041936e
add esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x46b7fc
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x46b7f9
push dword [esi + 0x14]
push str.PrinterLoadConfig___encountered_a_problem:_DeleteDC__ld__FAILED__The_printer_DC_could_not_be_deleted:__GetLastError_
call fcn.00418e96
pop ecx
pop ecx
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x46b81c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x46b819
push str.PrinterLoadConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevMode_could_not_be_freed:__GetLastError_
call fcn.0041936e
pop ecx
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x46b83c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x46b839
push str.PrinterLoadConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevNames_could_not_be_freed:__GetLastError_
call fcn.0041936e
pop ecx
mov dword [esi + 0x10], ebx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x46b8a4
movzx eax, word [esi + 2]
cmp ax, bx
mov edi, 0x104
jbe 0x46b86e
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [esp + 0x6c]
call fcn.0047ebe1
pop ecx
jmp 0x46b872
mov byte [esp + 0x68], bl
movzx eax, word [esi]
cmp ax, bx
jbe 0x46b891
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [esp + 0x174]
call fcn.0047ebe1
pop ecx
jmp 0x46b898
mov byte [esp + 0x170], bl
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x46b8b4
push dword [esp + 0x2c]
push str.PrinterLoadConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames__for_pDevNames___ld_:__GetLastError_
call fcn.0041936e
pop ecx
pop ecx
lea eax, [esp + 0x170]
push eax
call fcn.004b68f0
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
lea eax, [esp + 0x170]
and esi, eax
lea eax, [esp + 0x68]
push eax
call fcn.004b68f0
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
lea eax, [esp + 0x68]
and edi, eax
push 0x42
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
add eax, 4
push eax
call fcn.004b7150
add esp, 0xc
cmp dword [esp + 0x28], ebx
je 0x46b962
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x46b957
push eax
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, dword [esp + 0x18]
push dword [esp + 0x28]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esi + 0x14], ebx
jne 0x46b962
push dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x178]
push eax
push str.PrinterLoadConfig___FAILED:_CreateDC__s___s__NULL___p__FAILED:__GetLastError_
call fcn.0041936e
add esp, 0x10
jmp 0x46b962
push str.PrinterLoadConfig___Could_not_Lock_hDevMode_for_CreateDC__:__GetLastError_
call fcn.0041936e
pop ecx
mov eax, dword [esp + 0x18]
call fcn.0046e594
mov ecx, dword [esp + 0x1c]
call fcn.0041e8bf
xor eax, eax
inc eax
jmp 0x46b982
mov ecx, esi
call fcn.0041e8bf
xor eax, eax
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret