Function at 0x10023550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [0x1018fc64]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [esi + 0x2b0]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x1002358c
cmp ebx, 1
jg 0x100235b5
mov dword [esi + 0x2b8], 0
xor esi, esi
jmp 0x1002388d
call fcn.10065070
lea ecx, [eax + 1]
cmp eax, 0x10
mov edx, 0x10
cmovl edx, ecx
cmp eax, 1
mov ebx, 1
cmovg ebx, edx
mov dword [esi + 0x2b0], ebx
cmp ebx, 1
jle 0x1002357b
push 0x28
call fcn.10070af0
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x10], edi
test edi, edi
je 0x1002383a
push 0xb8
push ebx
call fcn.10070a70
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x10023841
mov dword [ebp - 0x20], ebx
lea eax, [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
push eax
call ebx
lea eax, [edi + 0xc]
push eax
call ebx
lea eax, [edi + 0x10]
push eax
call ebx
mov eax, edi
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
mov dword [edi + 0x18], 1
mov dword [ebp - 0x2c], edi
mov dword [edi + 0x24], 1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
jne 0x10023634
mov eax, dword [esi + 0x2b0]
add eax, 0xffffffff
mov dword [esi + 0x58], eax
mov edx, dword [ebp - 0x20]
neg edx
mov ecx, 1
xor edi, edi
mov dword [ebp - 0x20], edx
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ebp - 0x24], ecx
push 0x398
call sym.ffmpeg.dll_av_malloc
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebx]
lea eax, [esi + edi]
add eax, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [esi + edi]
add eax, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [esi + edi]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [esi + edi]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
mov ecx, dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [esi + edi]
add eax, 0x20
push eax
call ecx
call sym.ffmpeg.dll_av_frame_alloc
mov dword [esi + edi + 0x78], eax
test eax, eax
je 0x10023857
mov dword [esi + edi], ebx
mov eax, dword [ebp - 0x14]
mov dword [esi + edi + 0x2c], eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0xfffffff4
test ebx, ebx
je 0x1002387c
push 0x398
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.101053c0
add esp, 0xc
push 0x90
call sym.ffmpeg.dll_av_malloc
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x1002386c
lea ecx, [esi + edi]
mov dword [ebp - 0x28], ecx
push 0x90
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1c]
push eax
call fcn.101053c0
add esp, 0xc
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
lea eax, [esi + edi]
add eax, 0x30
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
xor edx, edx
test eax, eax
je 0x10023789
push eax
call fcn.10070af0
xor edx, edx
add esp, 4
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1002387c
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x10023789
mov dword [eax], ecx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push dword [ebx + 0x18]
call fcn.10073220
add esp, 8
mov edx, eax
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1002387c
test edi, edi
je 0x10023796
mov eax, dword [ebx + 0x1c]
mov dword [eax], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x100237aa
push dword [ebp - 0x14]
call eax
add esp, 4
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x1002387c
mov ebx, dword [ebp - 0x14]
test edi, edi
jne 0x100237cb
mov ecx, dword [ebp + 8]
mov edx, ebx
push 1
call fcn.10022c20
add esp, 4
mov eax, dword [ebx + 0x240]
shr eax, 0x10
and eax, 1
mov dword [esi + edi + 0xb0], eax
mov dword [esi + edi + 8], 0x100238b0
mov eax, dword [ebp - 0x28]
mov dword [esi + edi + 0xc], eax
lea eax, [esi + edi + 4]
push 0
push 0
push eax
push 0x10023f50
push 0
push 0
call fcn.1010d6d4
add esp, 0x18
mov dword [esi + edi + 4], eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + edi + 0x14], ecx
je 0x10023875
add edi, 0xb8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea eax, [edx + ecx]
add eax, 1
add ecx, 1
xor esi, esi
cmp eax, 1
jne 0x10023650
jmp 0x1002388d
mov esi, 0xfffffff4
jmp 0x1002388d
mov eax, dword [esi + 0x1c]
add eax, 0x10
push eax
call fcn.100709e0
add esp, 4
mov esi, 0xfffffff4
jmp 0x1002388d
lea eax, [ebp - 0x14]
push eax
call fcn.100709e0
add esp, 4
mov dword [ebp - 0x18], 0xfffffff4
jmp 0x1002387c
mov dword [ebx + 0x18], 0
jmp 0x1002387c
mov dword [ebp - 0x18], 0xffffffff
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.10023050
add esp, 8
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102288
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret