Function at 0x49ea70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6e88
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ebx, [eax + 4]
push str.____________________Entrance____________________
lea ecx, [esp + 0x10]
mov eax, ebx
push ecx
xor edi, edi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], str.ValidateVideoFile
call fcn.00471a00
add esp, 0xc
push 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x4c], edi
mov eax, dword [esi]
push edx
push edi
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49eafe
call fcn.00405b90
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x49eb2d
call fcn.00405b90
cmp eax, edi
jl 0x49eb39
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49eb5b
call fcn.00405b90
cmp dword [esp + 0x20], edi
ja 0x49eb6b
cmp dword [esp + 0x1c], edi
jbe 0x49ecc4
mov edx, dword [esi]
push edi
lea eax, [esp + 0x18]
push eax
push 0xd
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x49eb8e
call fcn.00405b90
cmp eax, edi
jl 0x49eba8
cmp dword [esp + 0x14], 0xd
je 0x49ebd1
push str.Couldnt_read_FLV_file_header_
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.004719c0
add esp, 0xc
push str.______________________Exit______________________
lea eax, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov eax, 1
jmp 0x49ece5
cmp byte [esp + 0x28], 0x46
jne 0x49ec8b
cmp byte [esp + 0x29], 0x4c
jne 0x49ec8b
cmp byte [esp + 0x2a], 0x56
jne 0x49ec8b
cmp byte [esp + 0x2b], 1
jne 0x49ec8b
test byte [esp + 0x2c], 5
jne 0x49ec32
push str.FLV_file_contains_neither_video_nor_audio__aborting_
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.004719c0
add esp, 0xc
lea eax, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.0042e9b0
mov eax, 1
jmp 0x49ece5
lea ecx, [esp + 0x2d]
call fcn.0047d7a0
cdq
push edx
push eax
push esi
xor edx, edx
call fcn.004620d0
push esi
lea eax, [esp + 0x18]
mov ecx, 4
lea edx, [esp + 0x2c]
call fcn.0046b0b0
cmp dword [esp + 0x14], 4
je 0x49ecc4
push str.Invalid_FLV_file:_missing_first_prevTagSize_
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004719c0
add esp, 0xc
lea eax, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.0042e9b0
mov eax, 1
jmp 0x49ece5
push str.Invalid_FLV_file_
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.004719c0
add esp, 0xc
push str.______________________Exit______________________
lea edx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov eax, 1
jmp 0x49ece5
push str.______________________Exit______________________
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret 4