Function at 0x140015e80
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x170
mov r12, qword [rsp + 0x1d0]
mov rsi, rcx
lea rcx, str.FFMPEG_DATADIR
mov r13d, r9d
mov rdi, rdx
mov rbp, r8
call sub.msvcrt.dll_getenv
lea rcx, str.HOME
mov rbx, rax
mov qword [rsp + 0x40], rax
call sub.msvcrt.dll_getenv
mov qword [rsp + 0x48], rax
lea rax, str._usr_local_share_ffmpeg
test r13d, r13d
mov qword [rsp + 0x50], rax
jne 0x1400160f0
lea r13, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x103
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140015ff3
xor r13d, r13d
test rbx, rbx
lea r14, [rsp + 0x40]
je 0x140015fcc
cmp r13d, 1
je 0x140016093
lea rax, [0x1403c019b]
lea r8, str._s_s__s.ffpreset
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.14000fde0
lea rdx, [0x1403c1bea]
mov rcx, rsi
call sub.msvcrt.dll_fopen
test rax, rax
sete dl
test r12, r12
je 0x140015fae
test dl, dl
lea rcx, [0x1403c019b]
je 0x140015fae
lea r8, str._s_s__s__s.ffpreset
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r12
call fcn.14000fde0
lea rdx, [0x1403c1bea]
mov rcx, rsi
call sub.msvcrt.dll_fopen
test rax, rax
sete dl
add r13d, 1
add r14, 8
cmp r13d, 2
jg 0x140015fe1
test dl, dl
je 0x140015fe1
mov rbx, qword [r14]
test rbx, rbx
jne 0x140015f20
add r13d, 1
xor eax, eax
add r14, 8
cmp r13d, 2
mov edx, 1
jle 0x140015fbc
add rsp, 0x170
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, r13
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x140015ff6
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ecx, eax
add cl, al
mov rax, r13
sbb rdx, 3
sub rdx, r13
jmp 0x140016036
add rax, 1
lea rcx, [r13 + rdx]
cmp rax, rcx
jae 0x140016112
cmp byte [rax], 0x5c
jne 0x140016032
mov byte [rax], 0x2f
mov rdx, r13
mov r8d, dword [rdx]
add rdx, 4
lea ecx, [r8 - 0x1010101]
not r8d
and ecx, r8d
and ecx, 0x80808080
je 0x14001604f
mov r8d, ecx
shr r8d, 0x10
test ecx, 0x8080
cmove ecx, r8d
lea r8, [rdx + 2]
mov r10d, ecx
cmove rdx, r8
add r10b, cl
sbb rdx, 3
sub rdx, r13
jmp 0x140016032
lea rax, str._.ffmpeg
lea r8, str._s_s__s.ffpreset
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.14000fde0
lea rdx, [0x1403c1bea]
mov rcx, rsi
call sub.msvcrt.dll_fopen
test rax, rax
sete dl
test r12, r12
je 0x140015fae
test dl, dl
lea rcx, str._.ffmpeg
jne 0x140015f75
jmp 0x140015fae
mov rdx, rbp
mov rcx, rsi
mov r8, rdi
call fcn.14034f880
lea rdx, [0x1403c1bea]
mov rcx, rsi
call sub.msvcrt.dll_fopen
jmp 0x140015fe1
mov edx, 0x2f
mov rcx, r13
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x140015f0f
mov byte [rax], 0
mov rdx, r13
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x14001612e
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ecx, eax
add cl, al
mov rax, r13
mov rcx, r13
sbb rdx, 3
sub rax, rdx
lea rdx, str._ffpresets
lea r8, [rax + 0x103]
call sub.msvcrt.dll_strncat
mov qword [rsp + 0x50], r13
jmp 0x140015f0f