Function at 0x1400699e4
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2ff0]
mov eax, 0x30f0
call fcn.1400ec1b0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x3140], rbx
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rbp + 0x2fe0], rax
mov dil, r9b
mov qword [rbp - 0x68], rdx
xor ebx, ebx
mov word [rbp + 0xfe0], bx
mov eax, 0x800
lea r13d, [rbx + 1]
test rcx, rcx
je 0x140069a70
test r8b, r8b
mov r8d, eax
je 0x140069a61
mov byte [rsp + 0x20], bl
mov r9b, r13b
lea rdx, [rbp + 0xfe0]
call fcn.14007809c
jmp 0x140069a70
mov rdx, rcx
lea rcx, [rbp + 0xfe0]
call fcn.14008c7ec
lea rcx, [rbp - 0x50]
call fcn.140067424
nop
cmp word [rbp + 0xfe0], bx
je 0x140069ac5
lea rdx, [rbp + 0xfe0]
lea rcx, [rbp - 0x50]
test dil, dil
je 0x140069a9a
call fcn.140067fdc
jmp 0x140069aa2
xor r8d, r8d
call fcn.1400679d4
test al, al
jne 0x140069ac9
test dil, dil
je 0x140069ef0
mov edx, 6
lea rcx, [0x140179130]
call fcn.140062abc
jmp 0x140069ef0
mov dword [rbp - 0x3c], r13d
mov edi, ebx
mov r14d, 0x1000
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.140003dd8
nop
mov rsi, qword [rsp + 0x68]
mov rdx, rsi
jmp 0x140069b01
add edi, eax
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140003f4c
mov edx, edi
mov rsi, qword [rsp + 0x68]
add rdx, rsi
mov r8, r14
lea rcx, [rbp - 0x50]
call fcn.140067c38
test eax, eax
jne 0x140069ae9
mov r15d, edi
cmp r15, qword [rsp + 0x78]
jbe 0x140069b39
mov edx, r15d
sub rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x68]
call fcn.140003f4c
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
jmp 0x140069b41
mov r14, r15
mov qword [rsp + 0x70], r15
cmp edi, 2
jb 0x140069b54
cmp byte [rsi], 0xff
jne 0x140069b54
cmp byte [rsi + 1], 0xfe
mov eax, r13d
je 0x140069b56
mov eax, ebx
mov dword [rsp + 0x34], eax
cmp edi, 2
jb 0x140069b6d
cmp byte [rsi], 0xfe
jne 0x140069b6d
cmp byte [rsi + 1], 0xff
mov ecx, r13d
je 0x140069b6f
mov ecx, ebx
mov dword [rsp + 0x38], ecx
cmp edi, 3
jb 0x140069b93
cmp byte [rsi], 0xef
jne 0x140069b93
cmp byte [rsi + 1], 0xbb
jne 0x140069b93
cmp byte [rsi + 2], 0xbf
jne 0x140069b93
mov r8b, r13b
mov byte [rsp + 0x30], r13b
jmp 0x140069b9a
mov r8b, bl
mov byte [rsp + 0x30], bl
mov r12d, dword [rbp + 0x3050]
test r12d, r12d
jne 0x140069c14
test eax, eax
jne 0x140069bae
test ecx, ecx
je 0x140069be5
cmp edi, 2
jbe 0x140069be5
lea rcx, [rsi + 2]
mov rdx, rsi
neg rdx
cmp byte [rcx], 0x1f
ja 0x140069bd1
movzx eax, byte [rcx]
mov r9d, 0xffffdbff
bt r9d, eax
jb 0x140069bdf
add rcx, r13
lea rax, [rdx + rcx]
cmp rax, r15
jae 0x140069be5
jmp 0x140069bbd
mov r12d, 3
test r8b, r8b
je 0x140069c14
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140051724
mov rsi, qword [rsp + 0x68]
lea rcx, [rsi + 3]
call fcn.14008f38c
test al, al
mov eax, 4
cmovne r12d, eax
mov r14, qword [rsp + 0x70]
mov rdi, rbx
mov qword [rsp + 0x40], rbx
mov r15, rbx
mov qword [rsp + 0x48], rbx
mov r13, rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x60], bl
cmp r12d, 2
ja 0x140069c9c
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140051724
mov rsi, qword [rsp + 0x68]
cmp r12d, 2
jne 0x140069c5e
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_OemToCharA]
mov r14, qword [rsp + 0x70]
test r14, r14
je 0x140069c86
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14000df44
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x140069c8e
mov r15, r14
mov qword [rsp + 0x48], r14
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14008f2c8
cmp r12d, 3
jne 0x140069d66
mov qword [rbp - 0x70], 2
cmp dword [rsp + 0x34], ebx
jne 0x140069cc6
cmp dword [rsp + 0x38], ebx
jne 0x140069cc6
mov qword [rbp - 0x70], rbx
mov dword [rsp + 0x34], 1
mov rax, r14
shr rax, 1
inc rax
cmp rax, r13
jbe 0x140069cf5
sub rax, r15
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000df44
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x140069cfd
mov r15, rax
mov qword [rsp + 0x48], rax
and r14, 0xfffffffffffffffe
mov r8, qword [rbp - 0x70]
cmp r8, r14
jae 0x140069d5b
mov ecx, dword [rsp + 0x38]
lea r10, [rcx + rsi]
add r10, r8
mov r11d, dword [rsp + 0x34]
sub r11, rcx
mov rsi, r10
neg rsi
mov r9, r14
sub r9, r8
dec r9
shr r9, 1
inc r9
movzx edx, byte [r11 + r10]
mov ecx, 0x100
imul edx, ecx
movzx eax, byte [r10]
add dx, ax
lea rax, [rsi + r10]
shr rax, 1
mov word [rdi + rax*2], dx
lea r10, [r10 + 2]
sub r9, 1
jne 0x140069d32
sub r14, r8
shr r14, 1
mov word [rdi + r14*2], bx
mov eax, 4
cmp r12d, eax
jne 0x140069dbe
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140051724
mov r8, qword [rsp + 0x70]
cmp r8, r13
jbe 0x140069da2
sub r8, r15
mov rdx, r8
lea rcx, [rsp + 0x40]
call fcn.14000df44
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x140069da7
mov qword [rsp + 0x48], r8
neg byte [rsp + 0x30]
sbb rcx, rcx
and ecx, 3
add rcx, qword [rsp + 0x68]
mov rdx, rdi
call fcn.14008f3e8
cmp word [rdi], bx
je 0x140069ed9
mov r15, qword [rbp - 0x68]
mov rsi, rdi
mov rcx, rbx
cmp word [rdi], 0xd
je 0x140069e07
cmp word [rsi], 0xa
je 0x140069e07
cmp word [rsi], bx
je 0x140069e07
cmp byte [rbp + 0x3060], bl
je 0x140069dfd
cmp word [rsi], 0x2f
jne 0x140069dfd
cmp word [rsi + 2], 0x2f
jne 0x140069dfd
mov word [rsi], bx
mov rcx, rsi
add rsi, 2
cmp word [rsi], 0xd
jne 0x140069dd7
movzx r14d, word [rsi]
mov word [rsi], bx
mov rax, rsi
test rcx, rcx
cmovne rax, rcx
jmp 0x140069e29
cmp word [rax], 0x20
je 0x140069e26
cmp word [rax], 9
jne 0x140069e32
mov word [rax], bx
sub rax, 2
cmp rax, rdi
jae 0x140069e1a
cmp byte [rbp + 0x3058], bl
je 0x140069e5e
cmp word [rdi], 0x22
jne 0x140069e5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x140069e44
cmp word [rdi + rax*2 - 2], 0x22
jne 0x140069e5e
mov word [rdi + rax*2 - 2], bx
add rdi, 2
cmp byte [rbp + 0x3068], bl
je 0x140069ea4
cmp word [rdi], 0x25
jne 0x140069ea4
mov word [rbp + 0x1fe0], bx
mov r8d, 0x800
lea rdx, [rbp + 0x1fe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x140069ea4
cmp word [rbp + 0x1fe0], bx
je 0x140069eb4
lea rdx, [rbp + 0x1fe0]
jmp 0x140069eac
cmp word [rdi], bx
je 0x140069eb4
mov rdx, rdi
mov rcx, r15
call fcn.14008c86c
test r14w, r14w
je 0x140069ed9
lea rdi, [rsi + 2]
cmp word [rdi], 0xd
je 0x140069eca
cmp word [rdi], 0xa
jne 0x140069ed0
add rdi, 2
jmp 0x140069ebe
cmp word [rdi], bx
jne 0x140069dcb
lea rcx, [rsp + 0x40]
call fcn.140003ee0
nop
lea rcx, [rsp + 0x68]
call fcn.140003ea4
mov bl, 1
lea rcx, [rbp - 0x50]
call fcn.140067460
mov al, bl
mov rcx, qword [rbp + 0x2fe0]
xor rcx, rsp
call fcn.1400ec220
mov rbx, qword [rsp + 0x3140]
add rsp, 0x30f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret