Function at 0x4c4fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
mov edi, ecx
mov dword [ebp - 8], 0
call fcn.004a9098
add esp, 4
cmp eax, 0xff
jne 0x4c50f8
push ebx
call fcn.004a9098
add esp, 4
cmp eax, 0xd8
jne 0x4c50f8
cmp dword [edi + 0x200], 0x14
push esi
jge 0x4c50c3
nop word [eax + eax]
xor esi, esi
push ebx
call fcn.004a9098
mov ebx, eax
add esp, 4
cmp ebx, 0xff
jne 0x4c4e7d
cmp esi, 6
jge 0x4c4ff9
inc esi
cmp esi, 7
jge 0x4c4fd0
mov ebx, dword [ebp + 8]
jmp 0x4c4e52
mov eax, dword [edi + 0x200]
mov esi, dword [ebp + 8]
add eax, 0x17
push esi
lea eax, [eax + eax*2]
mov dword [edi + eax*4], ebx
call fcn.004a9098
push esi
mov dword [ebp - 4], eax
call fcn.004a9098
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 4]
shl eax, 8
or eax, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, 2
jl 0x4c5091
mov ecx, dword [edi + 0x200]
push eax
lea ecx, [ecx + ecx*2]
mov dword [edi + ecx*4 + 0x118], eax
call fcn.004a8f05
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c5064
mov ecx, dword [edi + 0x200]
push esi
mov esi, dword [ebp - 0x14]
lea ecx, [ecx + ecx*2]
mov dword [edi + ecx*4 + 0x110], eax
mov ecx, dword [ebp - 4]
mov byte [eax], cl
mov ecx, dword [ebp - 0x10]
mov byte [eax + 1], cl
lea ecx, [eax + 2]
lea eax, [esi - 2]
mov dword [ebp - 0x10], ecx
push eax
push 1
push ecx
call fcn.004ac790
lea ecx, [esi - 2]
add esp, 0x10
cmp eax, ecx
jne 0x4c5034
inc dword [edi + 0x200]
lea eax, [ebx - 0xc0]
mov ecx, dword [edi + 0x200]
cmp eax, 0x3e
ja case.0x4c4f3f.196
movzx eax, byte [eax + 0x4c5120]
jmp dword [eax*4 + 0x4c5104]
cmp dword [ebp - 8], 0
je 0x4c4f7d
lea eax, [ecx - 1]
mov dword [edi + 0x200], eax
lea eax, [eax + eax*2]
push dword [edi + eax*4 + 0x110]
call fcn.004a51e5
mov eax, dword [edi + 0x200]
add esp, 4
lea eax, [eax + eax*2]
mov dword [edi + eax*4 + 0x110], 0
jmp case.0x4c4f3f.196
push esi
push dword [ebp - 0xc]
mov ecx, edi
call fcn.004c3d20
mov dword [ebp - 8], 1
jmp case.0x4c4f3f.196
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x66697845
jne case.0x4c4f3f.224
push esi
push eax
mov ecx, edi
call fcn.004c4c00
mov ecx, dword [edi + 4]
mov byte [ecx + 0x4b4], al
jmp case.0x4c4f3f.196
push ebx
push dword [ebp - 0xc]
mov ecx, edi
call fcn.004c3cb0
cmp dword [edi + 0x200], 0x14
jge 0x4c50c3
mov ebx, dword [ebp + 8]
jmp 0x4c4e50
movups xmm0, xmmword [str.too_many_padding_unsigned_chars_]
pop esi
movups xmmword [edi + 8], xmm0
movups xmm0, xmmword [0x4fcd50]
movups xmmword [edi + 0x18], xmm0
mov al, byte [0x4fcd60]
mov byte [edi + 0x28], al
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.too_many_padding_unsigned_chars_n
call fcn.00407600
add esp, 4
xor al, al
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.No_image_in_jpeg__n
call fcn.00407600
add esp, 4
xor al, al
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movups xmm0, xmmword [str.Premature_end_of_file_]
pop esi
movups xmmword [edi + 8], xmm0
mov eax, dword [0x4fcda0]
mov dword [edi + 0x18], eax
mov ax, word [0x4fcda4]
mov word [edi + 0x1c], ax
mov al, byte [0x4fcda6]
mov byte [edi + 0x1e], al
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movups xmm0, xmmword [str.Could_not_allocate_memory]
pop esi
movups xmmword [edi + 8], xmm0
movq xmm0, qword [0x4fcd84]
movq qword [edi + 0x18], xmm0
mov ax, word [0x4fcd8c]
mov word [edi + 0x20], ax
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movq xmm0, qword [str.invalid_marker]
movq qword [edi + 8], xmm0
mov eax, dword [0x4fcd6c]
mov dword [edi + 0x10], eax
mov ax, word [0x4fcd70]
mov word [edi + 0x14], ax
mov al, byte [0x4fcd72]
pop esi
mov byte [edi + 0x16], al
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movups xmm0, xmmword [str.Too_many_sections_in_jpg_file]
pop esi
movups xmmword [edi + 8], xmm0
movq xmm0, qword [0x4fcd0c]
movq qword [edi + 0x18], xmm0
mov eax, dword [0x4fcd14]
mov dword [edi + 0x20], eax
mov ax, word [0x4fcd18]
mov word [edi + 0x24], ax
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4