Function at 0x47e240
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.00530e14
add esp, 4
cmp eax, 0xff
jne 0x47e542
push ebx
call fcn.00530e14
add esp, 4
cmp eax, 0xd8
jne 0x47e542
cmp dword [edi + 0x200], 0x14
push esi
jge 0x47e50b
lea ebx, [ebx]
xor esi, esi
push ebx
call fcn.00530e14
mov ebx, eax
add esp, 4
cmp ebx, 0xff
jne 0x47e2bd
cmp esi, 6
jge 0x47e43d
inc esi
cmp esi, 7
jge 0x47e410
mov ebx, dword [ebp + 8]
jmp 0x47e292
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.00530e14
push esi
mov dword [ebp - 4], eax
call fcn.00530e14
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 0x47e4d9
mov ecx, dword [edi + 0x200]
push eax
lea ecx, [ecx + ecx*2]
mov dword [edi + ecx*4 + 0x118], eax
call fcn.0052f54b
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47e4aa
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.0052fde7
lea ecx, [esi - 2]
add esp, 0x10
cmp eax, ecx
jne 0x47e478
inc dword [edi + 0x200]
lea eax, [ebx - 0xc0]
mov ecx, dword [edi + 0x200]
cmp eax, 0x3e
ja case.0x47e37f.196
movzx eax, byte [eax + 0x47e568]
jmp dword [eax*4 + 0x47e54c]
cmp dword [ebp - 8], 0
je 0x47e3bd
lea eax, [ecx - 1]
mov dword [edi + 0x200], eax
lea eax, [eax + eax*2]
push dword [edi + eax*4 + 0x110]
call fcn.0052ee15
mov eax, dword [edi + 0x200]
add esp, 4
lea eax, [eax + eax*2]
mov dword [edi + eax*4 + 0x110], 0
jmp case.0x47e37f.196
push esi
push dword [ebp - 0xc]
mov ecx, edi
call fcn.0047f1c0
mov dword [ebp - 8], 1
jmp case.0x47e37f.196
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x66697845
jne case.0x47e37f.224
push esi
push eax
mov ecx, edi
call fcn.0047f280
mov ecx, dword [edi + 4]
mov byte [ecx + 0x4b4], al
jmp case.0x47e37f.196
push ebx
push dword [ebp - 0xc]
mov ecx, edi
call fcn.0047f470
cmp dword [edi + 0x200], 0x14
jge 0x47e50b
mov ebx, dword [ebp + 8]
jmp 0x47e290
movdqu xmm0, xmmword [str.too_many_padding_unsigned_chars_]
pop esi
movdqu xmmword [edi + 8], xmm0
movdqu xmm0, xmmword [0x6447a4]
movdqu xmmword [edi + 0x18], xmm0
mov al, byte [0x6447b4]
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.00530f22
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.00530f22
add esp, 4
xor al, al
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movdqu xmm0, xmmword [str.Premature_end_of_file_]
pop esi
movdqu xmmword [edi + 8], xmm0
mov eax, dword [0x6447f4]
mov dword [edi + 0x18], eax
mov ax, word [0x6447f8]
mov word [edi + 0x1c], ax
mov al, byte [0x6447fa]
mov byte [edi + 0x1e], al
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movdqu xmm0, xmmword [str.Could_not_allocate_memory]
pop esi
movdqu xmmword [edi + 8], xmm0
movq xmm0, qword [0x6447d8]
movq qword [edi + 0x18], xmm0
mov ax, word [0x6447e0]
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 [0x6447c0]
mov dword [edi + 0x10], eax
mov ax, word [0x6447c4]
mov word [edi + 0x14], ax
mov al, byte [0x6447c6]
pop esi
mov byte [edi + 0x16], al
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
movdqu xmm0, xmmword [str.Too_many_sections_in_jpg_file]
pop esi
movdqu xmmword [edi + 8], xmm0
movq xmm0, qword [0x644760]
movq qword [edi + 0x18], xmm0
mov eax, dword [0x644768]
mov dword [edi + 0x20], eax
mov ax, word [0x64476c]
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