Function at 0x140018880
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x990
mov rax, qword [0x140106088]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov qword [r11 + 8], rbp
xor ebp, ebp
cmp dword [0x140107678], ebp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r14
je 0x1400188d8
xor r9d, r9d
lea rdx, str.debug_proxy
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x140107674], 1
jmp 0x1400188e4
cmp dword [0x140107674], ebp
je 0x1400189ef
cmp qword [0x140107478], rbp
jne 0x1400189ef
mov ecx, 0x20
call fcn.1400031fc
xorps xmm0, xmm0
mov qword [0x140107478], rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
call fcn.140003ac1
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call fcn.140003ac1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.pid__u_pause_proxy
lea rcx, [rsp + 0x50]
call fcn.140004543
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [0x140107478]
mov qword [rcx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.pid__u_exit_proxy
lea rcx, [rsp + 0x160]
call fcn.140004543
lea r9, [rsp + 0x160]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r9, qword [0x140107478]
lea r8, [0x14000140b]
mov qword [rsp + 0x28], rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebp
mov qword [r9 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400189d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400189ef
mov rcx, qword [0x140107478]
call fcn.1400024dc
mov qword [0x140107478], rbp
mov dword [0x140107674], ebp
xor edx, edx
mov dword [rsp + 0x40], ebp
mov r8d, 0x400
lea rcx, [rsp + 0x560]
call fcn.140003ac1
mov ecx, dword [0x1401098d8]
mov edi, ebp
test ecx, ecx
jle 0x140018ab3
mov rsi, rbp
nop dword [rax + rax]
mov rax, qword [0x1401098e0]
mov r11d, ebp
mov r9, qword [rsi + rax]
cmp dword [r9 + 0x38], ebp
jle 0x140018aa5
mov rbx, rbp
nop word [rax + rax]
mov rax, qword [r9 + 0x30]
mov rcx, qword [rbx + rax]
mov r10, qword [rcx + 8]
test r10, r10
je 0x140018a92
cmp dword [r10 + 8], ebp
jge 0x140018a92
cmp dword [r9 + 0x28], 1
jne 0x140018a92
mov edx, dword [0x140107448]
sub edx, 1
js 0x140018a8e
mov rax, qword [r9 + 0x20]
mov rcx, qword [rax]
movsxd rax, edx
mov r8, qword [rcx + 8]
mov rcx, qword [0x140107440]
nop
cmp r8, qword [rcx + rax*8]
je 0x140018a8e
dec edx
sub rax, 1
jns 0x140018a80
mov dword [r10 + 8], edx
inc r11d
add rbx, 8
cmp r11d, dword [r9 + 0x38]
jl 0x140018a40
mov ecx, dword [0x1401098d8]
inc edi
add rsi, 8
cmp edi, ecx
jl 0x140018a20
cmp dword [0x14010744c], ebp
mov esi, ebp
jle 0x140018b08
mov r14, rbp
mov rax, qword [0x140107450]
mov rdi, qword [r14 + rax]
cmp dword [rdi + 0x60], ebp
je 0x140018afa
mov ebx, ebp
cmp dword [rdi + 0x58], ebx
jle 0x140018afa
call sub.avutil_56.dll_av_gettime_relative
mov ecx, dword [rdi + 0x10]
add ecx, ebx
inc ebx
movsxd rdx, ecx
mov rcx, qword [0x140107440]
mov rdx, qword [rcx + rdx*8]
mov qword [rdx + 0x48], rax
cmp ebx, dword [rdi + 0x58]
jl 0x140018ad7
inc esi
add r14, 8
cmp esi, dword [0x14010744c]
jl 0x140018ac0
mov qword [rsp + 0x988], r12
mov ebx, ebp
cmp dword [0x140107448], ebx
mov qword [rsp + 0x980], r13
mov qword [rsp + 0x970], r15
jle 0x140018b57
nop word [rax + rax]
mov r8d, 0x400
lea rdx, [rsp + 0x560]
mov ecx, ebx
call fcn.14000f500
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140018bb4
inc ebx
cmp ebx, dword [0x140107448]
jl 0x140018b30
mov r14d, dword [0x140107460]
mov edi, ebp
test r14d, r14d
jle 0x140018c34
mov rsi, rbp
nop dword [rax]
mov rax, qword [0x140107458]
mov rbx, qword [rsi + rax]
cmp dword [rbx + 0x1a0], ebp
jne 0x140018b91
mov rax, qword [rbx + 0x58]
cmp dword [rax + 0xc], 1
jbe 0x140018c25
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x400
call fcn.140003ac1
cmp dword [rbx + 0x1a4], ebp
je 0x140018bf7
mov dword [rsp + 0x40], ebp
jmp 0x140018c25
mov ebx, ebp
cmp dword [0x140107460], ebx
jle 0x140018d72
mov rdi, rbp
nop word [rax + rax]
mov rax, qword [0x140107458]
mov rcx, qword [rdi + rax]
mov rcx, qword [rcx + 0x58]
call sub.avcodec_58.dll_avcodec_close
inc ebx
lea rdi, [rdi + 8]
cmp ebx, dword [0x140107460]
jl 0x140018bd0
jmp 0x140018d72
mov r9d, 0x400
lea r8, [rsp + 0x160]
xor edx, edx
mov rcx, rbx
call fcn.14000fce0
mov dword [rsp + 0x40], eax
mov r15d, eax
test eax, eax
js 0x140018cbc
mov r14d, dword [0x140107460]
inc edi
add rsi, 8
cmp edi, r14d
jl 0x140018b70
cmp dword [0x14010744c], ebp
mov r12d, ebp
jle 0x140018d20
mov r13, rbp
nop word [rax + rax]
mov rax, qword [0x140107450]
mov esi, ebp
mov r15, qword [rax + r13]
mov rax, qword [r15]
cmp dword [rax + 0x484], ebp
jbe 0x140018d0c
mov rdi, rbp
nop
mov rax, qword [rax + 0x488]
mov r14d, 0x30
mov edx, ebp
mov rbx, qword [rdi + rax]
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140018cf3
mov r10d, dword [r15 + 0x10]
mov r8, qword [rbx + 0x10]
mov r11, qword [0x140107440]
nop dword [rax + rax]
mov ecx, dword [r8]
add ecx, r10d
mov rcx, qword [r11 + rcx*8]
cmp dword [rcx + 0x10], ebp
je 0x140018cf0
inc edx
add r8, 4
cmp edx, r9d
jb 0x140018ca0
jmp 0x140018cf3
mov r9d, dword [rbx]
lea rax, [rsp + 0x160]
mov qword [rsp + 0x28], rax
lea r8, str.Error_initializing_output_stream__d:_d_____s_n
mov eax, dword [rbx + 4]
mov edx, 0x10
xor ecx, ecx
mov dword [rsp + 0x20], eax
call sub.avutil_56.dll_av_log
mov dword [rsp + 0x40], r15d
jmp 0x140018d72
mov r14d, ebp
mov dword [rbx + 8], r14d
inc esi
mov rax, qword [r15]
add rdi, 8
cmp esi, dword [rax + 0x484]
jb 0x140018c70
inc r12d
add r13, 8
cmp r12d, dword [0x14010744c]
jl 0x140018c50
mov r8d, dword [0x140107464]
mov ebx, ebp
test r8d, r8d
jle 0x140018d72
mov rdi, rbp
mov rax, qword [0x140107468]
mov rcx, qword [rdi + rax]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
test dword [rax + 0x2c], 0x1000
je 0x140018d67
cmp dword [rdx + 0x2c], ebp
jne 0x140018d67
mov edx, ebx
call fcn.140009860
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140018d72
mov r8d, dword [0x140107464]
inc ebx
add rdi, 8
cmp ebx, r8d
jl 0x140018d31
lea r8, str.Stream_mapping:_n
mov edx, 0x20
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov ecx, dword [0x140107448]
mov r14d, ebp
test ecx, ecx
jle 0x140018e93
mov r15, rbp
nop dword [rax]
mov rax, qword [0x140107440]
mov esi, ebp
mov rbx, qword [r15 + rax]
cmp dword [rbx + 0x138], 0
jle 0x140018e83
mov rdi, rbp
nop dword [rax]
mov rax, qword [rbx + 0x130]
mov rcx, qword [rdi + rax]
mov rcx, qword [rcx + 0x10]
call fcn.140003b02
test eax, eax
jne 0x140018e6b
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x140018dea
mov rdx, qword [rax]
jmp 0x140018df1
lea rdx, [0x1400dd72c]
mov rcx, qword [rbx + 8]
lea r8, str.__Stream__d:_d___s______s
mov rax, qword [rbx + 0x130]
mov r9d, dword [rbx]
mov rax, qword [rdi + rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx]
xor ecx, ecx
mov qword [rsp + 0x28], rdx
mov edx, 0x20
mov dword [rsp + 0x20], eax
call sub.avutil_56.dll_av_log
cmp dword [0x1401098d8], 1
jle 0x140018e58
mov rax, qword [rbx + 0x130]
lea r8, str.__graph__d_
mov edx, 0x20
mov rcx, qword [rdi + rax]
mov rax, qword [rcx + 0x10]
xor ecx, ecx
mov r9d, dword [rax]
call sub.avutil_56.dll_av_log
lea r8, [0x1400dc33c]
mov edx, 0x20
xor ecx, ecx
call sub.avutil_56.dll_av_log
inc esi
add rdi, 8
cmp esi, dword [rbx + 0x138]
jl 0x140018dc0
mov ecx, dword [0x140107448]
inc r14d
add r15, 8
cmp r14d, ecx
jl 0x140018da0
cmp dword [0x140107460], 0
jle 0x14001911c
mov r13, rbp
mov rax, qword [0x140107458]
mov rbx, qword [rax + r13]
mov r9, qword [rbx + 0x1b0]
test r9, r9
je 0x140018edf
mov eax, dword [rbx + 4]
lea r8, str.__File__s____Stream__d:_d_n
mov dword [rsp + 0x28], eax
mov edx, 0x20
mov eax, dword [rbx]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call sub.avutil_56.dll_av_log
jmp 0x14001910a
mov rcx, qword [rbx + 0x150]
test rcx, rcx
je 0x140018f82
mov rcx, qword [rcx + 0x10]
call fcn.140003b02
test eax, eax
jne 0x140018f82
mov r9, qword [rbx + 0x150]
lea r8, str.___s
lea edx, [rax + 0x20]
xor ecx, ecx
mov r9, qword [r9 + 0x18]
call sub.avutil_56.dll_av_log
cmp dword [0x1401098d8], 1
jle 0x140018f46
mov rax, qword [rbx + 0x150]
lea r8, str.__graph__d_
mov edx, 0x20
mov rcx, qword [rax + 0x10]
mov r9d, dword [rcx]
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x140018f54
mov rcx, qword [rax]
jmp 0x140018f5b
lea rcx, [0x1400dd72c]
mov eax, dword [rbx + 4]
lea r8, str.____Stream__d:_d___s__n
mov r9d, dword [rbx]
mov edx, 0x20
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call sub.avutil_56.dll_av_log
jmp 0x14001910a
movsxd rcx, dword [rbx + 8]
lea r8, str.__Stream__d:_d_____d:_d
mov rax, qword [0x140107440]
mov rdx, qword [rax + rcx*8]
mov eax, dword [rbx + 4]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx]
mov rcx, qword [rdx + 8]
mov r9d, dword [rdx]
mov edx, 0x20
mov dword [rsp + 0x28], eax
mov eax, dword [rcx]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call sub.avutil_56.dll_av_log
movsxd rax, dword [rbx + 8]
mov rcx, qword [0x140107440]
mov rdx, qword [rbx + 0x20]
cmp rdx, qword [rcx + rax*8]
je 0x140018ffa
mov rax, qword [rdx + 8]
lea r8, str.__sync__d:_d_
mov r9d, dword [rdx]
mov edx, 0x20
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov rcx, qword [0x140107440]
cmp dword [rbx + 0x1a0], 0
je 0x14001901b
lea r8, str.__copy_
mov edx, 0x20
xor ecx, ecx
call sub.avutil_56.dll_av_log
jmp 0x1400190f7
movsxd rax, dword [rbx + 8]
lea rdi, [0x1400dd72c]
mov rsi, qword [rbx + 0x68]
lea r12, [0x1400dd72c]
lea rbx, [0x1400dd72c]
lea r15, [0x1400dd72c]
mov rcx, qword [rcx + rax*8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140019090
mov ecx, dword [rax + 0x14]
mov r14, qword [rax]
call sub.avcodec_58.dll_avcodec_descriptor_get
test rax, rax
je 0x140019060
mov r12, qword [rax + 8]
mov r8, r12
mov rax, r14
sub r8, r14
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140019083
inc rax
test ecx, ecx
jne 0x140019070
test edx, edx
lea rdi, str.native
cmovne rdi, r14
test rsi, rsi
je 0x1400190d2
mov ecx, dword [rsi + 0x14]
mov r14, qword [rsi]
call sub.avcodec_58.dll_avcodec_descriptor_get
test rax, rax
je 0x1400190a9
mov r15, qword [rax + 8]
mov r8, r15
mov rax, r14
sub r8, r14
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400190c5
inc rax
test ecx, ecx
jne 0x1400190b2
test edx, edx
lea rbx, str.native
cmovne rbx, r14
mov qword [rsp + 0x30], rbx
lea r8, str.___s___s______s___s__
mov qword [rsp + 0x28], r15
mov r9, r12
mov edx, 0x20
mov qword [rsp + 0x20], rdi
xor ecx, ecx
call sub.avutil_56.dll_av_log
lea r8, [0x1400dc33c]
mov edx, 0x20
xor ecx, ecx
call sub.avutil_56.dll_av_log
inc ebp
add r13, 8
cmp ebp, dword [0x140107460]
jl 0x140018ea3
mov ebx, dword [rsp + 0x40]
mov r15, qword [rsp + 0x970]
mov r14, qword [rsp + 0x978]
mov r13, qword [rsp + 0x980]
mov r12, qword [rsp + 0x988]
mov rdi, qword [rsp + 0x9b0]
mov rsi, qword [rsp + 0x9a8]
mov rbp, qword [rsp + 0x9a0]
test ebx, ebx
je 0x14001917b
lea r9, [rsp + 0x560]
mov edx, 0x10
lea r8, [0x1400dd81c]
xor ecx, ecx
call sub.avutil_56.dll_av_log
mov eax, ebx
jmp 0x140019188
mov qword [0x1401074d0], 1
xor eax, eax
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.140002bee
add rsp, 0x990
pop rbx
ret