Function at 0x4cc69e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5c4e68]
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.005117f0
mov esi, 0x103
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.005117f0
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.005117f0
add esp, 0x24
mov edx, edi
mov dword [ebp - 0x21c], ebx
call fcn.004c3b34
test eax, eax
jne 0x4ccaff
push 0x455
mov esi, str..TelNet.c
push esi
mov edx, 0x530488
mov ecx, edi
call fcn.0042d2c6
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x228], edi
jne 0x4cc75d
push dword [ebp - 0x224]
push str.TelNetLoadPrinterConfig___FAILED:_Could_not_open_the_given_file___s__for_reading.
call fcn.00426c01
pop ecx
pop ecx
jmp 0x4ccaff
push esi
mov esi, 0x45b
push esi
push 1
push dword [ebp - 0x220]
call fcn.004cd71a
add esp, 0x10
test eax, eax
je 0x4ccaf8
mov eax, dword [ebp - 0x220]
push esi
call fcn.004d14fc
test eax, eax
pop ecx
je 0x4ccaf8
push edi
push 0x42
lea eax, [ebp - 0x270]
push 1
push eax
call fcn.00511c63
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 0x10
cmp dword [ebp - 0x268], ebx
je 0x4cc861
push edi
push 4
lea eax, [ebp - 0x21c]
push 1
push eax
mov dword [ebp - 0x21c], ebx
call fcn.00511c63
add esp, 0x10
cmp dword [ebp - 0x21c], ebx
push dword [ebp - 0x21c]
jle 0x4cc848
push 0x42
call esi
cmp eax, ebx
mov dword [ebp - 0x268], eax
je 0x4cc839
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4cc818
push edi
push dword [ebp - 0x21c]
push 1
push eax
call fcn.00511c63
add esp, 0x10
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4cc861
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.00426c01
pop ecx
pop ecx
jmp 0x4cc861
push dword [ebp - 0x21c]
push 0x42
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x4cc859
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.00426c01
add esp, 0xc
cmp dword [ebp - 0x264], ebx
je 0x4cc917
push edi
push 4
lea eax, [ebp - 0x21c]
push 1
push eax
mov dword [ebp - 0x21c], ebx
call fcn.00511c63
add esp, 0x10
cmp dword [ebp - 0x21c], ebx
push dword [ebp - 0x21c]
jle 0x4cc8fe
push 0x42
call esi
cmp eax, ebx
mov dword [ebp - 0x264], eax
je 0x4cc8ef
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4cc8ce
push edi
push dword [ebp - 0x21c]
push 1
push eax
call fcn.00511c63
add esp, 0x10
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4cc917
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.00426c01
pop ecx
pop ecx
jmp 0x4cc917
push dword [ebp - 0x21c]
push 0x42
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalAlloc__ld___d_:_OUT_OF_MEMORY.
jmp 0x4cc90f
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.00426c01
add esp, 0xc
mov esi, dword [ebp - 0x220]
mov eax, dword [esi + 0xcf4]
cmp eax, ebx
je 0x4cc94a
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x4cc944
push dword [esi + 0xcf4]
push str.TelNetLoadPrinterConfig___encountered_a_problem:_DeleteDC__ld__FAILED__The_printer_DC_could_not_be_deleted:__GetLastError_
call fcn.004265da
pop ecx
pop ecx
mov dword [esi + 0xcf4], ebx
mov eax, dword [esi + 0xcec]
cmp eax, ebx
je 0x4cc970
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4cc96a
push str.TelNetLoadPrinterConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevMode_could_not_be_freed:__GetLastError_
call fcn.00426c01
pop ecx
mov dword [esi + 0xcec], ebx
mov eax, dword [esi + 0xcf0]
cmp eax, ebx
je 0x4cc996
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4cc990
push str.TelNetLoadPrinterConfig___encountered_a_problem:_GlobalFree___FAILED__The_printer_setting_hDevNames_could_not_be_freed:__GetLastError_
call fcn.00426c01
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 0x4cca04
movzx eax, word [esi + 2]
cmp ax, bx
mov edi, 0x104
jbe 0x4cc9cc
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x110]
call fcn.004c3b66
pop ecx
jmp 0x4cc9d2
mov byte [ebp - 0x110], bl
movzx eax, word [esi]
cmp ax, bx
jbe 0x4cc9f0
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x218]
call fcn.004c3b66
pop ecx
jmp 0x4cc9f6
mov byte [ebp - 0x218], bl
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4cca16
push dword [ebp - 0x264]
push str.TelNetLoadPrinterConfig___encountered_a_problem:_Could_not_GlobalLock_pdData.hDevNames__for_pDevNames___ld_:__GetLastError_
call fcn.00426c01
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
call fcn.005120b0
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
lea eax, [ebp - 0x218]
and esi, eax
lea eax, [ebp - 0x110]
push eax
call fcn.005120b0
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.00512a90
add esp, 0x14
cmp dword [ebp - 0x268], ebx
je 0x4ccadd
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x224], eax
je 0x4ccad2
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 0x4ccadd
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.00426c01
add esp, 0x10
jmp 0x4ccadd
push str.TelNetLoadPrinterConfig___Could_not_Lock_hDevMode_for_CreateDC__:__GetLastError_
call fcn.00426c01
pop ecx
mov eax, dword [ebp - 0x220]
call fcn.004d1540
mov ecx, dword [ebp - 0x228]
call fcn.0042d70e
xor eax, eax
inc eax
jmp 0x4ccb01
mov ecx, edi
call fcn.0042d70e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret