Function at 0x140145540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
movaps xmmword [rax - 0x58], xmm6
mov rbx, rcx
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm13
call fcn.140001040
movsxd rax, dword [rbx + 4]
imul rcx, rax, 0x308
call fcn.1400c1e30
mov qword [rbx + 0x9d00], rax
mov r12, 0xffffffffffffffff
test rax, rax
je 0x140146eb2
movsxd rcx, dword [rbx + 4]
xor edx, edx
imul r8, rcx, 0x308
mov rcx, rax
call fcn.1402612c0
mov r13, qword [rbx + 0x9d00]
xor edi, edi
cmp dword [rbx + 0x290], edi
je 0x1401455f4
lea eax, [rdi + 1]
cmp dword [rbx + 0x2e8], edi
je 0x1401455f6
mov eax, edi
mov dword [r13], eax
cmp dword [rbx + 0x290], 2
jne 0x140145610
mov eax, 1
cmp dword [rbx + 0x2e8], edi
jne 0x140145612
mov eax, edi
mov dword [r13 + 4], eax
mov eax, dword [rbx + 0x398]
test eax, eax
je 0x140145643
mov ecx, dword [rbx + 0x39c]
test ecx, ecx
je 0x140145643
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm1, rax
cvtsi2ss xmm0, rcx
divss xmm1, xmm0
cvtps2pd xmm2, xmm1
jmp 0x14014564b
movsd xmm2, qword [0x14031d638]
movsd qword [r13 + 0x10], xmm2
cmp dword [rbx + 0x2d4], edi
je 0x14014566d
movsd xmm0, qword [0x1402f3fb0]
mov dword [rbx + 0x2c4], 0x3f800000
jmp 0x140145678
movss xmm0, dword [rbx + 0x2f8]
cvtps2pd xmm0, xmm0
movsd qword [r13 + 0x28], xmm0
cmp dword [rbx + 0x8c], edi
je 0x140145690
movsd xmm1, qword [0x14031d648]
jmp 0x140145698
movsd xmm1, qword [0x1402f6d18]
movd xmm0, dword [rbx + 0x2a4]
movabs rcx, 0x3ff0000000000000
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [r13 + 0x18], xmm0
movss xmm0, dword [rbx + 0x2b0]
cvtps2pd xmm0, xmm0
movsd qword [r13 + 0x20], xmm0
mov eax, dword [rbx + 0x5f88]
mov dword [r13 + 0x30], eax
mov dword [r13 + 0x168], r12d
mov qword [r13 + 0xd0], rcx
cmp dword [rbx + 0x290], 2
je 0x140145708
cmp dword [rbx + 0x2e8], edi
je 0x140145708
lea r8, str.CRF_CQP_is_incompatible_with_2pass._n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
mov edx, 1
mov rcx, rbx
call fcn.1401444a0
cmp dword [rbx + 0x34], edi
je 0x1401457d5
movsxd rcx, dword [rbx + 0x30f4]
lea rdx, [rbp + 0xa0]
mov eax, dword [rbx + 0x30d0]
imul rcx, rax
mov qword [rbp + 0x98], 0x15f90
mov qword [rbp + 0xa0], rcx
lea rcx, [rbp + 0x98]
call fcn.1400c60b0
mov rcx, qword [rbp + 0x98]
xor edx, edx
mov eax, 0x15f90
xorps xmm0, xmm0
div rcx
cvtsi2sd xmm0, rcx
mov qword [r13 + 0x300], rax
test rcx, rcx
jns 0x140145781
addsd xmm0, qword [0x1402f3fc8]
call fcn.14028215c
mov eax, dword [rbx + 0x30d0]
movaps xmm6, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
call fcn.14028215c
addsd xmm6, xmm0
movd xmm0, dword [rbx + 0x30f8]
cvtdq2pd xmm0, xmm0
call fcn.14028215c
addsd xmm0, xmm6
comisd xmm0, xmmword [0x14031d640]
jb 0x1401457d5
lea r8, str.HRD_with_very_large_timescale_and_bufsize_not_supported_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
movsd xmm6, qword [0x1402f9768]
movabs rsi, 0x3f847ae147ae147b
comisd xmm6, xmmword [r13 + 0x20]
jbe 0x140145807
lea r8, str.bitrate_tolerance_too_small__using_.01_n
mov edx, 1
mov rcx, rbx
call fcn.14010dde0
mov qword [r13 + 0x20], rsi
cmp dword [r13 + 8], edi
jne 0x140145817
mov eax, edi
cmp dword [rbx + 0x2cc], edi
je 0x14014581c
mov eax, 1
movss xmm7, dword [0x14031d67c]
mov dword [rbx + 0x9670], eax
cmp dword [r13], edi
je 0x1401458b5
mov qword [r13 + 0x178], rsi
cmp dword [rbx + 0x290], 1
jne 0x14014584e
movss xmm0, dword [rbx + 0x2a8]
jmp 0x140145851
movaps xmm0, xmm7
movsd xmm1, qword [r13 + 0x28]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm6
movsd qword [r13 + 0x170], xmm0
movsd xmm0, qword [0x14031d668]
call fcn.1402777a0
movd xmm1, dword [rbx + 0x5f88]
cvtdq2pd xmm1, xmm1
mov dword [r13 + 0x168], 2
mulsd xmm0, xmm6
sqrtpd xmm2, xmm1
mulsd xmm0, xmm2
movsd qword [r13 + 0xb0], xmm0
movsd xmm0, qword [r13 + 0x18]
divsd xmm0, qword [r13 + 0x10]
movsd qword [r13 + 0xc8], xmm0
movss xmm0, dword [rbx + 0x2c0]
call fcn.140281688
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
mulsd xmm1, qword [0x14031d620]
movsd qword [r13 + 0xf0], xmm1
movss xmm0, dword [rbx + 0x2c4]
call fcn.140281688
movsd xmm13, qword [0x1402f6d08]
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
mov ecx, Ordinal_73
mulsd xmm1, qword [0x14031d620]
movsd qword [r13 + 0xf8], xmm1
mov eax, dword [rbx + 0x294]
mov dword [r13 + 0x34], eax
movd xmm0, dword [rbx + 0x294]
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [r13 + 0xf0]
addsd xmm0, xmm13
cvttsd2si eax, xmm0
test eax, eax
jns 0x14014593d
mov eax, edi
jmp 0x140145942
cmp eax, ecx
cmovg eax, ecx
mov dword [r13 + 0x3c], eax
movd xmm0, dword [rbx + 0x294]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
addsd xmm0, xmm13
cvttsd2si eax, xmm0
test eax, eax
jns 0x140145967
mov eax, edi
jmp 0x14014596c
cmp eax, ecx
cmovg eax, ecx
mov dword [r13 + 0x38], eax
movsd xmm0, qword [r13 + 0xf0]
movd xmm1, dword [rbx + 0x2a0]
addsd xmm0, xmm13
cvtdq2pd xmm1, xmm1
cvttsd2si eax, xmm0
mulsd xmm1, qword [0x14031d5a8]
mov dword [rbx + 0x644c], eax
movsd xmm0, qword [0x140314428]
call fcn.1402777a0
movabs rax, 0x4011228a8f6215c0
movsd qword [r13 + 0x1b8], xmm0
mov qword [r13 + 0x148], rax
mov eax, dword [rbx + 0xc]
imul eax, dword [rbx + 4]
inc eax
movsxd r12, eax
imul rcx, r12, 0x64
call fcn.1400c1e30
mov qword [r13 + 0x90], rax
test rax, rax
je 0x140146eab
mov ecx, reloc.WS2_32.dll_sendto
call fcn.1400c1e30
mov qword [r13 + 0x2c0], rax
test rax, rax
je 0x140146eab
movss xmm9, dword [0x1402fad20]
lea r15, [r13 + 0x188]
movss xmm10, dword [0x14031d54c]
lea rsi, [r13 + 0x24c]
movss xmm11, dword [0x14031b5c8]
mov r14, rdi
movss xmm12, dword [0x14031d578]
movss xmm6, dword [0x1402f2b78]
mov qword [rbp + 0x98], rdi
cmp dword [rbx + 0x290], 1
jne 0x140145a59
movss xmm1, dword [rbx + 0x2a8]
jmp 0x140145a5c
movaps xmm1, xmm7
subss xmm1, xmm9
movaps xmm0, xmm11
mulss xmm1, xmm10
call fcn.140278e40
xorps xmm1, xmm1
mulss xmm0, xmm12
cvtss2sd xmm0, xmm0
movsd qword [r15 - 0x38], xmm0
movaps xmm0, xmm11
cvtsi2ss xmm1, dword [rbx + 0x298]
subss xmm1, xmm9
mulss xmm1, xmm10
call fcn.140278e40
xorps xmm1, xmm1
mulss xmm0, xmm12
cvtss2sd xmm0, xmm0
movsd qword [r15], xmm0
movaps xmm0, xmm11
cvtsi2ss xmm1, dword [rbx + 0x29c]
subss xmm1, xmm9
mulss xmm1, xmm10
call fcn.140278e40
mov r9, qword [rbp + 0x98]
mov r8, rdi
mulss xmm0, xmm12
lea r10, [0x14031c5a0]
cvtss2sd xmm0, xmm0
movsd qword [r15 + 0x18], xmm0
cmp r12, 4
jl 0x140145c6a
movss xmm1, dword [r10 + r14*4]
lea rdx, [r12 - 4]
shr rdx, 2
movaps xmm0, xmm1
inc rdx
mulss xmm0, xmm6
mov rcx, r9
lea r8, [rdx*4]
nop word [rax + rax]
mov rax, qword [r13 + 0x90]
lea rcx, [rcx + 0x190]
movss dword [rcx + rax - 0x190], xmm0
mov rax, qword [r13 + 0x90]
movss dword [rax + rcx - 0x18c], xmm1
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x188], 0x3f800000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x184], 0x3f000000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x180], edi
mov rax, qword [r13 + 0x90]
movss dword [rax + rcx - 0x12c], xmm0
mov rax, qword [r13 + 0x90]
movss dword [rax + rcx - 0x128], xmm1
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x124], 0x3f800000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x120], 0x3f000000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x11c], edi
mov rax, qword [r13 + 0x90]
movss dword [rcx + rax - 0xc8], xmm0
mov rax, qword [r13 + 0x90]
movss dword [rax + rcx - 0xc4], xmm1
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0xc0], 0x3f800000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0xbc], 0x3f000000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0xb8], edi
mov rax, qword [r13 + 0x90]
movss dword [rax + rcx - 0x64], xmm0
mov rax, qword [r13 + 0x90]
movss dword [rax + rcx - 0x60], xmm1
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x5c], 0x3f800000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x58], 0x3f000000
mov rax, qword [r13 + 0x90]
mov dword [rax + rcx - 0x54], edi
sub rdx, 1
jne 0x140145b20
cmp r8, r12
jge 0x140145ce0
movss xmm1, dword [r10 + r14*4]
lea rcx, [r14 + r8*4]
add rcx, r8
movaps xmm0, xmm1
mulss xmm0, xmm6
lea rdx, [rcx + rcx*4]
mov rcx, r12
shl rdx, 2
sub rcx, r8
mov rax, qword [r13 + 0x90]
lea rdx, [rdx + 0x64]
movss dword [rdx + rax - 0x64], xmm0
mov rax, qword [r13 + 0x90]
movss dword [rax + rdx - 0x60], xmm1
mov rax, qword [r13 + 0x90]
mov dword [rax + rdx - 0x5c], 0x3f800000
mov rax, qword [r13 + 0x90]
mov dword [rax + rdx - 0x58], 0x3f000000
mov rax, qword [r13 + 0x90]
mov dword [rax + rdx - 0x54], edi
sub rcx, 1
jne 0x140145c91
nop
mov dword [rsi - 4], 0x3d800000
add r9, 0x14
mov dword [rsi], 0x3e800000
inc r14
mov dword [rsi + 4], 0x3f800000
add r15, 8
mov qword [rsi + 8], 0x3f000000
mov dword [rsi + 0x10], 0x3d800000
mov dword [rsi + 0x14], 0x3e800000
mov dword [rsi + 0x18], 0x3f800000
mov qword [rsi + 0x1c], 0x3f000000
add rsi, 0x28
mov qword [rbp + 0x98], r9
cmp r14, 3
jl 0x140145a46
mov rax, qword [r13 + 0x2c0]
mov rcx, rbx
mov dword [rax], 0x3e800000
mov rax, qword [r13 + 0x2c0]
mov dword [rax + 4], 0x3f000000
mov rax, qword [r13 + 0x2c0]
mov dword [rax + 8], 0x3f800000
mov rax, qword [r13 + 0x2c0]
mov dword [rax + 0xc], 0x3f000000
mov rax, qword [r13 + 0x2c0]
mov dword [rax + 0x10], edi
call fcn.140141420
test eax, eax
jns 0x140145da1
lea r8, str.failed_to_parse_zones_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
mov eax, 0xffffffff
jmp 0x140146eb5
cmp dword [rbx + 0x2e8], edi
je 0x140146a52
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
jne 0x140145dd9
mov r8d, 0x369
lea rdx, str.encoder_ratecontrol.c
lea rcx, str.h__param.rc.psz_stat_in
call fcn.140282c4c
mov rcx, qword [rbx + 0x2f0]
call fcn.1400c6110
mov qword [rbp - 0x48], rax
mov r15, rax
mov r12, 0xffffffffffffffff
test rax, rax
je 0x140146ba7
cmp dword [rbx + 0x2d4], edi
je 0x140145e92
mov rsi, qword [rbx + 0x2f0]
mov rcx, r12
nop dword [rax + rax]
inc rcx
cmp byte [rsi + rcx], dil
jne 0x140145e10
add rcx, 8
call fcn.1400c1e30
mov r14, rax
test rax, rax
je 0x140146eb2
mov rdx, rax
sub rdx, rsi
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rsi]
mov byte [rdx + rsi], cl
lea rsi, [rsi + 1]
test cl, cl
jne 0x140145e40
dec rax
cmp byte [rax + 1], dil
lea rax, [rax + 1]
jne 0x140145e51
movsd xmm0, qword [str..mbtree]
lea rdx, [0x1402f5ec8]
mov rcx, r14
movsd qword [rax], xmm0
call fcn.140148610
mov rcx, r14
mov qword [r13 + 0x128], rax
call fcn.1400c1d50
cmp qword [r13 + 0x128], rdi
je 0x140146d20
mov r8d, 9
lea rdx, str.options:
mov rcx, r15
call fcn.1402776e0
test eax, eax
je 0x140145ec1
lea r8, str.options_list_in_stats_file_not_valid_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
mov edx, 0xa
mov rcx, r15
call fcn.14025f3dc
mov r14, rax
test rax, rax
je 0x140146eb2
inc r14
mov byte [rax], dil
lea r9, [rbp - 0x70]
mov qword [rbp - 0x58], r14
lea r8, [rbp + 0xa0]
mov rcx, r15
lea rdx, str.options:__dx_d
call fcn.1400a68e0
cmp eax, 2
je 0x140145f19
lea r8, str.resolution_specified_in_stats_file_not_valid_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
mov ecx, dword [rbp - 0x70]
mov eax, dword [rbp + 0xa0]
cmp dword [rbx + 0x2d4], edi
je 0x140145f38
mov dword [r13 + 0x218], eax
mov dword [r13 + 0x21c], ecx
movd xmm7, dword [rbx + 0x20]
movd xmm0, dword [rbx + 0x1c]
movss xmm1, dword [0x14031d56c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm7, xmm7
imul eax, ecx
mulss xmm7, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm7, xmm0
movaps xmm0, xmm7
call fcn.140278e40
lea rdx, str.timebase
mov rcx, r15
movaps xmm8, xmm0
call fcn.14026165c
test rax, rax
je 0x140146b32
lea r9, [rbp - 0x6c]
mov rcx, rax
lea r8, [rbp - 0x68]
lea rdx, str.timebase_u__u
call fcn.1400a68e0
cmp eax, 2
jne 0x140146b32
mov r9d, dword [rbx + 0x3a0]
mov ecx, dword [rbp - 0x68]
mov eax, dword [rbp - 0x6c]
cmp ecx, r9d
jne 0x140146b0a
cmp eax, dword [rbx + 0x3a4]
jne 0x140146b0a
lea rdx, str.bitdepth
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x140146021
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.bitdepth_d
call fcn.1400a68e0
test eax, eax
je 0x140146021
mov eax, dword [rbp + 0xa0]
cmp eax, 8
je 0x140146021
mov r9d, 8
mov dword [rsp + 0x20], eax
lea r8, str.different_bitdepth_setting_than_first_pass___d_vs__d__n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.weightp
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x140146083
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.weightp_d
call fcn.1400a68e0
test eax, eax
je 0x140146083
mov eax, dword [rbx + 0x22c]
mov r9d, edi
test eax, eax
cmovns r9d, eax
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x140146083
lea r8, str.different_weightp_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.bframes
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x1401460da
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.bframes_d
call fcn.1400a68e0
test eax, eax
je 0x1401460da
mov r9d, dword [rbx + 0x74]
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x1401460da
lea r8, str.different_bframes_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.b_pyramid
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x140146134
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.b_pyramid_d
call fcn.1400a68e0
test eax, eax
je 0x140146134
mov r9d, dword [rbx + 0x80]
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x140146134
lea r8, str.different_b_pyramid_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.intra_refresh
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x14014618b
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.intra_refresh_d
call fcn.1400a68e0
test eax, eax
je 0x14014618b
mov r9d, dword [rbx + 0x70]
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x14014618b
lea r8, str.different_intra_refresh_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.open_gop
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x1401461e5
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.open_gop_d
call fcn.1400a68e0
test eax, eax
je 0x1401461e5
mov r9d, dword [rbx + 0x84]
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x1401461e5
lea r8, str.different_open_gop_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.bluray_compat
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x14014623f
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.bluray_compat_d
call fcn.1400a68e0
test eax, eax
je 0x14014623f
mov r9d, dword [rbx + 0x88]
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x14014623f
lea r8, str.different_bluray_compat_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.mbtree
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x140146299
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.mbtree_d
call fcn.1400a68e0
test eax, eax
je 0x140146299
mov r9d, dword [rbx + 0x2d4]
mov eax, dword [rbp + 0xa0]
cmp r9d, eax
je 0x140146299
lea r8, str.different_mbtree_setting_than_first_pass___d_vs__d__n
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.interlaced
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x14014634c
cmp dword [rbx + 0xa8], edi
je 0x1401462cf
cmp dword [rbx + 0x3a8], edi
lea rcx, [0x1402f63bc]
lea rsi, [0x1402f63c0]
jmp 0x1401462e3
cmp dword [rbx + 0x3b0], edi
lea rcx, str.fake
lea rsi, [0x1402f2160]
cmovne rsi, rcx
lea r8, [rbp + 0x98]
mov rcx, rax
lea rdx, str.interlaced_4s
call fcn.1400a68e0
lea r8, [rbp + 0x98]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140146323
inc rax
test ecx, ecx
jne 0x140146310
test edx, edx
je 0x14014634c
lea rax, [rbp + 0x98]
mov r9, rsi
lea r8, str.different_interlaced_setting_than_first_pass___s_vs__s__n
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.keyint
mov rcx, r15
call fcn.14026165c
mov rsi, rax
test rax, rax
je 0x14014641a
movsd xmm0, qword [str.infinite]
xor eax, eax
movzx ecx, word [0x14031cc78]
add rsi, 7
mov r8d, dword [rbx + 0x64]
movsd qword [rsp + 0x78], xmm0
mov word [rbp - 0x80], cx
mov word [rbp - 0x7e], ax
mov byte [rbp - 0x7c], al
cmp r8d, 0x40000000
je 0x1401463ab
lea rdx, [0x14031cc7c]
lea rcx, [rsp + 0x78]
call fcn.140084b10
lea rax, [rsp + 0x78]
mov r8, r12
inc r8
cmp byte [rax + r8], dil
jne 0x1401463b3
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1402776e0
test eax, eax
je 0x14014641a
lea rdx, [0x1402f44f4]
mov rcx, rsi
call fcn.140277300
lea rcx, [rsp + 0x78]
mov r9, r12
inc r9
cmp byte [rcx + r9], dil
jne 0x1401463e4
mov qword [rsp + 0x30], rsi
lea r8, str.different_keyint_setting_than_first_pass___.s_vs__.s__n
mov qword [rsp + 0x28], rax
dec r9
lea rax, [rsp + 0x78]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14010dde0
jmp 0x140146eb2
lea rdx, str.qp0
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x14014644b
cmp dword [rbx + 0x290], 2
jne 0x14014644b
lea r8, str.1st_pass_was_lossless__bitrate_prediction_will_be_inaccurate_n
mov edx, 1
mov rcx, rbx
call fcn.14010dde0
lea rdx, str.direct3
mov rcx, r15
call fcn.14026165c
test rax, rax
jne 0x140146484
cmp dword [rbx + 0x234], 3
jne 0x140146484
lea r8, str.directauto_not_used_on_the_first_pass_n
mov rcx, rbx
lea edx, [rax + 1]
call fcn.14010dde0
mov dword [rbx + 0x967c], 1
lea rdx, str.b_adapt
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x140146550
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.b_adapt_d
call fcn.1400a68e0
test eax, eax
je 0x140146550
mov eax, dword [rbp + 0xa0]
cmp eax, 2
ja 0x140146550
mov dword [rbx + 0x78], eax
cmp dword [rbx + 0x2d4], edi
jne 0x1401464dc
cmp dword [rbx + 0x2b8], edi
je 0x140146516
lea rdx, str.rc_lookahead
mov rcx, r15
call fcn.14026165c
test rax, rax
je 0x140146516
lea r8, [rbp + 0xa0]
mov rcx, rax
lea rdx, str.rc_lookahead_d
call fcn.1400a68e0
test eax, eax
je 0x140146516
mov eax, dword [rbp + 0xa0]
mov dword [rbx + 0x2d8], eax
mov rax, r14
mov esi, r12d
test r14, r14
je 0x14014656f
lea rcx, [rax + 1]
mov edx, 0x3b
call fcn.14025f3dc
inc esi
test rax, rax
jne 0x140146521
test esi, esi
jne 0x14014656f
lea r8, str.empty_stats_file_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
cmp dword [rbx + 0x74], edi
je 0x1401464cc
lea r8, str.b_adapt_method_specified_in_stats_file_not_valid_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
mov dword [r13 + 0x130], esi
mov eax, esi
mov r9d, dword [rbx + 0x30]
mov ecx, r9d
cmp r9d, esi
jge 0x1401465ab
test r9d, r9d
jle 0x1401465ab
lea r8, str.2nd_pass_has_fewer_frames_than_1st_pass___d_vs__d__n
mov dword [rsp + 0x20], esi
mov edx, 1
mov rcx, rbx
call fcn.14010dde0
mov eax, dword [r13 + 0x130]
mov ecx, dword [rbx + 0x30]
cmp ecx, eax
jle 0x1401465cc
mov r9d, ecx
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea r8, str.2nd_pass_has_more_frames_than_1st_pass___d_vs__d__n
xor edx, edx
call fcn.14010dde0
jmp 0x140146eb2
cdqe
imul rcx, rax, 0xc8
call fcn.1400c1e30
mov qword [r13 + 0x138], rax
test rax, rax
je 0x140146eb2
movsxd rcx, dword [r13 + 0x130]
xor edx, edx
imul r8, rcx, 0xc8
mov rcx, rax
call fcn.1402612c0
movsxd rcx, dword [r13 + 0x130]
shl rcx, 3
call fcn.1400c1e30
mov qword [r13 + 0x140], rax
test rax, rax
je 0x140146eb2
mov eax, dword [r13 + 0x130]
mov r9d, edi
test eax, eax
jle 0x140146687
mov rdx, rdi
mov r8, rdi
movabs r10, 0x4001228a8f6215c0
mov rcx, qword [r13 + 0x138]
lea rdx, [rdx + 8]
add rcx, r8
inc r9d
add r8, 0xc8
mov dword [rcx], edi
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x10], r10
mov eax, dword [r13 + 0x30]
add eax, 0xa
mov dword [rcx + 0x40], edi
mov dword [rcx + 0x20], eax
mov rax, qword [r13 + 0x140]
mov qword [rdx + rax - 8], rcx
mov eax, dword [r13 + 0x130]
cmp r9d, eax
jl 0x140146640
mov dword [rsp + 0x70], edi
xorps xmm6, xmm6
mov esi, edi
test eax, eax
jle 0x140146a03
nop dword [rax + rax]
mov edx, 0x3b
mov dword [rbp - 0x78], edi
mov rcx, r14
mov dword [rbp - 0x74], edi
mov byte [rbp + 0x98], 0
call fcn.14025f3dc
mov qword [rbp - 0x50], rax
test rax, rax
je 0x1401466cd
mov byte [rax], 0
inc rax
mov qword [rbp - 0x50], rax
lea r9, [rbp - 0x74]
mov rcx, r14
lea r8, [rbp - 0x78]
lea rdx, str._in:_d_out:_d
call fcn.1400a68e0
movsxd r9, dword [rbp - 0x78]
mov dword [rbp + 0xa8], eax
test r9d, r9d
js 0x140146aec
mov ecx, dword [r13 + 0x130]
cmp r9d, ecx
jge 0x140146aec
movsxd rdx, dword [rbp - 0x74]
test edx, edx
js 0x140146acb
cmp edx, ecx
jge 0x140146acb
mov rax, qword [r13 + 0x140]
lea r8, [rbp + 0x98]
imul r9, r9, 0xc8
add r9, qword [r13 + 0x138]
mov qword [rax + rdx*8], r9
lea rdx, str._in:_d_out:_d_type:_c_dur:_I64d_cpbdur:_I64d_q:_f_aq:_f_tex:_d_mv:_d_misc:_d_imb:_d_pmb:_d_smb:_d_d:_c
mov byte [r9 + 0x54], 0
mov qword [rsp + 0x78], r9
lea rax, [r9 + 0x54]
mov qword [rsp + 0x68], rax
lea rcx, [r9 + 0xb8]
lea r12, [r9 + 0x4c]
mov qword [rsp + 0x60], r12
lea r15, [r9 + 0x48]
mov qword [rsp + 0x58], r15
lea r14, [r9 + 0x44]
mov qword [rsp + 0x50], r14
lea rsi, [r9 + 0x20]
mov qword [rsp + 0x48], rsi
lea rdi, [r9 + 0x18]
mov qword [rsp + 0x40], rdi
lea rbx, [r9 + 0x1c]
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
add r9, 0xb0
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x58]
call fcn.1400a68e0
add dword [rbp + 0xa8], eax
lea rdx, str.ref:
movd xmm0, dword [rbx]
movd xmm1, dword [rdi]
mov rcx, qword [rbp - 0x58]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm8
mulss xmm1, xmm8
cvttss2si eax, xmm0
movd xmm0, dword [rsi]
mov dword [rbx], eax
cvttss2si eax, xmm1
movd xmm1, dword [r14]
cvtdq2ps xmm0, xmm0
mov dword [rdi], eax
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm8
mulss xmm1, xmm7
cvttss2si eax, xmm0
movd xmm0, dword [r15]
mov dword [rsi], eax
cvttss2si eax, xmm1
movd xmm1, dword [r12]
mov dword [r14], eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm7
mulss xmm1, xmm7
cvttss2si eax, xmm0
mov dword [r15], eax
cvttss2si eax, xmm1
mov dword [r12], eax
call fcn.14026165c
mov r14, rax
test rax, rax
je 0x140146a9b
mov rbx, qword [rsp + 0x78]
add r14, 4
xor edi, edi
mov esi, edi
nop dword [rax]
movsxd rcx, esi
lea rdx, [0x14031cf24]
add rcx, 0x1a
lea r8, [rbx + rcx*4]
mov rcx, r14
call fcn.1400a68e0
cmp eax, 1
jne 0x14014689e
lea rcx, [r14 + 1]
lea edx, [rax + 0x1f]
call fcn.14025f3dc
mov r14, rax
test rax, rax
je 0x140146a9b
inc esi
cmp esi, 0x10
jl 0x140146860
mov dword [rbx + 0xa8], esi
mov r12, 0xffffffffffffffff
lea rsi, [rbx + 0x64]
mov rcx, r14
mov word [rsi], r12w
mov word [rbx + 0x62], r12w
lea edx, [r12 + 0x78]
call fcn.14025f3dc
test rax, rax
je 0x140146926
lea rcx, [rbx + 0x60]
mov qword [rsp + 0x48], rcx
lea rdx, [rbx + 0x5e]
mov qword [rsp + 0x40], rdx
lea r8, [rbx + 0x5c]
mov qword [rsp + 0x38], r8
lea r10, [rbx + 0x5a]
mov qword [rsp + 0x30], r10
lea r11, [rbx + 0x58]
mov qword [rsp + 0x28], rsi
lea r9, [rbx + 0x56]
lea r8, [rbx + 0x62]
mov qword [rsp + 0x20], r11
lea rdx, str.w:_hd__hd__hd__hd__hd__hd__hd__hd
mov rcx, rax
call fcn.1400a68e0
cmp eax, 3
je 0x140146922
cmp eax, 8
je 0x140146926
mov word [rbx + 0x62], r12w
mov word [rsi], r12w
movzx eax, byte [rbp + 0x98]
cmp al, 0x62
je 0x14014693f
mov dword [rbx + 8], 1
movzx eax, byte [rbp + 0x98]
cmp al, 0x42
je 0x140146989
cmp al, 0x49
je 0x14014697a
cmp al, 0x50
je 0x14014696f
cmp al, 0x62
je 0x140146966
cmp al, 0x69
jne 0x140146a96
mov dword [rbx + 4], 2
mov dword [rbx], 2
jmp 0x140146996
mov dword [rbx + 4], 5
jmp 0x140146990
mov dword [rbx + 4], 3
mov dword [rbx], edi
jmp 0x140146996
mov dword [rbx + 4], 1
mov dword [rbx], 2
jmp 0x140146996
mov dword [rbx + 4], 4
mov dword [rbx], 1
mov eax, dword [rbp + 0xa8]
cmp eax, 0xe
jl 0x140146aa8
movss xmm1, dword [rbp - 0x64]
movaps xmm0, xmm11
subss xmm1, xmm9
mulss xmm1, xmm10
call fcn.140278e40
mov esi, dword [rsp + 0x70]
mov r14, qword [rbp - 0x50]
inc esi
mulss xmm0, xmm12
mov qword [rbp - 0x58], r14
mov dword [rsp + 0x70], esi
cvtss2sd xmm0, xmm0
movsd qword [rbx + 0x10], xmm0
movss xmm1, dword [rbp - 0x60]
mov eax, dword [r13 + 0x130]
cvtps2pd xmm1, xmm1
addsd xmm6, xmm1
cmp esi, eax
jl 0x1401466a0
mov rbx, qword [rbp + 0x90]
mov r15, qword [rbp - 0x48]
cmp dword [rbx + 0x3b4], 0
jne 0x140146a31
movd xmm0, eax
mov ecx, gethostbyname
cvtdq2pd xmm0, xmm0
divsd xmm6, xmm0
addsd xmm6, xmm13
cvttsd2si eax, xmm6
cmp eax, ecx
cmovl ecx, eax
mov dword [rbx + 0x31ac], ecx
mov rcx, r15
call fcn.1400c1d50
cmp dword [rbx + 0x290], 2
jne 0x140146a52
mov rcx, rbx
call fcn.14013f830
test eax, eax
js 0x140146eb2
cmp dword [rbx + 0x2dc], 0
mov r12, 0xffffffffffffffff
je 0x140146d36
mov rsi, qword [rbx + 0x2e0]
mov rcx, r12
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140146a70
add rcx, 6
call fcn.1400c1e30
mov rcx, rax
test rax, rax
jne 0x140146b48
mov rcx, rdi
jmp 0x140146b7f
mov eax, r12d
jmp 0x140146aa8
mov eax, dword [rbp + 0xa8]
mov r12, 0xffffffffffffffff
mov r9d, dword [rsp + 0x70]
lea r8, str.statistics_are_damaged_at_line__d__parser_out_d_n
mov rcx, qword [rbp + 0x90]
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.14010dde0
jmp 0x140146eb2
mov rcx, qword [rbp + 0x90]
lea r8, str.bad_frame_output_number___d__at_stats_line__d_n
mov r9d, edx
mov dword [rsp + 0x20], esi
xor edx, edx
call fcn.14010dde0
jmp 0x140146eb2
mov rcx, qword [rbp + 0x90]
lea r8, str.bad_frame_number___d__at_stats_line__d_n
xor edx, edx
mov dword [rsp + 0x20], esi
call fcn.14010dde0
jmp 0x140146eb2
mov dword [rsp + 0x30], eax
lea r8, str.timebase_mismatch_with_1st_pass___u__u_vs__u__u__n
mov eax, dword [rbx + 0x3a4]
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14010dde0
jmp 0x140146eb2
lea r8, str.timebase_specified_in_stats_file_not_valid_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
mov rdx, rcx
sub rdx, rsi
nop
movzx eax, byte [rsi]
mov byte [rdx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x140146b50
lea rdx, [rcx - 1]
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140146b62
mov eax, dword [str..temp]
mov dword [rdx], eax
movzx eax, word [reloc.WS2_32.dll_WSASetLastError]
mov word [rdx + 4], ax
mov qword [r13 + 0x108], rcx
test rcx, rcx
je 0x140146eb2
lea rdx, [0x140312b68]
call fcn.140148610
mov qword [r13 + 0x100], rax
test rax, rax
jne 0x140146bbd
lea r8, str.ratecontrol_init:_cant_open_stats_file_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
mov edx, 1
mov rcx, rbx
call fcn.1400c1eb0
mov rsi, rax
test rax, rax
je 0x140146be8
mov rcx, qword [r13 + 0x100]
lea rdx, str.options:__s_n
mov r8, rax
call fcn.140088fb0
mov rcx, rsi
call fcn.1400c1d50
cmp dword [rbx + 0x2d4], 0
je 0x140146d78
cmp dword [rbx + 0x2e8], 0
jne 0x140146d36
mov rsi, qword [rbx + 0x2e0]
mov rcx, r12
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140146c14
add rcx, 0xd
call fcn.1400c1e30
mov rdx, rax
test rax, rax
jne 0x140146c33
mov rdx, rdi
jmp 0x140146c7b
mov rcx, rdx
sub rcx, rsi
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x140146c40
lea rcx, [rdx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140146c52
movsd xmm0, qword [str..mbtree.temp]
movsd qword [rcx], xmm0
mov eax, dword [0x14031cfa8]
mov dword [rcx + 8], eax
movzx eax, byte [0x14031cfac]
mov byte [rcx + 0xc], al
mov qword [r13 + 0x118], rdx
mov rcx, r12
mov rsi, qword [rbx + 0x2e0]
nop dword [rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140146c90
add rcx, 8
call fcn.1400c1e30
mov rdx, rax
test rax, rax
jne 0x140146caf
mov rdx, rdi
jmp 0x140146ce8
mov rcx, rdx
sub rcx, rsi
nop word [rax + rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x140146cc0
lea rax, [rdx - 1]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140146cd2
movsd xmm0, qword [str..mbtree]
movsd qword [rax], xmm0
mov rcx, qword [r13 + 0x118]
mov qword [r13 + 0x120], rdx
test rcx, rcx
je 0x140146eb2
test rdx, rdx
je 0x140146eb2
lea rdx, [0x140312b68]
call fcn.140148610
mov qword [r13 + 0x110], rax
test rax, rax
jne 0x140146d36
lea r8, str.ratecontrol_init:_cant_open_mbtree_stats_file_n
xor edx, edx
mov rcx, rbx
call fcn.14010dde0
jmp 0x140146eb2
cmp dword [rbx + 0x2d4], 0
je 0x140146d78
cmp dword [rbx + 0x2e8], 0
jne 0x140146d65
cmp dword [rbx + 0x2dc], 0
je 0x140146d78
mov eax, dword [rbx + 0x1c]
mov dword [r13 + 0x218], eax
mov eax, dword [rbx + 0x20]
mov dword [r13 + 0x21c], eax
mov rdx, r13
mov rcx, rbx
call fcn.140140aa0
test eax, eax
js 0x140146eb2
cmp dword [rbx + 4], 0
jle 0x140146ea7
mov r8d, 0x408
nop dword [rax + rax]
movsxd rax, edi
imul rdx, rax, 0x308
mov rax, qword [r8 + rbx]
add rdx, r13
mov qword [rax + 0x9d00], rdx
test edi, edi
je 0x140146e98
mov rax, r13
mov ecx, 6
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140146dc0
mov rax, qword [rax]
mov rcx, rbx
mov qword [rdx], rax
mov edx, 8
mov rax, qword [r8 + rbx]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140146e25
mov rcx, qword [r8 + rbx]
mov eax, dword [rbx + 0x9670]
mov dword [rcx + 0x9670], eax
mov rcx, qword [r8 + rbx]
mov eax, dword [rbx + 0x644c]
mov dword [rcx + 0x644c], eax
inc edi
add r8, 8
cmp edi, dword [rbx + 4]
jl 0x140146d90
xor eax, eax
jmp 0x140146eb5
mov r12, 0xffffffffffffffff
mov eax, r12d
lea r11, [rsp + 0x148]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
movaps xmm12, xmmword [r11 - 0x78]
movaps xmm13, xmmword [r11 - 0x88]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret