Function at 0x482400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x17c], esi
mov eax, dword [edi + 0xe8]
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x170], eax
test eax, eax
jle 0x48278f
mov eax, dword [edi + 0xec]
test eax, eax
jle 0x48278f
cdq
idiv ecx
mov ecx, eax
mov eax, dword [edi + 0xe8]
cdq
idiv esi
mov edx, dword [edi + 0xf4]
imul ecx, eax
mov eax, dword [edi + 0xec]
imul eax, dword [ebp - 0x170]
add eax, edx
lea eax, [eax + ecx*2]
cmp dword [ebx + 4], eax
jl 0x48278f
test edx, edx
jle 0x48249c
push edx
push ebx
call fcn.0045d3f0
add esp, 8
lea eax, [ebp - 0x16c]
push eax
call fcn.00457d90
add esp, 4
cmp esi, 1
jne 0x4824c0
movq xmm0, qword [str.YUV_4:4:4]
mov ax, word [0x5d3ef4]
jmp 0x4824d3
cmp esi, 2
jne 0x4824df
movq xmm0, qword [str.YUV_4:1:1]
mov ax, word [0x5d3ea8]
mov word [ebp - 0x7e], ax
movq qword [ebp - 0x86], xmm0
mov ecx, dword [edi + 0xe8]
mov eax, 4
mov word [ebp - 0x12a], ax
mov dword [ebp - 0x154], 0x180001
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x15c], ecx
test cl, 1
je 0x482519
inc ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x15c], ecx
mov eax, dword [edi + 0xec]
lea ecx, [ecx + ecx*2]
mov dword [ebp - 0x158], eax
cdq
idiv dword [ebp - 0x178]
mov dword [ebp - 0x14c], ecx
mov ecx, eax
mov eax, dword [ebp - 0x170]
cdq
idiv esi
push ecx
push eax
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x170], eax
call fcn.00592c0b
mov esi, eax
add esp, 8
mov dword [ebp - 0x174], esi
test esi, esi
je 0x482589
push dword [ebp - 0x180]
push dword [ebp - 0x170]
call fcn.00592c0b
add esp, 8
mov dword [ebp - 0x170], eax
test eax, eax
jne 0x48259f
push esi
call fcn.00592c4b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.00456000
movzx esi, ax
add esp, 8
test si, si
jne 0x482762
mov eax, dword [ebp - 0x158]
imul eax, dword [ebp - 0x15c]
add eax, dword [edi + 0xf4]
push eax
push ebx
call fcn.0045d3f0
mov eax, dword [ebp - 0x158]
cdq
idiv dword [ebp - 0x178]
push dword [ebx]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x158]
cdq
idiv dword [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x15c]
cdq
idiv dword [ebp - 0x17c]
push eax
push dword [ebp - 0x174]
call fcn.00595b79
mov ecx, dword [ebp - 0x180]
add esp, 0x18
cmp eax, ecx
je 0x482659
push dword [ebp - 0x174]
call fcn.00592c4b
push dword [ebp - 0x170]
call fcn.00592c4b
push 0
push 0
push 0
push edi
call fcn.00453f80
add esp, 0x18
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x15c]
cdq
idiv dword [ebp - 0x17c]
push dword [ebx]
push ecx
push eax
push dword [ebp - 0x170]
call fcn.00595b79
mov ecx, eax
add esp, 0x10
mov eax, dword [ebp - 0x158]
cdq
idiv dword [ebp - 0x178]
cmp ecx, eax
jne 0x48261e
push 0
push dword [edi + 0xf4]
push dword [ebx]
call fcn.00595cb4
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x158], ebx
jle 0x482753
jmp 0x4826b0
mov edi, dword [ebp - 0x160]
xor esi, esi
cmp dword [ebp - 0x15c], esi
jle 0x48271c
mov eax, dword [ebp - 0x188]
push dword [eax]
call fcn.00597fff
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
je 0x482748
mov eax, ebx
cdq
idiv dword [ebp - 0x178]
imul eax, dword [ebp - 0x15c]
add eax, esi
cdq
idiv dword [ebp - 0x17c]
mov edx, dword [ebp - 0x170]
movzx edx, byte [eax + edx]
push edx
mov edx, dword [ebp - 0x174]
movzx eax, byte [eax + edx]
push eax
push ecx
push edi
call fcn.0051d5c0
inc esi
add esp, 0x10
add edi, 3
cmp esi, dword [ebp - 0x15c]
jl 0x4826c0
mov edi, dword [ebp - 0x184]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x482753
inc ebx
cmp ebx, dword [ebp - 0x158]
jl 0x4826b0
jmp 0x482753
mov edi, dword [ebp - 0x184]
mov esi, 4
push 0
push 0
push 0
push edi
call fcn.00453f80
add esp, 0x10
push dword [ebp - 0x174]
call fcn.00592c4b
push dword [ebp - 0x170]
call fcn.00592c4b
add esp, 8
mov ax, si
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret