Function at 0x4d5a6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3e
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x26c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x270], ebx
call fcn.005306b0
mov esi, 0x103
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005306b0
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.005306b0
add esp, 0x24
mov edx, edi
mov dword [ebp - 0x21c], ebx
call fcn.004ccc0d
test eax, eax
jne 0x4d5ecb
push 0x455
mov esi, str..TelNet.c
push esi
mov edx, 0x54f4b8
mov ecx, edi
call fcn.00434df1
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x228], edi
jne 0x4d5b29
push dword [ebp - 0x224]
push str.TelNetLoadPrinterConfig___FAILED:_Could_not_open_the_given_file___s__for_reading.
call fcn.0042bd38
pop ecx
pop ecx
jmp 0x4d5ecb
push esi
mov esi, 0x45b
push esi
push 1
push dword [ebp - 0x220]
call fcn.004d6ae6
add esp, 0x10
test eax, eax
je 0x4d5ec4
mov eax, dword [ebp - 0x220]
push esi
call fcn.004da8c5
test eax, eax
pop ecx
je 0x4d5ec4
push edi
push 0x42
lea eax, [ebp - 0x270]
push 1
push eax
call fcn.00530e93
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 0x10
cmp dword [ebp - 0x268], ebx
je 0x4d5c2d
push edi
push 4
lea eax, [ebp - 0x21c]
push 1
push eax
mov dword [ebp - 0x21c], ebx
call fcn.00530e93
add esp, 0x10
cmp dword [ebp - 0x21c], ebx
push dword [ebp - 0x21c]
jle 0x4d5c14
push 0x42
call esi
cmp eax, ebx
mov dword [ebp - 0x268], eax
je 0x4d5c05
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4d5be4
push edi
push dword [ebp - 0x21c]
push 1
push eax
call fcn.00530e93
add esp, 0x10
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4d5c2d
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevMode____ld_:__GetLastError_
mov dword [ebp - 0x268], ebx
call fcn.0042bd38
pop ecx
pop ecx
jmp 0x4d5c2d
push dword [ebp - 0x21c]
push 0x42
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x4d5c25
push dword [ebp - 0x224]
mov dword [ebp - 0x268], ebx
push str.TelNetLoadPrinterConfig___encountered_a_problem:_The_file___s__specifies_a_DevMode_that_is_of_size__ld
call fcn.0042bd38
add esp, 0xc
cmp dword [ebp - 0x264], ebx
je 0x4d5ce3
push edi
push 4
lea eax, [ebp - 0x21c]
push 1
push eax
mov dword [ebp - 0x21c], ebx
call fcn.00530e93
add esp, 0x10
cmp dword [ebp - 0x21c], ebx
push dword [ebp - 0x21c]
jle 0x4d5cca
push 0x42
call esi
cmp eax, ebx
mov dword [ebp - 0x264], eax
je 0x4d5cbb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4d5c9a
push edi
push dword [ebp - 0x21c]
push 1
push eax
call fcn.00530e93
add esp, 0x10
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4d5ce3
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames____ld_:__GetLastError_
mov dword [ebp - 0x264], ebx
call fcn.0042bd38
pop ecx
pop ecx
jmp 0x4d5ce3
push dword [ebp - 0x21c]
push 0x42
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x4d5cdb
push dword [ebp - 0x224]
mov dword [ebp - 0x264], ebx
push str.TelNetLoadPrinterConfig___encountered_a_problem:_The_file___s__specifies_a_DevNames_that_is_of_size__ld
call fcn.0042bd38
add esp, 0xc
mov esi, dword [ebp - 0x220]
mov eax, dword [esi + 0xcf4]
cmp eax, ebx
je 0x4d5d16
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x4d5d10
push dword [esi + 0xcf4]
push str.TelNetLoadPrinterConfig___encountered_a_problem:_DeleteDC__ld__FAILED__The_printer_DC_could_not_be_deleted:__GetLastError_
call fcn.0042b70b
pop ecx
pop ecx
mov dword [esi + 0xcf4], ebx
mov eax, dword [esi + 0xcec]
cmp eax, ebx
je 0x4d5d3c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4d5d36
push str.TelNetLoadPrinterConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevMode_could_not_be_freed:__GetLastError_
call fcn.0042bd38
pop ecx
mov dword [esi + 0xcec], ebx
mov eax, dword [esi + 0xcf0]
cmp eax, ebx
je 0x4d5d62
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4d5d5c
push str.TelNetLoadPrinterConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevNames_could_not_be_freed:__GetLastError_
call fcn.0042bd38
pop ecx
mov dword [esi + 0xcf0], ebx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x4d5dd0
movzx eax, word [esi + 2]
cmp ax, bx
mov edi, 0x104
jbe 0x4d5d98
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x110]
call fcn.004ccc3f
pop ecx
jmp 0x4d5d9e
mov byte [ebp - 0x110], bl
movzx eax, word [esi]
cmp ax, bx
jbe 0x4d5dbc
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x218]
call fcn.004ccc3f
pop ecx
jmp 0x4d5dc2
mov byte [ebp - 0x218], bl
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4d5de2
push dword [ebp - 0x264]
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames__for_pDevNames___ld_:__GetLastError_
call fcn.0042bd38
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
call fcn.00530f70
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
lea eax, [ebp - 0x218]
and esi, eax
lea eax, [ebp - 0x110]
push eax
call fcn.00530f70
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
lea eax, [ebp - 0x110]
and edi, eax
push 0x42
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x220]
add eax, 0xce4
push eax
call fcn.00531bb0
add esp, 0x14
cmp dword [ebp - 0x268], ebx
je 0x4d5ea9
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x224], eax
je 0x4d5e9e
push eax
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, dword [ebp - 0x220]
push dword [ebp - 0x268]
mov dword [esi + 0xcf4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esi + 0xcf4], ebx
jne 0x4d5ea9
push dword [ebp - 0x224]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push str.TelNetLoadPrinterConfig___FAILED:_CreateDC__s___s__NULL___p__FAILED:__GetLastError_
call fcn.0042bd38
add esp, 0x10
jmp 0x4d5ea9
push str.TelNetLoadPrinterConfig___Could_not_Lock_hDevMode_for_CreateDC__:__GetLastError_
call fcn.0042bd38
pop ecx
mov eax, dword [ebp - 0x220]
call fcn.004da909
mov ecx, dword [ebp - 0x228]
call fcn.00435239
xor eax, eax
inc eax
jmp 0x4d5ecd
mov ecx, edi
call fcn.00435239
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret