Function at 0x4829d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x16c]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x170], edi
call fcn.00457d90
movzx eax, word [edi + 0xfa]
xor edx, edx
cwde
add esp, 4
dec eax
mov dword [ebp - 0x16c], edx
cmp eax, 5
ja case.default.0x482a21
jmp dword [eax*4 + 0x482d00]
mov ebx, str.RGBA
mov esi, 4
jmp 0x482abc
mov edx, 8
mov ebx, 0x5d90a4
mov dword [ebp - 0x16c], edx
jmp 0x482ab7
mov edx, 8
mov ebx, str.ABGR
mov dword [ebp - 0x16c], edx
lea esi, [edx - 4]
jmp 0x482abc
mov edx, 0x10
mov ebx, str.ARGB
mov dword [ebp - 0x16c], edx
lea esi, [edx - 0xc]
jmp 0x482abc
mov edx, 0x4000
mov eax, 2
mov dword [ebp - 0x16c], edx
mov ebx, 0x5d4c24
mov word [ebp - 0x12a], ax
jmp 0x482ab7
mov eax, 3
mov edx, 0x4000
mov dword [ebp - 0x16c], edx
mov ebx, str.CMYK
mov word [ebp - 0x12a], ax
lea esi, [eax + 1]
jmp 0x482abc
mov ebx, 0x5d4c60
mov esi, 3
mov ecx, dword [edi + 0xf0]
mov eax, 6
cmp ecx, 0x30
cmove esi, eax
mov eax, dword [edi + 0xe8]
mov dword [ebp - 0x15c], eax
mov eax, dword [edi + 0xec]
mov dword [ebp - 0x158], eax
cmp ecx, 0x10
jne 0x482b39
mov eax, dword [edi + 0xe8]
imul eax, esi
cmp word [edi + 0xfa], 7
mov dword [ebp - 0x86], 0x776152
mov dword [ebp - 0x154], 0x100001
mov dword [ebp - 0x14c], eax
jne 0x482b28
or edx, 0x80
mov dword [ebp - 0x16c], edx
jmp 0x482bc8
or edx, 0x100
mov dword [ebp - 0x16c], edx
jmp 0x482bc8
movzx eax, word [edi + 0xf8]
push ebx
test ax, ax
jne 0x482b7f
lea eax, [ebp - 0x86]
push str.Raw__s__Interleaved_
push eax
call fcn.005933b1
lea eax, [esi*8]
add esp, 0xc
mov word [ebp - 0x152], ax
mov eax, 1
mov word [ebp - 0x154], ax
mov eax, dword [ebp - 0x15c]
imul eax, esi
jmp 0x482bc2
cmp ax, 1
lea eax, [ebp - 0x86]
jne 0x482b92
push str.Raw__s__Row_separate_
jmp 0x482ba0
or edx, 4
mov dword [ebp - 0x16c], edx
push str.Raw__s__Plane_separate_
push eax
call fcn.005933b1
mov eax, 8
mov word [ebp - 0x154], si
mov word [ebp - 0x152], ax
add esp, 0xc
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.00456000
movzx esi, ax
add esp, 8
test si, si
jne 0x482c7e
xor ebx, ebx
cmp word [edi + 0xf8], 2
jne 0x482c92
xor eax, eax
cmp ax, word [ebp - 0x154]
jge 0x482c6f
nop
test si, si
jne 0x482c69
xor edi, edi
cmp dword [ebp - 0x158], edi
jle 0x482c5d
nop
mov eax, dword [ebp - 0x174]
push dword [eax]
push 1
push dword [ebp - 0x14c]
push dword [ebp - 0x160]
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x482c58
push 1
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x170]
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x482c5d
inc edi
cmp edi, dword [ebp - 0x158]
jl 0x482c10
jmp 0x482c5d
mov esi, 4
movsx eax, word [ebp - 0x154]
inc ebx
cmp ebx, eax
jl 0x482c00
mov edi, dword [ebp - 0x170]
push 0
push 0
push 0
push edi
call fcn.00453f80
add esp, 0x10
mov ecx, dword [ebp - 4]
mov ax, si
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x158], ebx
jle 0x482c6f
lea ebx, [ebx]
mov eax, dword [ebp - 0x174]
push dword [eax]
movsx eax, word [ebp - 0x154]
push eax
push dword [ebp - 0x14c]
push dword [ebp - 0x160]
call fcn.00595b79
movsx ecx, word [ebp - 0x154]
add esp, 0x10
cmp eax, ecx
jne 0x482cf4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x482c6f
inc ebx
cmp ebx, dword [ebp - 0x158]
jl 0x482ca0
jmp 0x482c6f
mov esi, 4
jmp 0x482c6f