Function at 0x1400024c4
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30e0
call fcn.14001ba30
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 0x140002551
cmp r8b, dil
je 0x14000253e
mov byte [rsp + 0x20], dil
mov r9b, 1
mov r8, rax
lea rdx, [rsp + 0x10d0]
call fcn.140005b6c
jmp 0x140002551
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x10d0]
call fcn.140008444
lea rcx, [rsp + 0xa0]
call fcn.1400015d0
nop
cmp word [rsp + 0x10d0], di
je 0x1400025be
cmp bl, dil
je 0x140002585
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xa0]
call fcn.140001798
jmp 0x14000259d
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xa0]
call fcn.140001614
cmp al, dil
jne 0x1400025c9
cmp bl, dil
je 0x1400025b9
mov edx, 6
lea rcx, [0x140027bc0]
call fcn.140001454
nop
jmp 0x140002a05
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.140001c30
nop
mov esi, 0x1000
mov r8, rsi
mov r12, qword [rsp + 0x38]
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.140001e74
cmp eax, edi
je 0x14000263c
add ebx, eax
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140001c30
mov edx, ebx
mov r12, qword [rsp + 0x38]
add rdx, r12
mov r8, rsi
lea rcx, [rsp + 0xa0]
call fcn.140001e74
cmp eax, edi
jne 0x140002610
mov ecx, ebx
add rcx, r12
xor edx, edx
lea r8d, [rdx + 5]
call fcn.14000b1e0
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 0x140002829
cmp ebp, edi
jne 0x1400026ba
cmp ebx, 4
jl 0x1400026ba
cmp byte [r12], 0xff
jne 0x1400026ba
cmp byte [r12 + 1], 0xfe
jne 0x1400026ba
mov edx, 2
cmp ebx, edx
jle 0x1400026ba
lea rcx, [r12 + 2]
mov al, byte [rcx]
cmp al, 0x20
jae 0x1400026b1
cmp al, 0xd
je 0x1400026b1
cmp al, 0xa
jne 0x140002829
inc edx
inc rcx
cmp edx, ebx
jl 0x14000269f
mov rbx, r12
cmp byte [r12], dil
je 0x1400029e6
mov r12, qword [rsp + 0x30]
mov rsi, rbx
mov rcx, rdi
cmp byte [rbx], 0xd
je 0x140002704
cmp byte [rsi], 0xa
je 0x140002704
cmp byte [rsi], dil
je 0x140002704
cmp byte [rsp + 0x3150], dil
je 0x1400026fc
cmp byte [rsi], 0x2f
jne 0x1400026fc
cmp byte [rsi + 1], 0x2f
jne 0x1400026fc
mov byte [rsi], dil
mov rcx, rsi
inc rsi
cmp byte [rsi], 0xd
jne 0x1400026d7
mov byte [rsi], dil
mov rax, rsi
cmp rcx, rdi
cmovne rax, rcx
dec rax
cmp rax, rbx
jb 0x14000272e
cmp byte [rax], 0x20
je 0x140002723
cmp byte [rax], 9
jne 0x14000272e
mov byte [rax], dil
dec rax
cmp rax, rbx
jae 0x140002719
cmp byte [rbx], dil
je 0x140002803
cmp byte [rsp + 0x3148], dil
je 0x14000275d
cmp byte [rbx], 0x22
jne 0x14000275d
mov rcx, rbx
call fcn.14000b120
cmp byte [rax + rbx - 1], 0x22
jne 0x14000275d
mov byte [rax + rbx - 1], dil
inc rbx
cmp ebp, 2
jne 0x14000276e
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.USER32.dll_OemToCharA]
mov rcx, rbx
call fcn.14000b120
inc rax
cmp rax, r14
jbe 0x14000279f
sub rax, r13
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002424
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
jmp 0x1400027a7
mov r13, rax
mov qword [rsp + 0x60], rax
mov r8, r13
mov rdx, r15
mov rcx, rbx
call fcn.1400088c0
cmp byte [rsp + 0x3158], dil
je 0x1400027f8
cmp byte [rbx], 0x25
jne 0x1400027f8
mov r8d, 0x800
lea rdx, [rsp + 0x20d0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x1400027f8
cmp eax, 0x800
jae 0x1400027f8
lea rdx, [rsp + 0x20d0]
mov rcx, r12
call fcn.14000860c
jmp 0x140002803
mov rdx, r15
mov rcx, r12
call fcn.14000860c
lea rbx, [rsi + 1]
cmp byte [rbx], 0xd
je 0x140002811
cmp byte [rbx], 0xa
jne 0x140002816
inc rbx
jmp 0x140002807
cmp byte [rbx], dil
jne 0x1400026cc
mov r12, qword [rsp + 0x38]
jmp 0x1400029e6
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.140002424
nop
lea rdx, [rbx - 1]
mov rbp, qword [rsp + 0x78]
cmp rdx, 2
jbe 0x1400028b2
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 0x140002887
mov rbx, rbp
cmp word [rbp], di
je 0x1400029dd
mov r12, qword [rsp + 0x30]
mov rsi, rbx
mov rcx, rdi
cmp word [rbx], 0xd
je 0x140002902
cmp word [rsi], 0xa
je 0x140002902
cmp word [rsi], di
je 0x140002902
cmp byte [rsp + 0x3150], dil
je 0x1400028f8
cmp word [rsi], 0x2f
jne 0x1400028f8
cmp word [rsi + 2], 0x2f
jne 0x1400028f8
mov word [rsi], di
mov rcx, rsi
add rsi, 2
cmp word [rsi], 0xd
jne 0x1400028d0
mov word [rsi], di
mov rax, rsi
cmp rcx, rdi
cmovne rax, rcx
sub rax, 2
cmp rax, rbx
jb 0x140002930
cmp word [rax], 0x20
je 0x140002924
cmp word [rax], 9
jne 0x140002930
mov word [rax], di
sub rax, 2
cmp rax, rbx
jae 0x140002918
cmp word [rbx], di
je 0x1400029b9
mov rcx, rbx
call fcn.14000b0f0
cmp byte [rsp + 0x3148], dil
je 0x140002962
cmp word [rbx], 0x22
jne 0x140002962
cmp word [rbx + rax*2 - 2], 0x22
jne 0x140002962
mov word [rbx + rax*2 - 2], di
add rbx, 2
cmp byte [rsp + 0x3158], dil
je 0x1400029ae
cmp word [rbx], 0x25
jne 0x1400029ae
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 0x1400029ae
cmp eax, 0x800
jae 0x1400029ae
lea rdx, [rsp + 0x20d0]
mov rcx, r12
call fcn.14000860c
jmp 0x1400029b9
mov rdx, rbx
mov rcx, r12
call fcn.14000860c
lea rbx, [rsi + 2]
cmp word [rbx], 0xd
je 0x1400029c9
cmp word [rbx], 0xa
jne 0x1400029cf
add rbx, 2
jmp 0x1400029bd
cmp word [rbx], di
jne 0x1400028c4
mov r12, qword [rsp + 0x38]
mov rcx, rbp
call fcn.14000a74c
nop
cmp r15, rdi
je 0x1400029f4
mov rcx, r15
call fcn.14000a74c
nop
cmp r12, rdi
je 0x140002a02
mov rcx, r12
call fcn.14000a74c
nop
mov dil, 1
lea rcx, [rsp + 0xa0]
call fcn.140001ce0
mov al, dil
mov rcx, qword [rsp + 0x30d0]
xor rcx, rsp
call fcn.14000a6b0
mov rbx, qword [rsp + 0x3130]
add rsp, 0x30e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret