Function at 0x1003b790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push edi
push eax
push 0x1003c2a0
mov esi, dword [esi + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea edi, [esi + 0x10]
push edi
push dword [esi + 0xc]
call sub.avutil_56.dll_av_tree_find
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1003b7d6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1003b8d0
mov edx, dword [edi]
sub edx, dword [ebx]
mov ecx, dword [edi + 4]
mov dword [ebp - 4], edx
mov edx, ecx
sbb edx, dword [ebx + 4]
mov dword [ebp - 8], edx
cmp dword [ebx + 4], ecx
jl 0x1003b81b
jg 0x1003b7f5
mov eax, dword [ebx]
cmp eax, dword [edi]
jbe 0x1003b81b
push 0xaf
push str.G:_vcpkg_vcpkg_master_buildtrees_ffmpeg_src_n4.4_5002d86a54.clean_libavformat_cache.c
push str.entry__logical_pos___c__logical_pos
push str.Assertion__s_failed_at__s:_d_n
push 0
push 0
call sub.avutil_56.dll_av_log
add esp, 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov eax, dword [ebx + 0x10]
cdq
mov ecx, eax
cmp dword [ebp - 8], edx
jg 0x1003b8d0
mov eax, dword [ebp - 4]
jl 0x1003b837
cmp eax, ecx
jae 0x1003b8d0
add eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
adc ecx, dword [ebp - 8]
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp - 0xc]
jne 0x1003b852
cmp edx, ecx
je 0x1003b864
push 0
push ecx
push dword [ebp - 0xc]
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
add esp, 0x10
test edx, edx
jl 0x1003b8d0
jg 0x1003b86e
test eax, eax
jb 0x1003b8ac
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [ebx + 0x10]
cdq
mov ecx, eax
mov ebx, edx
sub ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sbb ebx, dword [ebp - 8]
cdq
cmp edx, ebx
jl 0x1003b895
jg 0x1003b890
cmp eax, ecx
jbe 0x1003b895
mov dword [ebp - 0x34], ebx
jmp 0x1003b89a
mov ecx, eax
mov dword [ebp - 0x34], edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cdq
test edx, edx
jl 0x1003b8d0
jg 0x1003b8b6
test eax, eax
je 0x1003b8d0
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
add dword [edi], eax
adc dword [edi + 4], edx
add dword [esi + 0x38], 1
pop edi
adc dword [esi + 0x3c], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov eax, dword [edi + 4]
cmp ecx, dword [esi + 0x20]
jne 0x1003b8df
cmp eax, dword [esi + 0x24]
je 0x1003b91b
push 0
push eax
push ecx
push dword [esi + 0x34]
call fcn.1000197e
add esp, 0x10
mov ebx, eax
test edx, edx
jg 0x1003b915
jl 0x1003b8fa
test ebx, ebx
jae 0x1003b915
push str.Failed_to_perform_internal_seek_n
push 0x10
push dword [ebp + 8]
call sub.avutil_56.dll_av_log
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edx
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x34]
call fcn.10001cad
cdq
add esp, 0xc
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
cmp ecx, 0xdfb9b0bb
jne 0x1003b975
cmp eax, 0xffffffff
jne 0x1003b975
test ebx, ebx
jle 0x1003b97f
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], 1
cmp eax, dword [edi + 4]
jg 0x1003b97f
jl 0x1003b961
mov eax, dword [esi + 0x28]
cmp eax, dword [edi]
jae 0x1003b97f
push 0xd4
push str.G:_vcpkg_vcpkg_master_buildtrees_ffmpeg_src_n4.4_5002d86a54.clean_libavformat_cache.c
push str.c__end___c__logical_pos
jmp 0x1003b804
test eax, eax
jg 0x1003b988
jl 0x1003b97f
test ecx, ecx
jne 0x1003b988
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x20], ecx
push 2
adc dword [esi + 0x24], eax
add dword [esi + 0x40], 1
mov eax, dword [ebp + 8]
adc dword [esi + 0x44], 0
xor ebx, ebx
push ebx
mov dword [ebp - 0x38], ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ebx
push ebx
push dword [eax + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
add esp, 0x10
mov dword [ebp - 0x10], edx
mov ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
jg 0x1003b9dc
jl 0x1003b9cc
test ecx, ecx
jae 0x1003b9dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push str.seek_in_cache_failed_n
jmp 0x1003bae6
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push dword [eax + 4]
mov dword [eax + 0x1c], edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x1003ba0f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push str.write_in_cache_failed_n
jmp 0x1003bae6
mov ecx, dword [ebp - 0xc]
cdq
add dword [ecx + 0x18], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 0xc], eax
adc dword [ecx + 0x1c], edx
lea edx, [ebp - 0x38]
push edx
add ecx, 0xc
push 0x1003c2a0
push eax
mov dword [ebp - 0x24], ecx
push dword [ecx]
call sub.avutil_56.dll_av_tree_find
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1003ba46
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x1003ba89
mov eax, dword [ebx + 0x10]
cdq
mov dword [ebp - 0x1c], eax
mov eax, edx
mov edx, dword [ebp - 0x1c]
mov ecx, edx
add ecx, dword [ebx]
mov dword [ebp - 0x20], eax
adc eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp ecx, dword [eax]
jne 0x1003ba89
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 4]
jne 0x1003ba89
add edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
adc eax, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
jne 0x1003ba89
cmp eax, dword [ebp - 0x10]
jne 0x1003ba89
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x10], eax
jmp 0x1003bb04
push 0x18
call sub.avutil_56.dll_av_malloc
add esp, 4
mov ebx, eax
call sub.avutil_56.dll_av_tree_node_alloc
mov dword [ebp - 8], eax
test ebx, ebx
je 0x1003baf3
test eax, eax
je 0x1003baf3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x1003c2a0
push ebx
push dword [ebp - 0x24]
mov dword [ebx + 4], ecx
call sub.avutil_56.dll_av_tree_insert
add esp, 0x10
test eax, eax
je 0x1003bb04
cmp eax, ebx
je 0x1003bb04
push str.av_tree_insert_failed_n
push 0x10
push dword [ebp + 8]
call sub.avutil_56.dll_av_log
add esp, 0xc
push ebx
call sub.avutil_56.dll_av_free
push dword [ebp - 8]
call sub.avutil_56.dll_av_free
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, eax
add ecx, dword [edi]
mov ebx, dword [edi + 4]
adc ebx, dword [ebp - 0x28]
mov edx, dword [esi + 0x28]
mov dword [edi], ecx
mov dword [edi + 4], ebx
mov edi, dword [esi + 0x2c]
cmp edi, ebx
jl 0x1003bb26
jg 0x1003bb2a
cmp edx, ecx
ja 0x1003bb2a
mov edx, ecx
mov edi, ebx
mov dword [esi + 0x2c], edi
pop edi
mov dword [esi + 0x28], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret