Function at 0x1400aa020
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
lea rbx, [rsp + 0x78]
mov rcx, rbx
call fcn.1400b16d0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x80]
cmp qword [rsp + 0x78], 1
je 0x1400aa2b4
xor esi, esi
mov r8d, 0x400
mov rcx, rbx
xor edx, edx
call fcn.1400df620
mov rbx, qword [reloc.WS2_32.dll_bind]
mov r13d, 0x200
xor r14d, r14d
cmp r13, 0x201
jae 0x1400aa0b9
jmp 0x1400aa160
cmp r13, rbp
mov r13, rbp
ja 0x1400aa1bd
cmp r13, 0x201
jb 0x1400aa160
mov rax, r13
sub rax, r14
mov rcx, rsi
sub rcx, r14
cmp rcx, rax
jae 0x1400aa146
add r14, rax
jb 0x1400aa2a0
lea rax, [rsi + rsi]
cmp rax, r14
cmova r14, rax
cmp r14, 4
mov ecx, 4
cmovbe r14, rcx
xor r8d, r8d
add r14, r14
setae r8b
add r8, r8
test rsi, rsi
je 0x1400aa112
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
jmp 0x1400aa11b
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x48]
mov rdx, r14
lea r9, [rsp + 0x28]
call fcn.1400b04f0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cmp qword [rsp + 0x48], 1
je 0x1400aa29b
shr rsi, 1
mov r14, r13
mov r15, rbx
mov r12, r13
mov rbp, rbx
jmp 0x1400aa16e
lea rbp, [rsp + 0x78]
mov r15, rbp
mov r12d, 0x200
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov rdx, rbp
mov r8d, r13d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebp, eax
test eax, eax
jne 0x1400aa192
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400aa1ea
mov ebp, ebp
cmp r13, rbp
jne 0x1400aa0a0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400aa0a0
add r13, r13
cmp r13, 0x201
jae 0x1400aa0b9
jmp 0x1400aa160
cmp r12, rbp
jb 0x1400aa342
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbp
call fcn.1400af180
mov rbp, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
xor r12d, r12d
jmp 0x1400aa1fb
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
mov r12b, 1
xor r14d, r14d
mov r13, qword [rsp + 0x20]
test rsi, rsi
je 0x1400aa21c
test rbx, rbx
je 0x1400aa21c
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.1400ddf36
test r12b, r12b
je 0x1400aa24f
test bpl, bpl
sete al
mov rcx, rbp
shr rcx, 0x20
cmp ecx, 0xcb
sete cl
and cl, al
mov eax, ecx
xor al, 1
movzx esi, al
xor eax, eax
test cl, cl
cmovne rbp, rax
test r13, r13
jne 0x1400aa256
jmp 0x1400aa272
xor esi, esi
test r13, r13
je 0x1400aa272
test rdi, rdi
je 0x1400aa272
add r13, r13
je 0x1400aa272
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
call fcn.1400ddf36
test rsi, rsi
jne 0x1400aa2bc
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], r14
mov qword [rax], rbp
mov qword [rax + 0x10], r15
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test rsi, rsi
jne 0x1400aa2a7
call fcn.14000b880
ud2
mov rcx, rbx
mov rdx, rsi
call fcn.1400e9eb0
ud2
mov rbp, rdi
mov r14, qword [rsp + 0x20]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rbp
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [0x1400b1a90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [0x1400b1ab0]
mov qword [rsp + 0x40], rax
lea rax, [0x1401b5ec8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 2
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 2
lea rdx, str.library_std_srcenv.rsfailed_to_get_environment_variable___:_other_os_erroroperation_interruptedwrite_zerotimed_outinvalid_datainvalid_input_parameteroperation_would_blockentity_already_existsbroken_pipeaddress_not_availableaddress_in_usenot_connectedconnection_abortedconnection_resetconnection_refusedpermission_deniedentity_not_foundunexpected_end_of_file
lea rcx, [rsp + 0x78]
call fcn.1400ec1e0
ud2
lea r8, str.library_std_src_syswindowsmod.rsthread__panicked_at__
mov rcx, rbp
mov rdx, r12
call fcn.1400ea350
ud2