Function at 0x6b4a60
Capabilities:
Create thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x60]
test byte [ebp + 0x324], 1
je 0x6b4d10
mov eax, dword [ebp + 0xc]
test byte [eax + 0x13], 0x40
je 0x6b4d10
mov eax, dword [ebp + 0x320]
mov edx, dword [ebp + 0x30]
test eax, eax
mov ecx, eax
je 0x6b4d20
cmp eax, 1
jle 0x6b4aa6
cmp edx, 8
je 0x6b4e40
cmp edx, 0x1a
je 0x6b4d80
cmp edx, 0x44
je 0x6b4d80
mov eax, dword [ebp + 0x320]
mov ecx, eax
test ecx, ecx
je 0x6b4d60
cmp ecx, 1
jle 0x6b4d10
cmp ecx, 0x40
jg 0x6b4e7a
mov ebx, dword [ebp + 0x40]
mov esi, dword [ebx + 0x24]
test esi, esi
jne 0x6b4ed4
mov dword [esp], 0x1068
call fcn.00894240
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x24], eax
mov edi, eax
je 0x6b4e84
mov dword [eax], ebp
mov dword [esp + 4], 0x18
mov dword [esp], pe_nt_image_headers32
call fcn.0088a7c0
test eax, eax
mov dword [edi + 0x1c], eax
je 0x6b4e8e
lea eax, [edi + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
lea eax, [edi + 0xc40]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
lea eax, [edi + 4]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
lea eax, [edi + 0x38]
sub esp, 4
call fcn.006b4600
lea eax, [edi + 0xc58]
call fcn.006b4600
mov ecx, dword [ebp + 0x320]
test ecx, ecx
jle 0x6b4d02
lea eax, [edi + 0xc64]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
jmp 0x6b4cae
mov eax, dword [eax + 0x3c]
mov ecx, 0xf8
mov edi, ebx
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ecx + 0x34]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x64]
and dword [ebx + 0x328], 0xfffffffe
mov dword [ebx + 0x320], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.0087c110
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xcba809
mov dword [esp + 4], 0xcba80b
mov dword [esp], eax
call fcn.0087b690
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0066ae20
test eax, eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
js 0x6b4e70
call fcn.0087c0b0
mov eax, dword [ebx + 0x40]
mov edx, dword [eax + 0x24]
test edx, edx
jne 0x6b4e9b
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [eax + 0x24], edi
mov dword [esi + 4], 0x6b4280
mov dword [esi + 8], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x6b4250
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
test eax, eax
mov dword [esi], eax
je 0x6b4ccb
add dword [esp + 0x24], 1
add esi, 0x10
mov eax, dword [esp + 0x24]
cmp dword [ebp + 0x320], eax
mov dword [esp + 0x28], esi
jle 0x6b4d02
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], 0
mov dword [esp], eax
call fcn.0063d310
test eax, eax
mov ebx, eax
jne 0x6b4b90
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x320], eax
mov dword [esp], ebp
mov dword [esp + 8], str.ff_frame_thread_encoder_init_failed_n
mov dword [esp + 4], 0x10
call fcn.00891920
mov dword [esp], ebp
call fcn.006b47e0
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x328], 1
lea esi, [esi]
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 8
jne 0x6b4aa6
test byte [ebp + 0x5c], 2
jne 0x6b4abe
mov dword [esp + 8], str.Forcing_thread_count_to_1_for_MJPEG_encoding__use__thread_type_slice_or_a_constant_quantizer_if_you_want_to_use_multiple_cpu_cores_n
mov dword [esp + 4], 0x30
mov dword [esp], ebp
call fcn.00891920
mov dword [ebp + 0x320], 1
mov edx, dword [ebp + 0x30]
jmp 0x6b4aa6
call fcn.008795b0
cmp eax, 0x40
jle 0x6b4d6f
mov eax, 0x40
cmp eax, 1
mov dword [ebp + 0x320], eax
jg 0x6b4ada
jmp 0x6b4d10
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.context
mov dword [esp], eax
call fcn.0087b580
test eax, eax
je 0x6b4e10
mov eax, dword [eax + 4]
test eax, eax
je 0x6b4e10
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test byte [ebp + 0x5d], 2
jne 0x6b4e16
test eax, eax
jle 0x6b4dfc
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.non_deterministic
mov dword [esp], eax
call fcn.0087b580
test eax, eax
je 0x6b4e16
mov eax, dword [eax + 4]
test eax, eax
je 0x6b4e16
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test eax, eax
je 0x6b4e16
mov ecx, dword [ebp + 0x320]
jmp 0x6b4ac0
test byte [ebp + 0x5d], 2
je 0x6b4dfc
mov dword [esp + 8], str.Forcing_thread_count_to_1_for_huffyuv_encoding_with_first_pass_or_context_1_n
mov dword [esp + 4], 0x18
mov dword [esp], ebp
call fcn.00891920
mov dword [ebp + 0x320], 1
jmp 0x6b4d10
test byte [ebp + 0x5c], 2
jne 0x6b4ad1
mov dword [esp + 8], str.MJPEG_CBR_encoding_works_badly_with_frame_multi_threading__consider_using__threads_1___thread_type_slice_or_a_constant_quantizer._n
mov dword [esp + 4], 0x18
mov dword [esp], ebp
call fcn.00891920
mov edx, dword [ebp + 0x30]
jmp 0x6b4aa6
call fcn.0087c0b0
jmp 0x6b4ccb
mov eax, 0xffffffea
jmp 0x6b4d12
mov eax, 0xfffffff4
jmp 0x6b4d12
mov dword [esp + 0x24], 0
jmp 0x6b4ccb
mov dword [esp + 0x14], 0xd3
mov dword [esp + 0x10], str.libavcodec_frame_thread_encoder.c
mov dword [esp + 0xc], str._thread_avctx__internal__frame_thread_encoder
mov dword [esp + 8], 0xcba7eb
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00891920
call sub.msvcrt.dll_abort
mov dword [esp + 0x14], 0xad
mov dword [esp + 0x10], str.libavcodec_frame_thread_encoder.c
mov dword [esp + 0xc], str._avctx__internal__frame_thread_encoder
jmp 0x6b4eb3