Function at 0x1400024ac
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30e0
call fcn.14001b9f0
sub rsp, rax
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x3130], rbx
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x30d0], rax
mov bl, r9b
mov qword [rsp + 0x30], rdx
xor edi, edi
mov word [rsp + 0x10d0], di
mov eax, 0x800
cmp rcx, rdi
je 0x140002539
cmp r8b, dil
je 0x140002526
mov byte [rsp + 0x20], dil
mov r9b, 1
mov r8, rax
lea rdx, [rsp + 0x10d0]
call fcn.140005c38
jmp 0x140002539
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x10d0]
call fcn.140008534
lea rcx, [rsp + 0xa0]
call fcn.1400015d0
nop
cmp word [rsp + 0x10d0], di
je 0x1400025a6
cmp bl, dil
je 0x14000256d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xa0]
call fcn.140001798
jmp 0x140002585
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xa0]
call fcn.140001614
cmp al, dil
jne 0x1400025b1
cmp bl, dil
je 0x1400025a1
mov edx, 6
lea rcx, [0x140027bc0]
call fcn.140001454
nop
jmp 0x1400029ed
mov dword [rsp + 0xb4], 1
mov ebx, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov edx, 0x1005
lea rcx, [rsp + 0x38]
call fcn.140001c18
nop
mov esi, 0x1000
mov r8, rsi
mov r12, qword [rsp + 0x38]
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.140001e5c
cmp eax, edi
je 0x140002624
add ebx, eax
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140001c18
mov edx, ebx
mov r12, qword [rsp + 0x38]
add rdx, r12
mov r8, rsi
lea rcx, [rsp + 0xa0]
call fcn.140001e5c
cmp eax, edi
jne 0x1400025f8
mov ecx, ebx
add rcx, r12
xor edx, edx
lea r8d, [rdx + 5]
call fcn.14000b1a0
mov r15, rdi
mov qword [rsp + 0x58], rdi
mov r13, rdi
mov qword [rsp + 0x60], rdi
mov r14, rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov ebp, dword [rsp + 0x3140]
cmp ebp, 3
je 0x140002811
cmp ebp, edi
jne 0x1400026a2
cmp ebx, 4
jl 0x1400026a2
cmp byte [r12], 0xff
jne 0x1400026a2
cmp byte [r12 + 1], 0xfe
jne 0x1400026a2
mov edx, 2
cmp ebx, edx
jle 0x1400026a2
lea rcx, [r12 + 2]
mov al, byte [rcx]
cmp al, 0x20
jae 0x140002699
cmp al, 0xd
je 0x140002699
cmp al, 0xa
jne 0x140002811
inc edx
inc rcx
cmp edx, ebx
jl 0x140002687
mov rbx, r12
cmp byte [r12], dil
je 0x1400029ce
mov r12, qword [rsp + 0x30]
mov rsi, rbx
mov rcx, rdi
cmp byte [rbx], 0xd
je 0x1400026ec
cmp byte [rsi], 0xa
je 0x1400026ec
cmp byte [rsi], dil
je 0x1400026ec
cmp byte [rsp + 0x3150], dil
je 0x1400026e4
cmp byte [rsi], 0x2f
jne 0x1400026e4
cmp byte [rsi + 1], 0x2f
jne 0x1400026e4
mov byte [rsi], dil
mov rcx, rsi
inc rsi
cmp byte [rsi], 0xd
jne 0x1400026bf
mov byte [rsi], dil
mov rax, rsi
cmp rcx, rdi
cmovne rax, rcx
dec rax
cmp rax, rbx
jb 0x140002716
cmp byte [rax], 0x20
je 0x14000270b
cmp byte [rax], 9
jne 0x140002716
mov byte [rax], dil
dec rax
cmp rax, rbx
jae 0x140002701
cmp byte [rbx], dil
je 0x1400027eb
cmp byte [rsp + 0x3148], dil
je 0x140002745
cmp byte [rbx], 0x22
jne 0x140002745
mov rcx, rbx
call fcn.14000b0e0
cmp byte [rax + rbx - 1], 0x22
jne 0x140002745
mov byte [rax + rbx - 1], dil
inc rbx
cmp ebp, 2
jne 0x140002756
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.USER32.dll_OemToCharA]
mov rcx, rbx
call fcn.14000b0e0
inc rax
cmp rax, r14
jbe 0x140002787
sub rax, r13
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000240c
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
jmp 0x14000278f
mov r13, rax
mov qword [rsp + 0x60], rax
mov r8, r13
mov rdx, r15
mov rcx, rbx
call fcn.1400088bc
cmp byte [rsp + 0x3158], dil
je 0x1400027e0
cmp byte [rbx], 0x25
jne 0x1400027e0
mov r8d, 0x800
lea rdx, [rsp + 0x20d0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x1400027e0
cmp eax, 0x800
jae 0x1400027e0
lea rdx, [rsp + 0x20d0]
mov rcx, r12
call fcn.1400086c4
jmp 0x1400027eb
mov rdx, r15
mov rcx, r12
call fcn.1400086c4
lea rbx, [rsi + 1]
cmp byte [rbx], 0xd
je 0x1400027f9
cmp byte [rbx], 0xa
jne 0x1400027fe
inc rbx
jmp 0x1400027ef
cmp byte [rbx], dil
jne 0x1400026b4
mov r12, qword [rsp + 0x38]
jmp 0x1400029ce
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rdi
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
shr rdx, 1
inc rdx
lea rcx, [rsp + 0x78]
call fcn.14000240c
nop
lea rdx, [rbx - 1]
mov rbp, qword [rsp + 0x78]
cmp rdx, 2
jbe 0x14000289a
lea r8, [r12 + 2]
mov r9, 0xfffffffffffffffe
sub r9, r12
add rdx, 0xfffffffffffffffd
shr rdx, 1
inc rdx
movzx ecx, byte [r8 + 1]
mov eax, 0x100
imul cx, ax
movzx eax, byte [r8]
add cx, ax
lea rax, [r9 + r8]
shr rax, 1
mov word [rbp + rax*2], cx
add r8, 2
sub rdx, 1
jne 0x14000286f
mov rbx, rbp
cmp word [rbp], di
je 0x1400029c5
mov r12, qword [rsp + 0x30]
mov rsi, rbx
mov rcx, rdi
cmp word [rbx], 0xd
je 0x1400028ea
cmp word [rsi], 0xa
je 0x1400028ea
cmp word [rsi], di
je 0x1400028ea
cmp byte [rsp + 0x3150], dil
je 0x1400028e0
cmp word [rsi], 0x2f
jne 0x1400028e0
cmp word [rsi + 2], 0x2f
jne 0x1400028e0
mov word [rsi], di
mov rcx, rsi
add rsi, 2
cmp word [rsi], 0xd
jne 0x1400028b8
mov word [rsi], di
mov rax, rsi
cmp rcx, rdi
cmovne rax, rcx
sub rax, 2
cmp rax, rbx
jb 0x140002918
cmp word [rax], 0x20
je 0x14000290c
cmp word [rax], 9
jne 0x140002918
mov word [rax], di
sub rax, 2
cmp rax, rbx
jae 0x140002900
cmp word [rbx], di
je 0x1400029a1
mov rcx, rbx
call fcn.14000b0b0
cmp byte [rsp + 0x3148], dil
je 0x14000294a
cmp word [rbx], 0x22
jne 0x14000294a
cmp word [rbx + rax*2 - 2], 0x22
jne 0x14000294a
mov word [rbx + rax*2 - 2], di
add rbx, 2
cmp byte [rsp + 0x3158], dil
je 0x140002996
cmp word [rbx], 0x25
jne 0x140002996
mov word [rsp + 0x20d0], di
mov r8d, 0x800
lea rdx, [rsp + 0x20d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x140002996
cmp eax, 0x800
jae 0x140002996
lea rdx, [rsp + 0x20d0]
mov rcx, r12
call fcn.1400086c4
jmp 0x1400029a1
mov rdx, rbx
mov rcx, r12
call fcn.1400086c4
lea rbx, [rsi + 2]
cmp word [rbx], 0xd
je 0x1400029b1
cmp word [rbx], 0xa
jne 0x1400029b7
add rbx, 2
jmp 0x1400029a5
cmp word [rbx], di
jne 0x1400028ac
mov r12, qword [rsp + 0x38]
mov rcx, rbp
call fcn.14000a70c
nop
cmp r15, rdi
je 0x1400029dc
mov rcx, r15
call fcn.14000a70c
nop
cmp r12, rdi
je 0x1400029ea
mov rcx, r12
call fcn.14000a70c
nop
mov dil, 1
lea rcx, [rsp + 0xa0]
call fcn.140001cc8
mov al, dil
mov rcx, qword [rsp + 0x30d0]
xor rcx, rsp
call fcn.14000a670
mov rbx, qword [rsp + 0x3130]
add rsp, 0x30e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret