Function at 0x140098a70
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 [0x14023b4a0]
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 0x140098ab5
cmp byte [rax], 0
jne 0x140098cf8
lea rcx, str.LC_ALL
call sym.getenv
mov rbx, rax
test rax, rax
je 0x140098ad2
cmp byte [rax], 0
jne 0x140098cf8
lea r13, [rsp + 0x30]
mov eax, 2
lea rbx, [0x14018ac60]
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.140096e50
xor r8d, r8d
mov rcx, r14
lea rdx, [0x14018ac6f]
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.140096e50
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rbx
je 0x140098db0
movq xmm0, r8
movhps xmm0, qword [rsp + 0x50]
cmp rcx, r13
je 0x140098d90
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x140098d9a
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 0x140098bb1
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
xor r8d, r8d
lea rdx, [0x14018ac71]
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.140096e50
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rbx
je 0x140098de8
movq xmm0, r8
movhps xmm0, qword [rsp + 0x50]
cmp rcx, r13
je 0x140098d70
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x140098d7a
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 0x140098c5c
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 0x140098c8d
jmp 0x140098e19
add rbx, 1
cmp rdi, rbx
je 0x140098d10
movsx edx, byte [rbx]
mov rcx, rbp
call sym.strchr
test rax, rax
jne 0x140098c80
lea rax, [r12 + 0x10]
lea r8, [0x14018ac62]
mov rcx, r12
mov qword [r12], rax
lea rdx, [r8 - 2]
call fcn.140096e50
mov rcx, qword [rsp + 0x20]
cmp rcx, r13
je 0x140098cd1
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 0x140098f19
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 0x140098ae8
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 0x140098d20
mov rdx, qword [rsp + 0x28]
cmp rdx, 0x10
ja 0x140098c9d
mov rax, qword [rsp + 0x20]
lea rcx, [r12 + 0x10]
mov qword [r12], rcx
cmp rax, r13
je 0x140098e2d
mov qword [r12], rax
mov rax, qword [rsp + 0x30]
mov qword [r12 + 0x10], rax
mov qword [r12 + 8], rdx
jmp 0x140098cd1
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x140098c38
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x140098b8d
test r8, r8
je 0x140098dd1
cmp r8, 1
je 0x140098e83
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 0x140098b8d
test r8, r8
je 0x140098e05
cmp r8, 1
je 0x140098e70
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 0x140098c38
lea rcx, [r12 + 0x10]
xor edx, edx
mov qword [r12], rcx
cmp rax, r13
jne 0x140098d57
lea rax, [rdx + 1]
cmp eax, 8
jae 0x140098e99
test al, 4
jne 0x140098ee7
test eax, eax
je 0x140098d65
movzx r8d, byte [rsp + 0x30]
mov byte [rcx], r8b
test al, 2
je 0x140098d65
mov eax, eax
movzx r8d, word [r13 + rax - 2]
mov word [rcx + rax - 2], r8w
jmp 0x140098d65
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x140098e05
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x140098dd1
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 0x140098d65
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 0x140098ecf
jmp 0x140098d65
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 0x140098d65
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop word [rax + rax]