Function at 0x1400d0370
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 0x1400d03ae
test r8, r8
jne 0x1400d03ae
xor eax, eax
jmp 0x1400d08ea
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x78], 0
test al, al
jne 0x1400d0531
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x28], r8
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1400d09ef
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.1400b8650
cmp byte [rbp + 0x98], 2
je 0x1400d051f
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.1400cd9c0
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.1400cfc40
cmp byte [rbp + 0x60], 2
je 0x1400d0410
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x1400d0410
mov rcx, qword [rbp + 0x48]
mov r8d, 1
call fcn.140078bc0
jmp 0x1400d0410
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.1400cf8a0
mov rsi, rax
test rax, rax
je 0x1400d08d1
mov r13, rdx
cmp byte [rdx + 0x18], 2
jne 0x1400d0630
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x1400d0570
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 0x1400d0610
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 0x1400d05c0
cmp eax, 1
jne 0x1400d0670
sub rbx, 1
jae 0x1400d061d
jmp 0x1400d0570
mov r14, r15
sub rbx, 1
jb 0x1400d0570
mov rdi, qword [rdi + r14*8 + 0x3d8]
jmp 0x1400d059f
mov rdi, qword [rsi + 0x18]
mov r12, qword [rsi + 0x28]
test r12, r12
je 0x1400d073d
js 0x1400d0984
movzx eax, byte [0x14014fbb1]
mov edx, 1
mov rcx, r12
call fcn.140078bb0
test rax, rax
jne 0x1400d0742
jmp 0x1400d098e
cmp eax, 2
jne 0x1400d0904
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.1400c2ef0
cmp byte [rbp + 0xb0], 2
je 0x1400d0570
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 0x1400d06fb
mov rcx, qword [rbp + 0x98]
mov r8d, 1
call fcn.140078bc0
test r15, r15
je 0x1400d0714
add r15, r15
mov r8d, 2
mov rcx, rdi
mov rdx, r15
call fcn.140078bc0
cmp r14b, 2
je 0x1400d0570
test rbx, rbx
je 0x1400d0570
mov r8d, 1
mov rcx, rsi
mov rdx, rbx
call fcn.140078bc0
jmp 0x1400d0570
mov eax, 1
mov qword [rbp + 0xd8], rax
mov rcx, rax
mov rdx, rdi
mov r8, r12
call fcn.1400f7010
movzx ebx, byte [rsi + 0x30]
mov rdx, qword [rsi]
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x1400d07ad
xor edi, edi
mov rax, r14
shr rax, 0x3e
sete al
jne 0x1400d09a0
lea rsi, [r14 + r14]
mov dil, al
add rdi, rdi
test rsi, rsi
je 0x1400d07b7
movzx eax, byte [0x14014fbb1]
mov rcx, rsi
mov r15, rdx
mov rdx, rdi
call fcn.140078bb0
mov rdx, r15
mov r15, rax
test r15, r15
jne 0x1400d07c3
jmp 0x1400d09b1
mov r15d, 2
xor esi, esi
jmp 0x1400d07c3
mov r15, rdi
test r15, r15
je 0x1400d09b1
mov rcx, r15
mov r8, rsi
call fcn.1400f7010
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 0x1400d0851
js 0x1400d09c8
movzx eax, byte [0x14014fbb1]
mov edx, 1
mov rcx, rsi
call fcn.140078bb0
mov rbx, rax
test rax, rax
jne 0x1400d0856
jmp 0x1400d09d9
mov ebx, 1
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1400f7010
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.1400cfc40
cmp byte [rbp + 0x60], 2
je 0x1400d0570
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x1400d0570
mov rcx, qword [rbp + 0x48]
mov r8d, 1
call fcn.140078bc0
jmp 0x1400d0570
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, [0x1400be1e0]
mov qword [rbp + 0xf0], rax
lea rax, [0x14010cc18]
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.1400fcf70
jmp 0x1400d0a67
call fcn.1400de690
jmp 0x1400d0a67
mov ecx, 1
mov rdx, r12
call fcn.1400fce30
jmp 0x1400d0a67
mov qword [rbp + 0xe0], r12
call fcn.1400de690
jmp 0x1400d0a67
mov qword [rbp + 0xe0], r12
mov rcx, rdi
mov rdx, rsi
call fcn.1400fce30
jmp 0x1400d0a67
mov byte [rbp + 0x10f], 1
call fcn.1400de690
jmp 0x1400d0a67
mov byte [rbp + 0x10f], 1
mov ecx, 1
mov rdx, rsi
call fcn.1400fce30
jmp 0x1400d0a67
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, [0x1400be1e0]
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.1400fcf70
ud2