Function at 0x1005ed70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x84]
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov eax, dword [esi + 0xb0]
lea ebp, [esi + 0x10]
mov dword [esp + 0x18], ebp
test al, 4
jne 0x1005edb1
mov ecx, dword [esp + 0x8c]
or eax, 4
mov dword [ebp], ecx
mov dword [ebp + 4], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xb0], eax
jmp 0x1005edb5
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x1005edd6
push 0x40
push ecx
lea eax, [esp + 0x28]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
jmp 0x1005ee87
mov ebx, dword [ebp + 4]
mov eax, ecx
mov ecx, dword [ebp]
cdq
add ecx, eax
mov dword [esp + 0x10], eax
mov eax, ebx
mov dword [esp + 0x1c], edx
adc eax, edx
mov dword [esp + 0x64], ebx
mov edx, dword [esi + 0x4c]
mov ebx, dword [esp + 0x90]
cmp ecx, dword [esi + edx*8 + 0xc0]
jne 0x1005ee0d
cmp eax, dword [esi + edx*8 + 0xc4]
je 0x1005ee83
mov eax, dword [ebp]
inc edx
mov ecx, dword [esp + 0x10]
and edx, 3
mov dword [esi + 0x4c], edx
mov dword [esi + edx*8 + 0x50], eax
mov eax, dword [esp + 0x64]
mov dword [esi + edx*8 + 0x54], eax
add ecx, dword [ebp]
mov eax, dword [ebp + 4]
adc eax, dword [esp + 0x1c]
mov dword [esi + edx*8 + 0xc4], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + edx*8 + 0xc0], ecx
mov ecx, dword [esp + 0x80]
mov dword [esi + edx*8 + 0x70], eax
mov eax, dword [esp + 0x84]
mov dword [esi + edx*8 + 0x74], ecx
mov ecx, dword [esp + 0x88]
mov dword [esi + edx*8 + 0x90], eax
mov eax, dword [esp + 0x8c]
mov dword [esi + edx*8 + 0x94], ecx
mov dword [esi + edx*8 + 0xf0], eax
mov dword [esi + edx*8 + 0xf4], ebx
mov eax, dword [esp + 0x74]
cmp dword [esi + 0x48], 0
mov dword [esp + 0x14], eax
je 0x1005efd4
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x70]
mov ecx, dword [esi + 0x2c]
mov ebx, dword [ebp + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x110]
mov dword [esi + 0x44], ecx
mov ecx, dword [esi + 0x114]
mov dword [esi + 0x118], eax
mov eax, dword [ebp]
xor ebp, ebp
mov dword [esi + 0x48], 0
mov dword [esi + 0x11c], ecx
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0x80000000
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0x80000000
mov dword [esi + 0x110], 0xffffffff
mov dword [esi + 0x114], 0xffffffff
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], ebx
mov ecx, dword [edx - 0x20]
cmp ebx, dword [edx - 0x1c]
jl 0x1005efc3
jg 0x1005ef39
cmp eax, ecx
jb 0x1005efc3
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp ebx, dword [edx - 0x1c]
jl 0x1005ef56
jg 0x1005ef4a
cmp eax, ecx
jb 0x1005ef56
or eax, ebx
jne 0x1005efbb
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x1005efbb
mov eax, dword [edx + 0x50]
or eax, dword [edx + 0x54]
mov ebx, dword [esp + 0x10]
je 0x1005efbf
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov eax, dword [edx + 0x80]
mov ecx, dword [edx + 0x84]
mov dword [esi + 0x114], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x110], eax
sub ecx, dword [edx - 0x20]
mov eax, dword [esi + 0x1c]
sbb eax, dword [edx - 0x1c]
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], eax
cmp ebx, dword [edx + 0x54]
jl 0x1005efd0
mov eax, dword [esp + 0x64]
jg 0x1005efc3
cmp eax, dword [edx + 0x50]
jb 0x1005efd0
jmp 0x1005efc3
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
inc ebp
add edx, 8
cmp ebp, 4
jl 0x1005ef23
mov ebp, dword [esp + 0x18]
push dword [esp + 0x78]
mov eax, dword [esi + 4]
push dword [esp + 0x18]
push dword [esp + 0x78]
mov eax, dword [eax + 0x24]
push dword [esp + 0x78]
push dword [esp + 0x78]
push esi
call eax
mov ebx, eax
add esp, 0x18
cmp ebx, 0xe0000000
jg 0x1005f024
push 0xa5
push str.libavcodec_parser.c
push str.index____0x20000000
push str.Assertion__s_failed_at__s:_d_n
push 0
push 0
call sub.avutil_fb2k_58.dll_av_log
add esp, 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov eax, dword [esp + 0x68]
cmp dword [eax + 8], 0
jne 0x1005f047
mov ecx, dword [esi + 0x124]
test ecx, ecx
jle 0x1005f047
cmp dword [eax + 0x12c], 0
jg 0x1005f047
mov dword [eax + 0x12c], ecx
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x1005f074
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 8], eax
mov eax, ebx
cdq
add eax, dword [ebp]
mov dword [esi + 0xc], ecx
adc edx, dword [ebp + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x48], 1
jmp 0x1005f07e
mov eax, dword [esp + 0x6c]
mov dword [eax], 0
xor eax, eax
test ebx, ebx
pop edi
cmovs ebx, eax
add dword [ebp], ebx
pop esi
adc dword [ebp + 4], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x50
ret