Function at 0x4e0b30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c95c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b4], ecx
lea eax, [ebp - 0x2d0]
push eax
call fcn.004748a0
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040619f
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], 0
push eax
call fcn.004748d0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
add esp, 0x14
cmp dword [eax + 4], 0
jne 0x4e0cc6
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push dword [ebp + 8]
push eax
call fcn.0040619f
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 1
jb 0x4e0bcb
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004172c6
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4e0c0f
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e0c05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e1196
push edx
push ecx
call fcn.00539e76
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2a8], eax
cmp eax, 0xffffffff
jne 0x4e0c4b
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e8a
push 0
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4e0c63
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e8a
lea eax, [edi + 1]
mov dword [ebp - 0x2ac], 0
push eax
call fcn.00573cb0
add esp, 4
mov dword [ebp - 0x2b0], eax
mov esi, eax
lea eax, [ebp - 0x2ac]
push 0
push eax
push edi
push esi
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2ac], edi
je 0x4e0e2b
push esi
call fcn.00539e60
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e84
lea eax, [ebp - 0x2c0]
push eax
call fcn.004748d0
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x44]
push eax
call fcn.0040619f
add esp, 0x10
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
jb 0x4e0cf2
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004172c6
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4e0d3a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e0d30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e119b
push edx
push ecx
call fcn.00539e76
add esp, 8
call fcn.00474d10
test al, al
je 0x4e0d4a
call fcn.00474900
jmp 0x4e0d60
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00499200
add esp, 8
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x4e0d77
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e8a
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x2b8]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.00498920
add esp, 0x14
test eax, eax
je 0x4e0da4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e8a
mov edi, dword [ebp - 0x78]
test edi, edi
jne 0x4e0db8
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e8a
lea eax, [edi + 1]
push eax
call fcn.00573cb0
mov esi, eax
push edi
push esi
push dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], esi
push dword [ebp - 0x2a8]
call fcn.004997f0
add esp, 0x14
test eax, eax
je 0x4e0e14
cmp eax, 0x600
je 0x4e0e14
push esi
call fcn.00539e60
add esp, 4
call fcn.00474d10
test al, al
jne 0x4e0e0a
push dword [ebp - 0x2a8]
call fcn.00498480
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e0e84
call fcn.00474d10
test al, al
jne 0x4e0e2b
push dword [ebp - 0x2a8]
call fcn.00498480
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e0e7c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e0e72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e11a0
push edx
push ecx
call fcn.00539e76
add esp, 8
test esi, esi
jne 0x4e0f1f
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2ac], eax
cmp eax, 0xffffffff
je 0x4e0f18
push 0
push eax
call esi
mov edi, eax
test edi, edi
je 0x4e0f18
lea eax, [edi + 1]
mov dword [ebp - 0x2a8], 0
push eax
call fcn.00573cb0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2b0], esi
push 0
push eax
push edi
push esi
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2a8], edi
je 0x4e0f14
push esi
call fcn.00539e60
add esp, 4
xor eax, eax
jmp 0x4e1179
test esi, esi
jne 0x4e0f1f
xor eax, eax
jmp 0x4e1179
mov eax, dword [ebp - 0x2b0]
xorps xmm0, xmm0
mov byte [edi + esi], 0
mov esi, dword [ebp - 0x2b4]
push 0
add esi, 0x294
mov dword [ebp - 0x2c8], eax
push 0
push edi
push eax
movups xmmword [esi], xmm0
mov dword [ebp - 0x2c4], edi
movups xmmword [esi + 0x10], xmm0
call fcn.005746c0
add esp, 0x10
test eax, eax
je 0x4e112f
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x2b0], eax
xor edi, edi
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x74]
push 0x107
movups xmmword [esi], xmm0
push eax
movups xmmword [esi + 0x10], xmm0
call fcn.00575230
push 0x107
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 3
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00575000
add esp, 0x14
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x4e0fdd
push str.Error_parsing_image_n
push 2
call fcn.00595e1f
add esp, 4
push eax
call fcn.00432b50
add esp, 8
push dword [ebp - 0x2a8]
call fcn.00574b30
add esp, 4
jmp 0x4e1169
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00574b70
add esp, 8
test eax, eax
jne 0x4e0ff5
push str.Error_getting_global_info_about_the_animation_n
jmp 0x4e0fb7
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2b4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x44]
push esi
mov dword [esi + 0xc], eax
call fcn.004e03a0
test eax, eax
jne 0x4e1027
xor edi, edi
jmp 0x4e1169
mov ecx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x2a8]
mov dword [ecx + 0x28c], eax
call fcn.00574fe0
add esp, 4
test eax, eax
je 0x4e111f
mov dword [ebp - 0x2b4], edi
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2a8]
call fcn.00574bb0
add esp, 0xc
test eax, eax
je 0x4e1100
mov ecx, dword [esi + 0x14]
add ecx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2ac]
sub eax, dword [ebp - 0x2b8]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov eax, dword [esi + 8]
imul eax, dword [esi + 4]
shl eax, 2
push eax
push dword [ebp - 0x2bc]
push dword [ecx]
call fcn.0058cce0
mov eax, dword [ebp - 0x2ac]
inc dword [ebp - 0x2b0]
add dword [ebp - 0x2b4], 0xc
test edi, edi
push dword [ebp - 0x2a8]
mov dword [ebp - 0x2b8], eax
mov eax, 1
cmove edi, eax
call fcn.00574fe0
add esp, 0x10
test eax, eax
jne 0x4e1052
test edi, edi
je 0x4e111f
push dword [ebp - 0x2a8]
mov dword [esi], 1
call fcn.00574b30
add esp, 4
jmp 0x4e1169
mov eax, dword [ebp - 0x2b0]
push eax
push str.Error_decoding_frame__u_n
push 2
call fcn.00595e1f
add esp, 4
push eax
call fcn.00432b50
add esp, 0xc
push dword [ebp - 0x2a8]
call fcn.00574b30
add esp, 4
jmp 0x4e1169
push str.Unknown_file_type._Supported_file_types_are_WebP_and_GIF_n
push 2
call fcn.00595e1f
add esp, 4
push eax
call fcn.00432b50
add esp, 8
xor edi, edi
test esi, esi
je 0x4e1169
push dword [esi + 0x1c]
call fcn.00539e60
push dword [esi + 0x14]
call fcn.00539e60
add esp, 8
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
push dword [ebp - 0x2c8]
call fcn.00539e60
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret 8
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
int3