Function at 0x4e7810
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x1c], 0x135
push ebx
push ebp
push esi
push edi
jne 0x4e7835
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
mov dword [esp + 0xc], 0x135
jmp 0x4ebf80
mov ebx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, ebx
mov edi, ecx
call fcn.004ef0f0
xor edx, edx
cmp eax, edx
jne 0x4e79c4
mov esi, dword [ebx + 4]
xor ebp, ebp
cmp esi, 0x3fffffff
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
ja 0x4e78cf
cmp esi, edx
je 0x4e78cf
lea eax, [edx + 1]
cmp esi, eax
jb 0x4e7878
add eax, eax
cmp eax, esi
jbe 0x4e7872
fldz
xor edi, edi
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4e7899
mov edx, 1
shl edx, cl
cmp edx, eax
je 0x4e78b7
lea ecx, [eax + eax]
push ecx
push 0
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
mov edi, eax
je 0x4e78cf
mov ebp, eax
test edi, edi
lea edx, [esi + esi]
mov dword [esp + 0x1c], edx
jne 0x4e78de
test ebp, ebp
je 0x4e78cf
push ebp
call fcn.0045da90
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
xor ebp, ebp
cmp dword [ebx + 4], ebp
jbe 0x4e797b
mov ebx, dword [esp + 0x18]
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x10]
cmp dword [edi + 0x14], 0
je 0x4e792e
mov eax, 2
call fcn.00410220
cmp eax, 2
je 0x4e7961
mov esi, 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e7922
push eax
call fcn.0045da90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [edi + 4]
test eax, eax
je 0x4e794b
push eax
push 1
push 2
push ebx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e794b
xor edi, edi
jmp 0x4e795b
cmp dword [edi + 4], 0
je 0x4e7958
mov edi, 2
jmp 0x4e795b
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4e7911
mov eax, ebx
call fcn.004dc400
mov ecx, dword [esp + 0x28]
add ebp, 1
add ebx, 2
cmp ebp, dword [ecx + 4]
jb 0x4e78f0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x14]
mov esi, dword [eax]
mov edi, dword [esp + 0x2c]
call fcn.004dabf0
test al, al
jne 0x4e79b1
test dword [esp + 0x1c], 0xfffffffe
je 0x4e79b1
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.004ee310
mov esi, eax
test esi, esi
jne 0x4e7911
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e79c2
push eax
call fcn.0045da90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, ebp
call fcn.004ef0f0
test eax, eax
jne 0x4ec0cf
mov eax, 0x14
call fcn.00457920
mov esi, eax
test esi, esi
je 0x4ec00b
mov edx, dword [edi]
mov dword [esp + 0x18], edx
call fcn.00495bc0
lea ebx, [esi + 8]
xor edi, edi
mov eax, ebx
mov dword [esi], vtable.BinaryMetadata.0
call fcn.00487150
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi], vtable.ytEXIFMetadata.0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, dword [ebp + 4]
push edi
lea eax, [eax + eax + 8]
mov ecx, ebx
call fcn.00487200
mov edi, eax
test edi, edi
jne 0x4ec0c4
mov ebx, dword [esi + 0xc]
test ebx, ebx
jne 0x4ec017
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [ebp]
mov dword [ebx], ecx
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], edx
mov eax, dword [ebp + 4]
mov edi, dword [ecx + 0x10]
add eax, eax
add ebx, 8
cmp dword [edi + 0x14], 0
mov dword [esp + 0x18], eax
je 0x4ec05d
call fcn.00410220
cmp eax, dword [esp + 0x18]
je 0x4ec08d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
mov edi, 2
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4ec079
push ecx
push 1
push eax
push ebx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4ec079
xor edi, edi
jmp 0x4ec089
cmp dword [edi + 4], 0
je 0x4ec086
mov edi, 2
jmp 0x4ec089
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4ec0c4
xor edx, edx
cmp dword [ebp + 4], edx
jbe 0x4ec0a6
mov eax, ebx
call fcn.004dc400
add edx, 1
add ebx, 2
cmp edx, dword [ebp + 4]
jb 0x4ec094
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004f07b0
mov edi, eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc