Function at 0x1000fba0
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 0x1000fbe0
lea eax, [esi + 1]
mov dword [ebx + 0xc], eax
movzx esi, byte [esi]
shl esi, 8
cmp eax, ecx
jae 0x1000fc98
lea edx, [eax + 1]
mov dword [ebx + 0xc], edx
movzx eax, byte [eax]
add esp, 0x2c
pop ebx
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 0x1000fc03
sub edi, ebp
mov esi, ecx
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x1000fd70
mov ebp, dword [ebx + 0x30]
test ebp, ebp
jne 0x1000fc96
mov ebp, dword [ebx + 0x4c]
mov dword [esp + 0x1c], ebp
cmp eax, esi
jne 0x1000fc2c
test ebp, ebp
jne 0x1000fd80
mov ebp, dword [ebx + 0xc0]
test ebp, ebp
je 0x1000fc40
cmp ebp, dword [ebx + 8]
jl 0x1000fcd0
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 0x1000fcb8
test eax, eax
js 0x1000fd45
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 0x1000fbb5
xor esi, esi
mov eax, ebx
call fcn.1000a8a0
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
jb 0x1000fbc9
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 0x1000fc8e
cmp ebp, edi
jg 0x1000fc40
cmp esi, eax
jne 0x1000fd60
cmp esi, dword [ebx + 0xc]
je 0x1000fd60
mov dword [esp], ebp
call sub.avutil_59.dll_av_malloc
mov esi, eax
test eax, eax
je 0x1000fdc8
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 0x1000fdc0
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 0x1000fc40
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 0x1000fc8e
mov edi, ebp
jmp 0x1000fc40
mov dword [ebx + 0x30], 1
xor esi, esi
jmp 0x1000fc98
mov ebp, dword [ebx + 0x48]
cmp ebp, ecx
jb 0x1000fd90
mov dword [ebx + 0x48], eax
jmp 0x1000fc2c
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 0x1000fd40
jmp 0x1000fc2c
mov dword [ebx + 0x10], esi
jmp 0x1000fd2c
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 0x1000fd2e