Function at 0x140010040
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 [0x14013cc10]
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 0x140010085
cmp byte [rax], 0
jne 0x1400102c8
lea rcx, str.LC_ALL
call sym.getenv
mov rbx, rax
test rax, rax
je 0x1400100a2
cmp byte [rax], 0
jne 0x1400102c8
lea r13, [rsp + 0x30]
mov eax, 2
lea rbx, [0x14009ab20]
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.14000e420
xor r8d, r8d
mov rcx, r14
lea rdx, [0x14009ab2f]
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.14000e420
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rbx
je 0x140010380
movq xmm0, r8
movhps xmm0, qword [rsp + 0x50]
cmp rcx, r13
je 0x140010360
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x14001036a
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 0x140010181
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
xor r8d, r8d
lea rdx, [0x14009ab31]
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.14000e420
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rbx
je 0x1400103b8
movq xmm0, r8
movhps xmm0, qword [rsp + 0x50]
cmp rcx, r13
je 0x140010340
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x14001034a
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 0x14001022c
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 0x14001025d
jmp 0x1400103e9
add rbx, 1
cmp rdi, rbx
je 0x1400102e0
movsx edx, byte [rbx]
mov rcx, rbp
call sym.strchr
test rax, rax
jne 0x140010250
lea rax, [r12 + 0x10]
lea r8, [0x14009ab22]
mov rcx, r12
mov qword [r12], rax
lea rdx, [r8 - 2]
call fcn.14000e420
mov rcx, qword [rsp + 0x20]
cmp rcx, r13
je 0x1400102a1
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 0x1400104e9
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 0x1400100b8
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 0x1400102f0
mov rdx, qword [rsp + 0x28]
cmp rdx, 0x10
ja 0x14001026d
mov rax, qword [rsp + 0x20]
lea rcx, [r12 + 0x10]
mov qword [r12], rcx
cmp rax, r13
je 0x1400103fd
mov qword [r12], rax
mov rax, qword [rsp + 0x30]
mov qword [r12 + 0x10], rax
mov qword [r12 + 8], rdx
jmp 0x1400102a1
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x140010208
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x14001015d
test r8, r8
je 0x1400103a1
cmp r8, 1
je 0x140010453
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 0x14001015d
test r8, r8
je 0x1400103d5
cmp r8, 1
je 0x140010440
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 0x140010208
lea rcx, [r12 + 0x10]
xor edx, edx
mov qword [r12], rcx
cmp rax, r13
jne 0x140010327
lea rax, [rdx + 1]
cmp eax, 8
jae 0x140010469
test al, 4
jne 0x1400104b7
test eax, eax
je 0x140010335
movzx r8d, byte [rsp + 0x30]
mov byte [rcx], r8b
test al, 2
je 0x140010335
mov eax, eax
movzx r8d, word [r13 + rax - 2]
mov word [rcx + rax - 2], r8w
jmp 0x140010335
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x1400103d5
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x1400103a1
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 0x140010335
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 0x14001049f
jmp 0x140010335
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 0x140010335
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop word [rax + rax]