Function at 0x6a4b76d0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x60]
mov ebx, dword [ebp + 0x354]
test ebx, ebx
jne 0x6a4b7dc8
mov dword [esp], 0x6ab80e93
call sub.KERNEL32.dll_GetModuleHandleA
push ecx
mov ebx, eax
mov dword [esp + 4], 0x6ab80ea0
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6b24b12c], eax
mov dword [esp + 4], 0x6ab80ebc
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6b24b128], eax
mov dword [esp + 4], 0x6ab80ed5
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6b24b120], eax
mov dword [esp + 4], 0x6ab80eeb
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6b24b124], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6a4b7b8c
mov eax, dword [eax + 0x10]
test ah, 0x10
je 0x6a4b7b98
test dword [ebp + 0x5c], 0x90000
jne 0x6a4b7b98
test byte [ebp + 0x61], 0x80
jne 0x6a4b7b98
mov edx, dword [ebp + 0x33c]
cmp edx, 1
je 0x6a4b7def
test byte [ebp + 0x340], 1
je 0x6a4b7ba8
mov dword [ebp + 0x344], 1
cmp edx, 0x10
jle 0x6a4b77d5
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Application_has_requested__d_threads._Using_a_thread_count_greater_than__d_is_not_recommended._n
mov dword [esp + 4], 0x18
mov dword [esp], ebp
call sub.avutil_52.dll_av_log
mov eax, dword [ebp + 0x344]
test al, 2
jne 0x6a4b7e07
test al, 1
je 0x6a4b7b8c
mov edx, dword [ebp + 0x33c]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x6a4b7b60
cmp dword [esp + 0x38], 1
jle 0x6a4b7b82
mov eax, dword [esp + 0x38]
shl eax, 3
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
lea eax, [edx + eax*4]
lea ebx, [edx + eax*8]
shl ebx, 6
mov dword [esp], 0x30
call sub.avutil_52.dll_av_mallocz
mov dword [esp + 0x30], eax
mov dword [ebp + 0x354], eax
mov dword [esp], ebx
call sub.avutil_52.dll_av_mallocz
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, ecx
add eax, 8
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
mov eax, dword [esp + 0x30]
mov dword [eax + 0x28], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
jmp 0x6a4b7a3f
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x6a4b7d98
mov dword [esp], ebx
call eax
mov esi, eax
cmp dword [esp + 0x20], ebx
je 0x6a4b79a0
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x70]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], edx
mov eax, dword [ebx + 0x7c]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebx + 0x80]
mov dword [ecx + 0x80], eax
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0x90], eax
mov eax, dword [ebx + 0x84]
mov dword [ecx + 0x84], eax
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x88], eax
mov eax, dword [ebx + 0xbc]
mov dword [ecx + 0xbc], eax
mov eax, dword [ebx + 0x324]
mov dword [ecx + 0x324], eax
mov eax, dword [ebx + 0x32c]
mov dword [ecx + 0x32c], eax
mov eax, dword [ebx + 0xec]
mov edx, dword [ebx + 0xf0]
mov dword [ecx + 0xec], eax
mov dword [ecx + 0xf0], edx
mov eax, dword [ebx + 0x11c]
mov dword [ecx + 0x11c], eax
mov eax, dword [ebx + 0x35c]
mov dword [ecx + 0x35c], eax
mov eax, dword [ebx + 0x360]
mov dword [ecx + 0x360], eax
mov eax, dword [ebx + 0x330]
mov dword [ecx + 0x330], eax
mov eax, dword [ebx + 0x74]
mov dword [ecx + 0x74], eax
mov eax, dword [ebx + 0x198]
mov dword [ecx + 0x198], eax
mov eax, dword [ebx + 0x19c]
mov dword [ecx + 0x19c], eax
mov eax, dword [ebx + 0x1a0]
mov dword [ecx + 0x1a0], eax
mov eax, dword [ebx + 0x1a4]
mov dword [ecx + 0x1a4], eax
mov eax, dword [ebx + 0x1a8]
mov dword [ecx + 0x1a8], eax
mov eax, dword [ebx + 0x33c]
dec eax
mov edx, dword [esp + 0x20]
mov dword [edx + 0x78], eax
mov eax, dword [ebx + 0x338]
mov dword [edx + 0x338], eax
mov dword [esp + 0x24], ebx
test esi, esi
jne 0x6a4b8040
mov dword [ebp + 8], 0x6a4b5bc0
mov dword [ebp + 0xc], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6a4b50c8
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [ebp + 4], eax
test eax, eax
sete al
movzx eax, al
neg eax
mov dword [esp + 0x3c], eax
sete al
movzx eax, al
mov dword [ebp + 0x14], eax
test eax, eax
je 0x6a4b8048
inc dword [esp + 0x28]
add dword [esp + 0x2c], 0x3a40
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x28], edx
jge 0x6a4b7b8e
mov dword [esp], 0x3c8
call sub.avutil_52.dll_av_malloc
mov ebx, eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add ebp, dword [eax]
lea eax, [ebp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push esi
lea eax, [ebp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push edi
lea edx, [ebp + 0x18]
mov eax, dword [0x6b24b12c]
test eax, eax
je 0x6a4b7d00
mov dword [esp], edx
call eax
push ecx
lea edx, [ebp + 0x1c]
mov eax, dword [0x6b24b12c]
test eax, eax
je 0x6a4b7c68
mov dword [esp], edx
call eax
push eax
lea edx, [ebp + 0x20]
mov eax, dword [0x6b24b12c]
test eax, eax
je 0x6a4b7bd0
mov dword [esp], edx
call eax
push eax
mov eax, dword [esp + 0x30]
mov dword [ebp], eax
mov dword [ebp + 0x54], ebx
test ebx, ebx
je 0x6a4b7fc4
mov edi, ebx
mov esi, dword [esp + 0x24]
mov ecx, 0xf2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x354], ebp
lea eax, [ebp + 0x58]
mov dword [ebx + 0x37c], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6a4b7890
mov eax, dword [edx + 0x34]
mov dword [esp], eax
call sub.avutil_52.dll_av_malloc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x6a4b7fc4
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x40]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 0x34]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp], 0x28
call sub.avutil_52.dll_av_malloc
mov dword [ebx + 0x44], eax
test eax, eax
je 0x6a4b7fc4
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x44]
mov edi, eax
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 8], 1
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x6a4b7f74
mov dword [esp], ebx
call eax
mov esi, eax
jmp 0x6a4b79be
mov dword [esp], ebp
call fcn.6a4b62f4
test dword [ebp + 0x2c0], 0x6000
je 0x6a4b7f80
mov dword [ebp + 0x33c], 1
mov dword [ebp + 0x344], 0
xor esi, esi
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x33c]
cmp edx, 1
je 0x6a4b7def
nop
test ah, 0x20
je 0x6a4b7da4
test byte [ebp + 0x340], 2
je 0x6a4b7da4
mov dword [ebp + 0x344], 2
jmp 0x6a4b77ac
mov dword [esp], 0x40
call sub.avutil_52.dll_av_mallocz
mov esi, eax
test eax, eax
je 0x6a4b7ab1
mov dword [ebp + 0x20], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7fffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [esi + 0x34], eax
test eax, eax
je 0x6a4b7ab1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [esi + 0x38], eax
test eax, eax
je 0x6a4b7ab1
lea eax, [esi + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push edi
mov dword [esp], esi
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
jmp 0x6a4b7ab1
mov dword [esp], 0x40
call sub.avutil_52.dll_av_mallocz
mov esi, eax
test eax, eax
je 0x6a4b7a9b
mov dword [ebp + 0x1c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7fffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [esi + 0x34], eax
test eax, eax
je 0x6a4b7a9b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [esi + 0x38], eax
test eax, eax
je 0x6a4b7a9b
lea eax, [esi + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
mov dword [esp], esi
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
jmp 0x6a4b7a9b
mov dword [esp], 0x40
call sub.avutil_52.dll_av_mallocz
mov esi, eax
test eax, eax
je 0x6a4b7a85
mov dword [ebp + 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7fffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [esi + 0x34], eax
test eax, eax
je 0x6a4b7a85
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [esi + 0x38], eax
test eax, eax
je 0x6a4b7a85
lea eax, [esi + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
mov dword [esp], esi
call sub.KERNEL32.dll_InitializeCriticalSection
push edx
jmp 0x6a4b7a85
mov esi, dword [esp + 0x3c]
jmp 0x6a4b78a2
test ah, 0x80
jne 0x6a4b77ac
mov dword [ebp + 0x33c], 1
mov dword [ebp + 0x344], 0
xor eax, eax
jmp 0x6a4b77e3
mov dword [esp + 8], str.avcodec_thread_init_is_ignored_after_avcodec_open_n
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call sub.avutil_52.dll_av_log
mov esi, 0xffffffff
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x344], 0
mov eax, dword [ebp + 0x344]
test al, 2
je 0x6a4b77e3
mov edx, dword [ebp + 0x33c]
mov dword [esp + 0x20], edx
test edx, edx
je 0x6a4b8014
cmp dword [esp + 0x20], 1
jle 0x6a4b7b82
mov dword [esp], 0x4c
call sub.avutil_52.dll_av_mallocz
mov ebx, eax
test eax, eax
je 0x6a4b81c4
mov eax, dword [esp + 0x20]
shl eax, 4
mov dword [esp], eax
call sub.avutil_52.dll_av_mallocz
mov dword [ebx], eax
test eax, eax
je 0x6a4b81ce
mov dword [ebp + 0x354], ebx
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x48], 0
lea edx, [ebx + 0x24]
mov eax, dword [0x6b24b12c]
test eax, eax
je 0x6a4b8105
mov dword [esp], edx
call eax
push edx
lea edx, [ebx + 0x20]
mov dword [esp + 0x24], edx
mov eax, dword [0x6b24b12c]
test eax, eax
je 0x6a4b806e
mov dword [esp], edx
call eax
push eax
lea ecx, [ebx + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp], ecx
call sub.KERNEL32.dll_InitializeCriticalSection
push edi
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call sub.KERNEL32.dll_EnterCriticalSection
push eax
xor edi, edi
mov esi, edi
shl esi, 4
add esi, dword [ebx]
mov dword [esi + 4], 0x6a4b51d8
mov dword [esi + 8], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x6a4b50c8
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [esi], eax
test eax, eax
je 0x6a4b7fe0
inc edi
cmp edi, dword [esp + 0x20]
jl 0x6a4b7ec4
mov eax, dword [esp + 0x20]
add eax, dword [ebx + 0x18]
cmp dword [ebx + 0x40], eax
je 0x6a4b7f4b
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], ebp
mov ebp, ebx
mov ebx, dword [esp + 0x28]
mov edx, ebx
mov eax, edi
call fcn.6a4b50ec
mov eax, dword [ebp + 0x18]
add eax, esi
cmp dword [ebp + 0x40], eax
jne 0x6a4b7f34
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call sub.KERNEL32.dll_LeaveCriticalSection
push ebx
mov dword [ebp + 0x34c], fcn.6a4b60ec
mov dword [ebp + 0x350], 0x6a4b62ac
xor esi, esi
jmp 0x6a4b7b8e
mov esi, dword [esp + 0x3c]
jmp 0x6a4b79be
mov edx, dword [ebp + 0x2c4]
test edx, edx
jne 0x6a4b7b78
cmp eax, 1
jle 0x6a4b7b78
cmp eax, 0xf
jg 0x6a4b8058
inc eax
mov dword [esp + 0x38], eax
shl eax, 3
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
lea eax, [edx + eax*4]
lea ebx, [edx + eax*8]
shl ebx, 6
mov dword [ebp + 0x33c], edx
jmp 0x6a4b782b
mov ebp, dword [esp + 0x20]
mov esi, 0xfffffff4
mov edx, dword [esp + 0x28]
inc edx
mov eax, ebp
call fcn.6a4b53bc
jmp 0x6a4b7b8e
mov dword [ebp + 0x33c], edi
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call sub.KERNEL32.dll_LeaveCriticalSection
push esi
test byte [ebp + 0x344], 1
jne 0x6a4b819c
mov eax, ebp
call fcn.6a4b59a8
mov esi, 0xffffffff
jmp 0x6a4b7b8e
mov dword [esp], ebp
call fcn.6a4b62f4
cmp eax, 1
jle 0x6a4b7b78
cmp eax, 0xf
jg 0x6a4b81b3
inc eax
mov dword [esp + 0x20], eax
mov ecx, eax
mov dword [ebp + 0x33c], ecx
jmp 0x6a4b7e24
mov ebp, dword [esp + 0x20]
jmp 0x6a4b7fcd
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
jmp 0x6a4b7fcd
mov ebx, 0x3a400
mov dword [esp + 0x38], 0x10
mov edx, dword [esp + 0x38]
jmp 0x6a4b7fb9
mov dword [esp], 0x40
call sub.avutil_52.dll_av_mallocz
mov edi, eax
test eax, eax
je 0x6a4b7ea5
mov dword [ebx + 0x20], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7fffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [edi + 0x34], eax
test eax, eax
je 0x6a4b7ea5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [edi + 0x38], eax
test eax, eax
je 0x6a4b7ea5
lea eax, [edi + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
mov dword [esp], edi
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
jmp 0x6a4b7ea5
mov dword [esp], 0x40
call sub.avutil_52.dll_av_mallocz
mov edi, eax
test eax, eax
je 0x6a4b7e8b
mov dword [ebx + 0x24], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7fffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [edi + 0x34], eax
test eax, eax
je 0x6a4b7e8b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [edi + 0x38], eax
test eax, eax
je 0x6a4b7e8b
lea eax, [edi + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
mov dword [esp], edi
call sub.KERNEL32.dll_InitializeCriticalSection
push eax
jmp 0x6a4b7e8b
mov edx, dword [ebp + 0x33c]
mov eax, ebp
call fcn.6a4b53bc
mov esi, 0xffffffff
jmp 0x6a4b7b8e
mov dword [esp + 0x20], 0x10
mov ecx, dword [esp + 0x20]
jmp 0x6a4b8035
mov esi, 0xffffffff
jmp 0x6a4b7b8e
mov dword [esp], ebx
call fcn.6a68be94
or esi, 0xffffffff
jmp 0x6a4b7b8e