Function at 0x4ea040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x1c], 0x135
push ebx
push ebp
push esi
push edi
jne 0x4ea065
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
mov dword [esp + 0xc], 0x135
jmp 0x4ec0e0
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 0x4ea1f4
mov esi, dword [ebx + 4]
xor ebp, ebp
cmp esi, 0x3fffffff
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
ja 0x4ea0ff
cmp esi, edx
je 0x4ea0ff
lea eax, [edx + 1]
cmp esi, eax
jb 0x4ea0a8
add eax, eax
cmp eax, esi
jbe 0x4ea0a2
fldz
xor edi, edi
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4ea0c9
mov edx, 1
shl edx, cl
cmp edx, eax
je 0x4ea0e7
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 0x4ea0ff
mov ebp, eax
test edi, edi
lea edx, [esi + esi]
mov dword [esp + 0x1c], edx
jne 0x4ea10e
test ebp, ebp
je 0x4ea0ff
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 0x4ea1ab
mov ebx, dword [esp + 0x18]
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x10]
cmp dword [edi + 0x14], 0
je 0x4ea15e
mov eax, 2
call fcn.00410220
cmp eax, 2
je 0x4ea191
mov esi, 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ea152
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 0x4ea17b
push eax
push 1
push 2
push ebx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4ea17b
xor edi, edi
jmp 0x4ea18b
cmp dword [edi + 4], 0
je 0x4ea188
mov edi, 2
jmp 0x4ea18b
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4ea141
mov ecx, ebx
call fcn.004dc4a0
mov ecx, dword [esp + 0x28]
add ebp, 1
add ebx, 2
cmp ebp, dword [ecx + 4]
jb 0x4ea120
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 0x4ea1e1
test dword [esp + 0x1c], 0xfffffffe
je 0x4ea1e1
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.004ee810
mov esi, eax
test esi, esi
jne 0x4ea141
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ea1f2
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 0x4ec22f
mov eax, 0x14
call fcn.00457920
mov esi, eax
test esi, esi
je 0x4ec16b
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 0x4ec224
mov ebx, dword [esi + 0xc]
test ebx, ebx
jne 0x4ec177
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 0x4ec1bd
call fcn.00410220
cmp eax, dword [esp + 0x18]
je 0x4ec1ed
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 0x4ec1d9
push ecx
push 1
push eax
push ebx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4ec1d9
xor edi, edi
jmp 0x4ec1e9
cmp dword [edi + 4], 0
je 0x4ec1e6
mov edi, 2
jmp 0x4ec1e9
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4ec224
xor edi, edi
cmp dword [ebp + 4], edi
jbe 0x4ec206
mov ecx, ebx
call fcn.004dc4a0
add edi, 1
add ebx, 2
cmp edi, dword [ebp + 4]
jb 0x4ec1f4
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