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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c98f8
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.004749b0
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.004749e0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
add esp, 0x14
cmp dword [eax + 4], 0
jne 0x4e0fd6
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 0x4e0edb
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004173e6
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4e0f1f
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e0f15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e14a6
push edx
push ecx
call fcn.0053a186
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 0x4e0f5b
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e119a
push 0
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4e0f73
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e119a
lea eax, [edi + 1]
mov dword [ebp - 0x2ac], 0
push eax
call fcn.00573fa0
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 0x4e113b
push esi
call fcn.0053a170
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e1194
lea eax, [ebp - 0x2c0]
push eax
call fcn.004749e0
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 0x4e1002
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004173e6
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4e104a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e1040
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e14ab
push edx
push ecx
call fcn.0053a186
add esp, 8
call fcn.00474e20
test al, al
je 0x4e105a
call fcn.00474a10
jmp 0x4e1070
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00498f10
add esp, 8
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x4e1087
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e119a
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x2b8]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.00498630
add esp, 0x14
test eax, eax
je 0x4e10b4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e119a
mov edi, dword [ebp - 0x78]
test edi, edi
jne 0x4e10c8
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e119a
lea eax, [edi + 1]
push eax
call fcn.00573fa0
mov esi, eax
push edi
push esi
push dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], esi
push dword [ebp - 0x2a8]
call fcn.00499500
add esp, 0x14
test eax, eax
je 0x4e1124
cmp eax, 0x600
je 0x4e1124
push esi
call fcn.0053a170
add esp, 4
call fcn.00474e20
test al, al
jne 0x4e111a
push dword [ebp - 0x2a8]
call fcn.00498190
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
jmp 0x4e1194
call fcn.00474e20
test al, al
jne 0x4e113b
push dword [ebp - 0x2a8]
call fcn.00498190
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 0x4e118c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e1182
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e14b0
push edx
push ecx
call fcn.0053a186
add esp, 8
test esi, esi
jne 0x4e122f
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 0x4e1228
push 0
push eax
call esi
mov edi, eax
test edi, edi
je 0x4e1228
lea eax, [edi + 1]
mov dword [ebp - 0x2a8], 0
push eax
call fcn.00573fa0
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 0x4e1224
push esi
call fcn.0053a170
add esp, 4
xor eax, eax
jmp 0x4e1489
test esi, esi
jne 0x4e122f
xor eax, eax
jmp 0x4e1489
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.005749b0
add esp, 0x10
test eax, eax
je 0x4e143f
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.00575520
push 0x107
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 3
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.005752f0
add esp, 0x14
mov dword [ebp - 0x2a8], eax
test eax, eax
jne 0x4e12ed
push str.Error_parsing_image_n
push 2
call fcn.005960df
add esp, 4
push eax
call fcn.00432c80
add esp, 8
push dword [ebp - 0x2a8]
call fcn.00574e20
add esp, 4
jmp 0x4e1479
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00574e60
add esp, 8
test eax, eax
jne 0x4e1305
push str.Error_getting_global_info_about_the_animation_n
jmp 0x4e12c7
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.004e06b0
test eax, eax
jne 0x4e1337
xor edi, edi
jmp 0x4e1479
mov ecx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x2a8]
mov dword [ecx + 0x28c], eax
call fcn.005752d0
add esp, 4
test eax, eax
je 0x4e142f
mov dword [ebp - 0x2b4], edi
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2a8]
call fcn.00574ea0
add esp, 0xc
test eax, eax
je 0x4e1410
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.0058cfa0
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.005752d0
add esp, 0x10
test eax, eax
jne 0x4e1362
test edi, edi
je 0x4e142f
push dword [ebp - 0x2a8]
mov dword [esi], 1
call fcn.00574e20
add esp, 4
jmp 0x4e1479
mov eax, dword [ebp - 0x2b0]
push eax
push str.Error_decoding_frame__u_n
push 2
call fcn.005960df
add esp, 4
push eax
call fcn.00432c80
add esp, 0xc
push dword [ebp - 0x2a8]
call fcn.00574e20
add esp, 4
jmp 0x4e1479
push str.Unknown_file_type._Supported_file_types_are_WebP_and_GIF_n
push 2
call fcn.005960df
add esp, 4
push eax
call fcn.00432c80
add esp, 8
xor edi, edi
test esi, esi
je 0x4e1479
push dword [esi + 0x1c]
call fcn.0053a170
push dword [esi + 0x14]
call fcn.0053a170
add esp, 8
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
push dword [ebp - 0x2c8]
call fcn.0053a170
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.0053a175
mov esp, ebp
pop ebp
ret 8
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
int3