Function at 0x140012de0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x290
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x2d0], rbx
mov r12, r8
mov rbp, rdx
mov r13, rcx
mov rcx, rdx
call fcn.1400129b0
mov edx, eax
mov rcx, r13
call fcn.140013410
nop
mov edx, 0x24
mov rcx, rbp
call fcn.140038160
mov rbx, rax
test rax, rax
je 0x14001316d
nop
mov r8d, ebx
sub r8d, ebp
mov rdx, rbp
mov rcx, r13
call fcn.1400134b0
lea rcx, [rbx + 1]
mov rbp, rcx
cmp byte [rcx], 0x7b
jne 0x140012e81
add rcx, 1
mov rbp, rcx
movzx eax, byte [rcx]
test al, al
je 0x140012ea4
nop
nop
cmp al, 0x7d
je 0x140012e9f
add rbp, 1
mov al, byte [rbp]
test al, al
jne 0x140012e70
jmp 0x140012e9f
movzx eax, byte [rbp]
cmp al, 0x61
jl 0x140012e8d
cmp al, 0x7a
jle 0x140012e99
cmp al, 0x41
jl 0x140012e95
cmp al, 0x5a
jle 0x140012e99
cmp al, 0x5f
jne 0x140012e9f
add rbp, 1
jmp 0x140012e81
cmp rcx, rbp
jne 0x140012ebc
or r8d, 0xffffffff
lea rdx, [0x1400626e4]
mov rcx, r13
call fcn.1400134b0
jmp 0x140013101
mov edx, ebp
sub edx, ecx
call fcn.1400129e0
mov rbx, rax
mov qword [rsp + 0x2c8], rax
test r12, r12
je 0x1400130d4
mov rdi, qword [r12 + 8]
mov r9, rdi
mov rdx, qword [rdi + 8]
cmp byte [rdx + 0x29], 0
jne 0x140012f3e
nop
nop
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x140012f20
test rbx, rbx
je 0x140012f32
mov r8, rbx
sub r8, rax
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140012f19
add rax, 1
test cl, cl
jne 0x140012f04
xor eax, eax
jmp 0x140012f28
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x140012f28
mov rax, rbx
neg rax
sbb eax, eax
test eax, eax
jns 0x140012f32
mov rdx, qword [rdx + 0x10]
jmp 0x140012f38
mov r9, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x29], 0
je 0x140012ef0
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r12
cmp r9, rdi
je 0x140012f8c
mov rdx, qword [r9 + 0x18]
test rbx, rbx
je 0x140012f7c
test rdx, rdx
je 0x140012f85
mov rax, rbx
sub rdx, rbx
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x140012f75
add rax, 1
test cl, cl
jne 0x140012f61
xor eax, eax
jmp 0x140012f81
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x140012f81
neg rdx
sbb eax, eax
test eax, eax
js 0x140012f8c
lea rcx, [rsp + 0x50]
jmp 0x140012f9b
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140012fbd
cmp rax, r12
je 0x140012fc2
call fcn.1400356b0
cmp qword [rsp + 0x38], rdi
je 0x1400130d4
mov r9, qword [r12 + 8]
mov rdx, qword [r9 + 8]
cmp byte [rdx + 0x29], 0
jne 0x14001302e
nop
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x140013010
test rbx, rbx
je 0x140013022
mov r8, rbx
sub r8, rax
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140013009
add rax, 1
test cl, cl
jne 0x140012ff4
xor eax, eax
jmp 0x140013018
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x140013018
mov rax, rbx
neg rax
sbb eax, eax
test eax, eax
jns 0x140013022
mov rdx, qword [rdx + 0x10]
jmp 0x140013028
mov r9, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x29], 0
je 0x140012fe0
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r12
mov r8, qword [r12 + 8]
cmp r9, r8
je 0x140013081
mov rdx, qword [r9 + 0x18]
test rbx, rbx
je 0x140013071
test rdx, rdx
je 0x14001307a
mov rax, rbx
sub rdx, rbx
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x14001306a
add rax, 1
test cl, cl
jne 0x140013056
xor eax, eax
jmp 0x140013076
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x140013076
neg rdx
sbb eax, eax
test eax, eax
js 0x140013081
lea rcx, [rsp + 0x20]
jmp 0x140013090
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], r12
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rsi, qword [rsp + 0x40]
test rsi, rsi
jne 0x1400130b2
call fcn.1400356b0
mov rdi, qword [rsp + 0x48]
cmp rdi, qword [rsi + 8]
jne 0x1400130c2
call fcn.1400356b0
or r8d, 0xffffffff
mov rdx, qword [rdi + 0x20]
mov rcx, r13
call fcn.1400134b0
jmp 0x1400130f9
mov rcx, rbx
call fcn.140038090
test rax, rax
je 0x140013126
mov rcx, rbx
call fcn.140038090
or r8d, 0xffffffff
mov rdx, rax
mov rcx, r13
call fcn.1400134b0
nop
mov rcx, rbx
call fcn.1400361f0
cmp byte [rbp], 0x7d
jne 0x14001310b
add rbp, 1
mov edx, 0x24
mov rcx, rbp
call fcn.140038160
mov rbx, rax
test rax, rax
jne 0x140012e40
jmp 0x14001316d
mov r9, rbx
lea r8, str.unknown_environment_variable:__s
mov edx, 1
lea rcx, [rsp + 0x188]
call fcn.14000c2d0
lea rcx, [rsp + 0x88]
mov rdx, rax
mov r8d, 0x100
call fcn.1400374a0
lea rdx, [0x14007a7a8]
lea rcx, [rsp + 0x88]
call fcn.140035840
nop
or r8d, 0xffffffff
mov rdx, rbp
mov rcx, r13
call fcn.1400134b0
nop
mov rax, r13
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret