Function at 0x14000e390
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
xor esi, esi
mov r14, rdx
lea rdx, [0x140176154]
mov qword [rax + 0x20], rsi
mov r13d, esi
mov edi, esi
mov r15, r8
mov rbp, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
test rax, rax
je 0x14000e598
xor edx, edx
lea r8d, [rsi + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea ecx, [rbx + 1]
call fcn.140001bb0
mov r9, r12
lea edx, [rsi + 1]
mov r8d, ebx
mov rcx, rax
mov r13, rax
mov byte [rbx + rax], sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x14000e47d
movsxd rax, dword [0x1401ba7d4]
imul rcx, rax, 0x38
mov rax, qword [0x140175020]
test byte [rcx + rax + 0x18], 0x10
je 0x14000e464
mov r8, qword [rcx + rax]
lea rcx, str._s_MONITOR:_s:
mov rdx, qword [section..data]
call fcn.140002310
mov rdx, rbp
lea rcx, [0x140177488]
call fcn.140001fb0
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x14000e5ac
lea r8, [rsp + 0x268]
mov rcx, r13
lea rdx, [0x14017618c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
test rax, rax
je 0x14000e4e3
nop word [rax + rax]
lea r8, [rsp + 0x268]
xor ecx, ecx
lea rdx, [0x14017621c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov rbx, rax
cmp edi, 2
jne 0x14000e4cc
mov rcx, rax
call fcn.140002810
mov qword [r14], rax
jmp 0x14000e4dc
cmp edi, 6
jne 0x14000e4dc
mov rcx, rbx
call fcn.140002810
mov qword [r15], rax
inc edi
test rbx, rbx
jne 0x14000e4a0
lea rcx, [0x1401774f8]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14000e515
lea rcx, [0x140177508]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14000e515
cmp qword [r15], rsi
je 0x14000e598
cmp qword [r14], rsi
jmp 0x14000e591
lea rcx, [0x140177588]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rdx, [rsp + 0x20]
mov rcx, rax
sub rdx, rax
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14000e530
lea rcx, [0x140177598]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rdx, [rsp + 0x120]
mov rcx, rax
sub rdx, rax
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14000e560
mov rdx, qword [r14]
lea rcx, [rsp + 0x20]
call fcn.14001d350
test eax, eax
jne 0x14000e593
mov rdx, qword [r15]
lea rcx, [rsp + 0x120]
call fcn.14001d350
test eax, eax
je 0x14000e598
mov esi, 1
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, esi
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret