Function at 0x1401e4190
Capabilities:
Query environment variable

Disassembly:
endbr64
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r15, qword [0x140485900]
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
xor eax, eax
mov r12, rcx
lea rcx, str.LANG
call sym.getenv
mov rbx, rax
test rax, rax
je 0x1401e41d5
cmp byte [rax], 0
jne 0x1401e4418
lea rcx, str.LC_ALL
call sym.getenv
mov rbx, rax
test rax, rax
je 0x1401e41f2
cmp byte [rax], 0
jne 0x1401e4418
lea r13, [rsp + 0x30]
mov eax, 2
lea rbx, [0x1403c1c60]
mov qword [rsp + 0x20], r13
lea r14, [rsp + 0x20]
lea r8, [rbx + rax]
mov rdx, rbx
mov rcx, r14
lea rsi, [rsp + 0x40]
lea rbx, [rsp + 0x50]
call fcn.1401e2570
xor r8d, r8d
mov rcx, r14
lea rdx, [0x1403c1c6f]
mov r9d, 1
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char_const__unsigned_long_long__unsigned_long_long__const
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbx
cmp rax, rcx
cmova rax, rcx
mov rcx, rsi
lea r8, [rdx + rax]
call fcn.1401e2570
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rbx
je 0x1401e44d0
movq xmm0, r8
movhps xmm0, qword [rsp + 0x50]
cmp rcx, r13
je 0x1401e44b0
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x1401e44ba
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], 0
mov byte [rcx], 0
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x1401e42d1
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
xor r8d, r8d
lea rdx, [0x1403c1c71]
mov rcx, r14
mov r9d, 1
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_char_const__unsigned_long_long__unsigned_long_long__const
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbx
cmp rax, rcx
cmova rax, rcx
mov rcx, rsi
lea r8, [rdx + rax]
call fcn.1401e2570
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rbx
je 0x1401e4508
movq xmm0, r8
movhps xmm0, qword [rsp + 0x50]
cmp rcx, r13
je 0x1401e4490
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x1401e449a
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], 0
mov byte [rcx], 0
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x1401e437c
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
lea rbp, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ__._
add rdi, rax
mov rsi, rax
mov rbx, rax
cmp rdi, rax
jne 0x1401e43ad
jmp 0x1401e4539
add rbx, 1
cmp rdi, rbx
je 0x1401e4430
movsx edx, byte [rbx]
mov rcx, rbp
call sym.strchr
test rax, rax
jne 0x1401e43a0
lea rax, [r12 + 0x10]
lea r8, [0x1403c1c62]
mov rcx, r12
mov qword [r12], rax
lea rdx, [r8 - 2]
call fcn.1401e2570
mov rcx, qword [rsp + 0x20]
cmp rcx, r13
je 0x1401e43f1
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x68]
sub rax, qword [r15]
jne 0x1401e4639
mov rax, r12
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], r13
call sym.strlen
jmp 0x1401e4208
mov rbx, qword [sym.imp.msvcrt.dll_tolower]
nop word [rax + rax]
movsx ecx, byte [rsi]
add rsi, 1
call rbx
mov byte [rsi - 1], al
cmp rsi, rdi
jne 0x1401e4440
mov rdx, qword [rsp + 0x28]
cmp rdx, 0x10
ja 0x1401e43bd
mov rax, qword [rsp + 0x20]
lea rcx, [r12 + 0x10]
mov qword [r12], rcx
cmp rax, r13
je 0x1401e454d
mov qword [r12], rax
mov rax, qword [rsp + 0x30]
mov qword [r12 + 0x10], rax
mov qword [r12 + 8], rdx
jmp 0x1401e43f1
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x1401e4358
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x1401e42ad
test r8, r8
je 0x1401e44f1
cmp r8, 1
je 0x1401e45a3
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], r8
mov byte [rcx + r8], 0
mov rcx, qword [rsp + 0x40]
jmp 0x1401e42ad
test r8, r8
je 0x1401e4525
cmp r8, 1
je 0x1401e4590
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], r8
mov byte [rcx + r8], 0
mov rcx, qword [rsp + 0x40]
jmp 0x1401e4358
lea rcx, [r12 + 0x10]
xor edx, edx
mov qword [r12], rcx
cmp rax, r13
jne 0x1401e4477
lea rax, [rdx + 1]
cmp eax, 8
jae 0x1401e45b9
test al, 4
jne 0x1401e4607
test eax, eax
je 0x1401e4485
movzx r8d, byte [rsp + 0x30]
mov byte [rcx], r8b
test al, 2
je 0x1401e4485
mov eax, eax
movzx r8d, word [r13 + rax - 2]
mov word [rcx + rax - 2], r8w
jmp 0x1401e4485
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x1401e4525
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x1401e44f1
mov r8, qword [rsp + 0x30]
mov qword [rcx], r8
mov r8d, eax
mov r9, qword [r13 + r8 - 8]
mov qword [rcx + r8 - 8], r9
lea r9, [rcx + 8]
and r9, 0xfffffffffffffff8
sub rcx, r9
add eax, ecx
sub r13, rcx
and eax, 0xfffffff8
cmp eax, 8
jb 0x1401e4485
and eax, 0xfffffff8
xor ecx, ecx
mov r8d, ecx
add ecx, 8
mov r10, qword [r13 + r8]
mov qword [r9 + r8], r10
cmp ecx, eax
jb 0x1401e45ef
jmp 0x1401e4485
mov r8d, dword [rsp + 0x30]
mov eax, eax
mov dword [rcx], r8d
mov r8d, dword [r13 + rax - 4]
mov dword [rcx + rax - 4], r8d
jmp 0x1401e4485
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop word [rax + rax]