Function at 0x140025460
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x508
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x480], 0xfffffffffffffffe
mov qword [rbp + 0x410], rcx
mov qword [rbp + 0x418], rdx
mov qword [rbp + 0x428], r8
lock inc qword [0x14003bb60]
jle 0x1400261ec
mov eax, dword [0x14003bbe0]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
cmp byte [rax + 0x30], 0
jne 0x14002626f
mov r14d, r9d
mov eax, dword [0x14003bbe0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x28]
mov byte [rax + 0x30], 1
mov eax, dword [0x14003bb40]
cmp eax, 0x3ffffffd
ja 0x140025507
lea ecx, [rax + 1]
lock cmpxchg dword [0x14003bb40], ecx
je 0x14002550c
call fcn.140036a50
movzx ebx, byte [rbp + 0x4f0]
movzx eax, byte [0x14003bb48]
cmp qword [0x14003bb50], 0
jne 0x14002561a
mov rsi, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x410]
mov rax, qword [rbp + 0x418]
call qword [rax + 0x28]
mov r15, rax
mov qword [rbp + 0x3b8], rdx
mov qword [rbp + 0x460], rsi
mov dil, 3
test bl, bl
jne 0x14002558c
mov eax, dword [0x14003bbe0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov dil, 1
cmp qword [rax + 0x28], 1
ja 0x14002558c
movzx edi, byte [0x14003bb38]
dec dil
cmp dil, 3
jae 0x1400256ec
mov rsi, qword [rbp + 0x428]
mov rcx, qword [rbp + 0x410]
mov rax, qword [rbp + 0x418]
call qword [rax + 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x38], r14b
mov byte [rbp - 0x37], bl
mov rcx, qword [0x14003bb50]
mov rax, qword [0x14003bb58]
lea rdx, [rbp - 0x50]
call qword [rax + 0x28]
movzx eax, byte [0x14003baf0]
mov edx, 0x1e
xor ecx, ecx
call fcn.1400232b0
test rax, rax
jne 0x1400259aa
mov ecx, 2
mov edx, 0x1e
call fcn.140035ac0
jmp 0x14002577c
mov qword [rbp + 0x450], r15
mov byte [rbp + 0x47f], r14b
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 0
xor r15d, r15d
lea rsi, [0x140003a15]
mov rbx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
xor r14d, r14d
xor r12d, r12d
jmp 0x1400259ff
mov word [rax + r15*2], r12w
inc r15
mov qword [rbp - 0x40], r15
mov r12d, r13d
test r12w, r12w
jne 0x140025a90
cmp r14, 0xe
je 0x140025b68
movzx edx, byte [r14 + rsi]
movzx r12d, dl
test r12b, r12b
js 0x140025a26
inc r14
jmp 0x140025a90
mov ecx, r12d
and ecx, 0x1f
movzx r8d, byte [r14 + rsi + 1]
and r8d, 0x3f
cmp r12b, 0xdf
jbe 0x140025a80
movzx r12d, byte [r14 + rsi + 2]
shl r8d, 6
and r12d, 0x3f
or r12d, r8d
cmp dl, 0xf0
jb 0x140025ae2
movzx edx, byte [r14 + rsi + 3]
add r14, 4
and ecx, 7
shl ecx, 0x12
shl r12d, 6
and edx, 0x3f
or edx, r12d
or edx, ecx
mov r12d, edx
cmp r12d, 0xffff
jbe 0x140025a90
jmp 0x140025af5
add r14, 2
shl ecx, 6
or ecx, r8d
mov r12d, ecx
nop dword [rax]
xor r13d, r13d
cmp r15, qword [rbp - 0x50]
jne 0x1400259f0
mov r8d, 0xe
sub r8, r14
add r8, 3
cmovb r8, rbx
shr r8, 2
cmp r13w, 1
sbb r8, 0
add r8, 2
mov qword [rsp + 0x20], 2
mov r9d, 2
mov rcx, rdi
mov rdx, r15
call fcn.140036650
mov rax, qword [rbp - 0x48]
jmp 0x1400259f0
add r14, 3
shl ecx, 0xc
or r12d, ecx
cmp r12d, 0xffff
jbe 0x140025a90
lea ecx, [r12 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov r13d, r12d
mov r12d, ecx
cmp r15, qword [rbp - 0x50]
jne 0x1400259f0
jmp 0x140025a9d
mov rcx, qword [rbp - 0x48]
mov rax, r15
mov r8, rcx
cmp r15, 8
jb 0x140025bcd
mov r8, rcx
mov rax, r15
nop
mov dword [rbp + 0x430], 0
mov byte [rbp + 0x434], 0
lea rax, [rbp + 0x428]
mov qword [rbp + 0x3e0], rax
lea rax, [0x1400252a0]
mov qword [rbp + 0x3e8], rax
lea rax, [rbp + 0x410]
mov qword [rbp + 0x3f0], rax
lea rax, [0x140014310]
mov qword [rbp + 0x3f8], rax
lea rax, [0x1400041f0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x30], 0
lea rax, [rbp + 0x3e0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rcx, [rbp + 0x430]
jmp 0x14002630e
call qword [rdx + 0x30]
test rax, rax
mov ecx, 1
cmovne rcx, rax
cmove rdx, rax
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x438], rdx
mov dword [rbp + 0x3c0], 0
mov byte [rbp + 0x3c4], 0
lea rax, [rbp + 0x428]
mov qword [rbp + 0x3e0], rax
lea rax, [0x1400252a0]
mov qword [rbp + 0x3e8], rax
lea rax, [rbp + 0x430]
mov qword [rbp + 0x3f0], rax
lea rax, [0x14001fa60]
mov qword [rbp + 0x3f8], rax
lea rax, [0x140004258]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 3
mov qword [rbp - 0x30], 0
lea rax, [rbp + 0x3e0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rcx, [rbp + 0x3c0]
lea rdx, [rbp - 0x50]
call fcn.14001de70
test rax, rax
je 0x140026324
mov rcx, rax
call fcn.14001dff0
mov ecx, 7
int 0x29
ud2