Function at 0x101697e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x234]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x1016981f
call fcn.1018f560
cmp eax, 0xf
mov ecx, 0xf
cmovl ecx, eax
inc ecx
xor esi, esi
inc esi
cmp eax, 2
cmovge esi, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x234], esi
cmp esi, 1
jg 0x1016983d
mov eax, dword [ebp + 8]
mov dword [eax + 0x23c], 0
xor edi, edi
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x38
call fcn.100602f0
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [eax + 0x10], ebx
test ebx, ebx
je 0x10169a45
push 0x102bb28c
push ebx
call fcn.10168b01
add esp, 8
test eax, eax
js 0x10169a4f
xor eax, eax
inc eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
jne 0x1016988f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x234]
dec eax
mov dword [ecx + 0x58], eax
push 0x74
push esi
call fcn.10060400
add esp, 8
mov dword [ebx], eax
mov edi, 0xfffffff4
test eax, eax
je 0x10169a76
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
mov dword [esi + ebx + 0x44], 0
push 0x328
push dword [ebp + 8]
call fcn.100604d0
add esp, 8
test eax, eax
je 0x10169a7a
mov edi, eax
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x1c]
mov dword [esi + ebx], eax
mov dword [esi + ebx + 0x30], edi
push 0x90
call fcn.100602f0
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
je 0x10169a84
mov dword [ebp - 0x10], 0xfffffff4
lea ecx, [esi + ebx]
mov dword [ebp - 0x20], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x10169962
push eax
call fcn.100602f0
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x10169a93
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x10169962
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push dword [edi + 0x18]
call fcn.10195c50
add esp, 8
test eax, eax
js 0x10169a90
push 0x102bb26c
push dword [ebp - 0x20]
call fcn.10168b01
add esp, 8
test eax, eax
js 0x10169a90
call sym.ffmpeg.dll_av_frame_alloc
mov dword [esi + ebx + 0x38], eax
test eax, eax
je 0x10169a93
call sym.ffmpeg.dll_av_packet_alloc
mov dword [esi + ebx + 0x34], eax
test eax, eax
je 0x10169a93
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
test ebx, ebx
je 0x101699af
mov eax, dword [edi + 0x1c]
mov dword [eax], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x101699cd
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test eax, eax
js 0x10169aab
mov dword [esi + ebx + 0x14], 1
test ebx, ebx
je 0x10169a34
mov eax, dword [edi + 0x1c4]
shr eax, 0x10
and eax, 1
lea edi, [esi + ebx]
add edi, 4
mov dword [edi + 0x6c], eax
mov dword [edi + 4], 0x10169cd0
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
xor eax, eax
push eax
push eax
push edi
push 0x10169eb0
push eax
push eax
call fcn.1013b08a
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10169a8d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [esi + ebx + 0x14], 2
add ebx, 0x74
mov esi, dword [ebp - 0x24]
cmp esi, eax
jne 0x101698b3
jmp 0x10169831
mov ecx, dword [ebp + 8]
mov edx, edi
push 1
call fcn.101690f0
add esp, 4
jmp 0x101699d9
mov edi, 0xfffffff4
jmp 0x10169833
mov edi, eax
push 0x102bb28c
push ebx
call fcn.10168ad6
add esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
add eax, 0x10
push eax
call fcn.10127460
add esp, 4
jmp 0x10169833
xor edx, edx
jmp 0x10169a9a
mov edi, 0xfffffff4
mov edx, dword [ebp - 0x18]
jmp 0x10169a9a
mov dword [ebp - 0x10], 0xfffffff4
jmp 0x10169a93
xor eax, eax
dec eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
inc edx
mov edi, dword [ebp - 0x10]
push edx
push dword [ebp + 8]
call fcn.10169490
add esp, 8
jmp 0x10169833
mov edx, dword [ebp - 0x18]
inc edx
mov ecx, dword [ebp - 0x14]
test byte [ecx + 0x3c], 2
je 0x10169ac0
mov dword [esi + ebx + 0x14], 1
mov edi, eax
jmp 0x10169a9a