Function at 0x1400a92d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], 0xfffffffffffffffe
mov r8, qword [rdx + 0x10]
movzx eax, byte [rdx + 0x18]
test al, al
jne 0x1400a930e
test r8, r8
jne 0x1400a930e
xor eax, eax
jmp 0x1400a984a
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x78], 0
test al, al
jne 0x1400a9491
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x28], r8
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1400a994f
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
lea rdi, [rbp - 0x18]
lea rsi, [rbp + 0x80]
lea rbx, [rbp + 0x38]
lea r14, [rbp + 0x48]
lea r15, [rbp + 0xe8]
lea r12, [rbp + 0x68]
lea r13, [rbp - 0x30]
nop dword [rax + rax]
mov rcx, rsi
mov rdx, rbx
call fcn.1400a80c0
cmp byte [rbp + 0x98], 2
je 0x1400a947f
movups xmm0, xmmword [rbp + 0x80]
movups xmm1, xmmword [rbp + 0x90]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x40]
add rcx, rax
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rcx
mov word [rbp + 0xf8], 0
mov rcx, r14
mov rdx, r15
call fcn.1400a00f0
movups xmm0, xmmword [rbp + 0x80]
movups xmm1, xmmword [rbp + 0x90]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rbp + 0x48]
movaps xmmword [rbp - 0x30], xmm0
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xf0], rax
lea rax, [rbp + 0xb0]
movups xmm0, xmmword [rax]
lea rax, [rbp + 0xf8]
movups xmmword [rax], xmm0
mov byte [rbp + 0x10e], 0
mov rcx, r14
mov rdx, r12
mov r8, r13
mov r9, r15
call fcn.1400a8ba0
cmp byte [rbp + 0x60], 2
je 0x1400a9370
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x1400a9370
mov rcx, qword [rbp + 0x48]
mov r8d, 1
call fcn.14007d430
jmp 0x1400a9370
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
xor edx, edx
test rax, rax
setne dl
cmove r8, rax
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], 0
mov qword [rbp], rax
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], r8
lea rcx, [rbp - 0x30]
call fcn.1400a8800
mov rsi, rax
test rax, rax
je 0x1400a9831
mov r13, rdx
cmp byte [rdx + 0x18], 2
jne 0x1400a9590
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x1400a94d0
mov rbx, qword [rbp + 0x70]
lea r9, [rdi + 0x168]
movzx r15d, word [rdi + 0x3d2]
imul r13, r15, 0x38
mov r14, 0xffffffffffffffff
nop dword [rax]
test r13, r13
je 0x1400a9570
lea r12, [r9 + 0x38]
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x10]
mov r8, qword [r9]
mov r9d, dword [r9 + 0x10]
mov dword [rsp + 0x20], 1
call qword [sym.imp.kernel32.dll_CompareStringOrdinal]
add r13, 0xffffffffffffffc8
inc r14
mov r9, r12
cmp eax, 3
je 0x1400a9520
cmp eax, 1
jne 0x1400a95d0
sub rbx, 1
jae 0x1400a957d
jmp 0x1400a94d0
mov r14, r15
sub rbx, 1
jb 0x1400a94d0
mov rdi, qword [rdi + r14*8 + 0x3d8]
jmp 0x1400a94ff
mov rdi, qword [rsi + 0x18]
mov r12, qword [rsi + 0x28]
test r12, r12
je 0x1400a969d
js 0x1400a98e4
movzx eax, byte [0x140140641]
mov edx, 1
mov rcx, r12
call fcn.14007d420
test rax, rax
jne 0x1400a96a2
jmp 0x1400a98ee
cmp eax, 2
jne 0x1400a9864
mov qword [rbp + 0xe8], rdi
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], r14
lea rax, [rbp + 0x68]
mov qword [rbp + 0x100], rax
lea rcx, [rbp + 0x80]
lea rdx, [rbp + 0xe8]
call fcn.1400a3000
cmp byte [rbp + 0xb0], 2
je 0x1400a94d0
mov rdi, qword [rbp + 0x80]
mov r15, qword [rbp + 0x88]
mov rdx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xb8]
mov rbx, qword [rbp + 0xc0]
movzx r14d, byte [rbp + 0xd0]
test rdx, rdx
je 0x1400a965b
mov rcx, qword [rbp + 0x98]
mov r8d, 1
call fcn.14007d430
test r15, r15
je 0x1400a9674
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.14007d430
cmp r14b, 2
je 0x1400a94d0
test rbx, rbx
je 0x1400a94d0
mov r8d, 1
mov rcx, rsi
mov rdx, rbx
call fcn.14007d430
jmp 0x1400a94d0
mov eax, 1
mov qword [rbp + 0xd8], rax
mov rcx, rax
mov rdx, rdi
mov r8, r12
call fcn.1400d35b0
movzx ebx, byte [rsi + 0x30]
mov rdx, qword [rsi]
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x1400a970d
xor edi, edi
mov rax, r14
shr rax, 0x3e
sete al
jne 0x1400a9900
lea rsi, [r14 + r14]
mov dil, al
add rdi, rdi
test rsi, rsi
je 0x1400a9717
movzx eax, byte [0x140140641]
mov rcx, rsi
mov r15, rdx
mov rdx, rdi
call fcn.14007d420
mov rdx, r15
mov r15, rax
test r15, r15
jne 0x1400a9723
jmp 0x1400a9911
mov r15d, 2
xor esi, esi
jmp 0x1400a9723
mov r15, rdi
test r15, r15
je 0x1400a9911
mov rcx, r15
mov r8, rsi
call fcn.1400d35b0
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
mov byte [rbp + 0xb0], bl
mov eax, dword [rbp + 0xe8]
mov ecx, dword [rbp + 0xeb]
lea rdx, [rbp + 0xb1]
mov dword [rdx], eax
mov dword [rdx + 3], ecx
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x90], r14
mov rdi, qword [r13]
mov rsi, qword [r13 + 0x10]
test rsi, rsi
je 0x1400a97b1
js 0x1400a9928
movzx eax, byte [0x140140641]
mov edx, 1
mov rcx, rsi
call fcn.14007d420
mov rbx, rax
test rax, rax
jne 0x1400a97b6
jmp 0x1400a9939
mov ebx, 1
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1400d35b0
movzx eax, byte [r13 + 0x18]
mov qword [rbp + 0xe8], rbx
mov qword [rbp + 0xf0], rsi
mov qword [rbp + 0xf8], rsi
mov byte [rbp + 0x100], al
mov byte [rbp + 0x10f], 0
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x68]
lea r8, [rbp + 0x80]
lea r9, [rbp + 0xe8]
call fcn.1400a8ba0
cmp byte [rbp + 0x60], 2
je 0x1400a94d0
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x1400a94d0
mov rcx, qword [rbp + 0x48]
mov r8d, 1
call fcn.14007d430
jmp 0x1400a94d0
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rbp + 0x68]
movups xmmword [rcx + 8], xmm0
mov eax, 1
mov qword [rcx], rax
mov rax, rcx
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0x48]
mov qword [rbp + 0xe8], rax
lea rax, [0x140093a10]
mov qword [rbp + 0xf0], rax
lea rax, str.comparing_environment_keys_failed:
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
mov qword [rbp + 0xa0], 0
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 1
lea rdx, str.library_std_src_syswindowsprocess.rs
lea rcx, [rbp + 0x80]
call fcn.1400d5970
jmp 0x1400a99c7
call fcn.1400b6430
jmp 0x1400a99c7
mov ecx, 1
mov rdx, r12
call fcn.1400d5830
jmp 0x1400a99c7
mov qword [rbp + 0xe0], r12
call fcn.1400b6430
jmp 0x1400a99c7
mov qword [rbp + 0xe0], r12
mov rcx, rdi
mov rdx, rsi
call fcn.1400d5830
jmp 0x1400a99c7
mov byte [rbp + 0x10f], 1
call fcn.1400b6430
jmp 0x1400a99c7
mov byte [rbp + 0x10f], 1
mov ecx, 1
mov rdx, rsi
call fcn.1400d5830
jmp 0x1400a99c7
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xe8], rax
lea rax, [rbp + 0xe8]
mov qword [rbp - 0x30], rax
lea rax, [0x140093a10]
mov qword [rbp - 0x28], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
mov qword [rbp + 0xa0], 0
lea rax, [rbp - 0x30]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rbp + 0x80]
call fcn.1400d5970
ud2