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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
cmp esi, ecx
jae 0x1000f6a0
lea eax, [esi + 1]
mov dword [ebx + 0xc], eax
movzx esi, byte [esi]
cmp eax, ecx
jae 0x1000f758
lea edx, [eax + 1]
mov dword [ebx + 0xc], edx
movzx eax, byte [eax]
add esp, 0x2c
pop ebx
shl eax, 8
or esi, eax
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x3c]
mov eax, 0x8000
mov ebp, ecx
mov edi, dword [ebx + 8]
test edx, edx
cmove edx, eax
mov eax, dword [ebx + 4]
sub ebp, eax
mov esi, eax
add edx, ebp
cmp edx, edi
jg 0x1000f6c3
sub edi, ebp
mov esi, ecx
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x1000f830
mov ebp, dword [ebx + 0x30]
test ebp, ebp
jne 0x1000f756
mov ebp, dword [ebx + 0x4c]
mov dword [esp + 0x1c], ebp
cmp eax, esi
jne 0x1000f6ec
test ebp, ebp
jne 0x1000f840
mov ebp, dword [ebx + 0xc0]
test ebp, ebp
je 0x1000f700
cmp ebp, dword [ebx + 8]
jl 0x1000f790
nop
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call edx
mov ecx, eax
cmp eax, 0xdfb9b0bb
je 0x1000f778
test eax, eax
js 0x1000f805
cdq
add dword [ebx + 0x28], eax
adc dword [ebx + 0x2c], edx
add ecx, esi
add eax, dword [ebx + 0xa8]
adc edx, dword [ebx + 0xac]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], edx
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edx
cmp esi, ecx
jb 0x1000f675
xor esi, esi
mov eax, ebx
call fcn.1000a8a0
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
jb 0x1000f686
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x30], 1
jmp 0x1000f74e
cmp ebp, edi
jg 0x1000f700
cmp esi, eax
jne 0x1000f820
cmp esi, dword [ebx + 0xc]
je 0x1000f820
mov dword [esp], ebp
call sub.avutil_59.dll_av_malloc
mov esi, eax
test eax, eax
je 0x1000f888
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.1006c9b0
mov eax, dword [ebx + 0x38]
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc0], ebp
mov dword [ebx + 0x70], esi
mov dword [ebx + 0xc], esi
test eax, eax
je 0x1000f880
lea eax, [esi + ebp]
mov dword [ebx + 0x38], 1
mov dword [ebx + 0x10], eax
mov edi, ebp
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x48], esi
test edx, edx
jne 0x1000f700
lea esi, [esi]
mov ecx, 0xffffffea
mov dword [ebx + 0x34], ecx
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x30], 1
mov ecx, dword [ebx + 0x10]
jmp 0x1000f74e
mov edi, ebp
jmp 0x1000f700
mov dword [ebx + 0x30], 1
xor esi, esi
jmp 0x1000f758
mov ebp, dword [ebx + 0x48]
cmp ebp, ecx
jb 0x1000f850
mov dword [ebx + 0x48], eax
jmp 0x1000f6ec
sub ecx, ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call eax
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x48], eax
test edx, edx
je 0x1000f800
jmp 0x1000f6ec
mov dword [ebx + 0x10], esi
jmp 0x1000f7ec
mov dword [esp + 8], str.Failed_to_decrease_buffer_size_n
mov dword [esp + 4], 0x18
mov dword [esp], ebx
call sub.avutil_59.dll_av_log
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 0xc0]
jmp 0x1000f7ee