Function at 0x100226d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [esp + 0x11c]
mov esi, dword [esp + 0x110]
mov ebp, dword [esp + 0x114]
mov edi, dword [esp + 0x118]
mov dword [esp + 4], 0
mov dword [esp + 0x34], 0x100dd5e0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x120]
mov dword [esp], esi
mov dword [esp + 0x3c], eax
call sym.avutil_56.dll_avpriv_open
test eax, eax
mov dword [ebp], 0
mov dword [edi], 0
js 0x10022815
mov ebx, eax
lea eax, [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__fstati64]
test eax, eax
js 0x10022870
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
test edx, edx
jg 0x100228c3
test eax, eax
mov dword [edi], eax
jne 0x10022780
mov dword [ebp], 0
mov dword [esp], ebx
call sub.msvcrt.dll__close
xor eax, eax
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
sub esp, 0x18
test eax, eax
mov esi, eax
je 0x100228f5
mov eax, dword [edi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [esp + 0x2c], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x10022929
mov dword [ebp], edx
jmp 0x1002276a
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea edi, [esp + 0x70]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], edi
neg eax
mov dword [esp], eax
mov ebx, eax
call sym.avutil_56.dll_av_strerror
lea eax, [esp + 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Cannot_read_file__s:__s_n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym.avutil_56.dll_av_log
add esp, 0xfc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea edi, [esp + 0x70]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], edi
neg eax
mov dword [esp], eax
mov esi, eax
call sym.avutil_56.dll_av_strerror
lea eax, [esp + 0x34]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.Error_occurred_in_fstat__:__s_n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym.avutil_56.dll_av_log
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov eax, esi
jmp 0x10022774
lea eax, [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.File_size_for_file__s_is_too_big_n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym.avutil_56.dll_av_log
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov eax, 0xffffffea
jmp 0x10022774
mov dword [esp + 8], str.Error_occurred_in_CreateFileMapping___n
lea eax, [esp + 0x34]
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sym.avutil_56.dll_av_log
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov dword [edi], 0
mov eax, 0xffffffff
jmp 0x10022774
mov dword [esp + 8], str.Error_occurred_in_MapViewOfFile___n
jmp 0x100228fd