Function at 0x1400024bc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov qword [rbp - 0x18], rcx
mov esi, r14d
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x10], r14
mov r12d, r14d
mov qword [rbp - 0x30], r14
or rbx, 0xffffffffffffffff
mov r13, rdx
inc rbx
cmp word [rdx + rbx*2], r14w
jne 0x140002501
inc rbx
mov eax, 0xffffffff
cmp rbx, rax
ja 0x1400026e5
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.140006f1c
mov edi, eax
mov r15d, 0x4000000
test eax, eax
js 0x140002582
mov r14, qword [rbp - 0x30]
mov r8d, ebx
mov rdx, r14
mov rcx, r13
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
je 0x1400025d1
cmp r12d, ebx
jbe 0x1400025c9
test r14, r14
je 0x14000256a
lea rcx, [r14 - 8]
call fcn.14001b594
and qword [rbp - 0x30], rsi
mov rdx, r12
lea rcx, [rbp - 0x30]
mov ebx, r12d
call fcn.140006f1c
mov edi, eax
test eax, eax
jns 0x140002533
mov r12, rsi
lea r9, str.Failed_to_allocate_memory_for_expand_string:__S
mov qword [rsp + 0x20], r13
mov r8d, 1
mov edx, edi
mov ecx, r15d
call fcn.140006a50
mov r14, qword [rbp - 0x30]
test r14, r14
je 0x1400025b0
lea rcx, [r14 - 8]
call fcn.14001b594
xor r14d, r14d
mov ebx, edi
test edi, edi
js 0x140002709
mov edi, 0x104
mov edx, edi
jmp 0x140002653
mov r12, r14
xor r14d, r14d
jmp 0x1400025a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r9, [0x14001e450]
mov qword [rsp + 0x20], r13
movzx edi, ax
mov r8d, 1
or edi, 0x80070000
mov ecx, r15d
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov edx, edi
call fcn.140006a50
mov r12, rsi
jmp 0x1400025a2
mov rsi, qword [rbp - 0x28]
lea r9, [rbp - 0x10]
mov r8, rsi
mov edx, edi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400026a8
cmp ebx, edi
jbe 0x140002682
mov edi, ebx
test rsi, rsi
je 0x140002650
lea rcx, [rsi - 8]
call fcn.14001b594
mov qword [rbp - 0x28], r14
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140006f1c
mov ebx, eax
test eax, eax
jns 0x140002616
lea r9, str.Failed_allocating_buffer_for_path_expansion
mov r8d, 1
mov edx, eax
mov ecx, r15d
call fcn.140006a50
mov rsi, qword [rbp - 0x28]
jmp 0x140002725
mov rcx, qword [rbp - 0x18]
mov rdx, rsi
call fcn.140007794
mov ebx, eax
test eax, eax
jns 0x140002725
mov qword [rsp + 0x20], rsi
lea r9, str.Failed_allocating_memory_for_full_directory_path__S
mov edx, eax
jmp 0x140002717
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
lea r9, str.Failed_getting_the_full_path_name
or ebx, 0x80070000
mov r8d, 1
test eax, eax
mov ecx, r15d
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov edx, ebx
call fcn.140006a50
jmp 0x140002725
mov edi, 0x80070216
lea r9, str.Failed_to_convert_from_size_t_to_DWORD
mov r15d, 0x4000000
mov edx, edi
mov ecx, r15d
mov r8d, 1
call fcn.140006a50
mov ebx, edi
mov qword [rsp + 0x20], r13
lea r9, [0x14001e450]
mov edx, edi
mov r8d, 1
mov ecx, r15d
call fcn.140006a50
test r12, r12
je 0x140002734
lea rcx, [r12 - 8]
call fcn.14001b594
test rsi, rsi
je 0x140002742
lea rcx, [rsi - 8]
call fcn.14001b594
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001b900
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret