Function at 0x14004f4b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x30
call fcn.14005d7e0
sub rsp, rax
xor esi, esi
mov r14d, edx
mov rdi, rcx
test rcx, rcx
je 0x14004f65b
test r8d, r8d
je 0x14004f5eb
cmp byte [rcx], 0x2d
jne 0x14004f4f7
cmp byte [rcx + 1], sil
je 0x14004f5eb
mov ecx, r14d
mov qword [rsp + 0x40], rbp
call fcn.14005b420
mov ebx, eax
mov edx, 0x8301
mov eax, 0x301
test ebx, ebx
mov r8d, 0x180
mov rcx, rdi
cmovne edx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov ebp, eax
test eax, eax
js 0x14004f572
mov ecx, r14d
call fcn.14005b420
lea rcx, [0x140064ae4]
test eax, eax
lea rdx, [0x1400917a0]
cmovne rdx, rcx
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
mov rsi, rax
test rax, rax
je 0x14004f572
mov edx, select
mov ecx, 1
test ebx, ebx
cmove edx, ecx
mov rcx, rax
call sub.libcrypto_3_x64.dll_BIO_new_fp
test rax, rax
jne 0x14004f5d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rbx, rax
call fcn.14004bf60
mov rcx, qword [0x1400ac6a8]
lea rdx, str._s:_Cant_open___s__for_writing___s_n
mov r8, rax
mov qword [rsp + 0x20], rbx
mov r9, rdi
call sub.libcrypto_3_x64.dll_BIO_printf
mov rcx, qword [0x1400ac6a8]
call sub.libcrypto_3_x64.dll_ERR_print_errors
test rsi, rsi
je 0x14004f5c2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14004f5ce
test ebp, ebp
js 0x14004f5ce
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
cmp byte [rcx], 0x2d
jne 0x14004f5f6
cmp byte [rcx + 1], sil
je 0x14004f65b
mov ecx, r14d
call fcn.14005b420
test eax, eax
lea rcx, [0x140064ae4]
lea rdx, [0x1400917a0]
cmovne rdx, rcx
mov rcx, rdi
call sub.libcrypto_3_x64.dll_BIO_new_file
mov rbx, rax
test rax, rax
jne 0x14004f714
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, qword [0x1400ac6a8]
lea r9, str.writing
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Cant_open___s__for__s___s_n
call sub.libcrypto_3_x64.dll_BIO_printf
jmp 0x14004f705
mov ecx, r14d
call fcn.14005b420
neg eax
mov ecx, 1
sbb ebx, ebx
and ebx, 0x10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov edx, ebx
call sub.libcrypto_3_x64.dll_BIO_new_fp
mov rbx, rax
test rax, rax
je 0x14004f6da
mov ecx, r14d
call fcn.14005b420
test eax, eax
je 0x14004f6d5
lea rcx, str.HARNESS_OSSL_PREFIX
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
je 0x14004f6d5
call sub.libcrypto_3_x64.dll_BIO_f_prefix
mov rcx, rax
call sub.libcrypto_3_x64.dll_BIO_new
mov rcx, rax
mov rdx, rbx
call sub.libcrypto_3_x64.dll_BIO_push
xor r8d, r8d
mov r9, rdi
mov rcx, rax
mov rbx, rax
lea edx, [r8 + 0x4f]
call sub.libcrypto_3_x64.dll_BIO_ctrl
test rbx, rbx
jne 0x14004f714
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, qword [0x1400ac6a8]
lea r8, str.stdout
mov r9, rax
lea rdx, str.Cant_open__s___s_n
call sub.libcrypto_3_x64.dll_BIO_printf
mov rcx, qword [0x1400ac6a8]
call sub.libcrypto_3_x64.dll_ERR_print_errors
mov rbx, rsi
mov rax, rbx
jmp 0x14004f5d5