Function at 0x14008c120
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push rsi
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
in al, dx
test al, 4
add byte [rax], al
lea rbp, [rsp + 0x80]
lodsb al, byte [rsi]
and al, 0x80
add byte [rax], al
add byte [rax], al
add byte [rdi], cl
sub dword [rbp + 0x410], esi
mov ch, 0x10
add al, 0
add byte [rax - 0x39], cl
test dword [rax], ecx
add al, 0
add dh, bh
invalid
invalid
dec dword [rax - 0x77]
mov esi, ecx
lea rcx, [rbp - 0x60]
movabs al, byte [0x458b48ffffbff7e8]
movabs al, byte [0x48000003e8858948]
test eax, ebp
add eax, dword [rax]
add byte [rax - 0x7b], cl
ror byte [rdi], 0x84
cmp al, byte [rcx]
add byte [rax], al
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3d8], rax
add byte [rax - 0x39], cl
mov dword [rbp + 0x3c0], 2
test eax, eax
add eax, dword [rax]
add byte [rdx], al
add byte [rax], al
add byte [rdi], cl
push rdi
ror byte [rdi], 0x11
adc dword [rbp + 0x3c8], eax
test eax, ecx
add eax, dword [rax]
add byte [rax], al
mov r8d, 0x200
add byte [rdx], al
add byte [rax], al
mov eax, 2
add byte [rax], al
add byte [rax - 0x77], cl
mov dword [rbp + 0x400], eax
xor edi, edi
push qword [rcx]
fild dword [rbp + 0x31]
xor r12d, r12d
in al, 0x49
cmp eax, 0x201
clc
add dword [rdx], eax
add al, byte [rax]
add byte [rbx + 0x2a], dh
jmp 0x14008c1cf
jae 0x14008c2b9
cmp r8, 0x201
jae 0x14008c1e0
invalid
mov esi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
invalid
jmp 0x14008c238
sub r8, r12
sub rbx, r12
sub ebx, esp
cmp rbx, r8
jae 0x14008c20f
lea rcx, [rbp + 0x3c0]
mov rdx, r12
mov edx, esp
call fcn.1400a8170
mov rax, qword [rbp + 0x3c0]
test eax, eax
add eax, dword [rax]
add byte [rax - 0x77], cl
mov qword [rbp + 0x400], rax
add byte [rax + rax], al
add byte [rax], al
mov rdi, qword [rbp + 0x3c8]
mov eax, 0xffffffff
cmp rdi, rax
cmp edi, eax
mov r12d, 0xffffffff
invalid
invalid
invalid
dec dword [rdi + rcx + 0x42]
out 0x4c, eax
mov dword [rbp + 0x3d0], esp
movsd dword [rdi], dword [rsi]
rol byte [rbx], 1
add byte [rax], al
mov rbx, rdi
sti
mov rsi, r12
mov r13, qword [rbp + 0x400]
add byte [rbp - 0x77], cl
invalid
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
adc eax, 0x1d0a0
mov rcx, qword [rbp + 0x3e8]
add byte [rax], al
mov rdx, r13
mov edx, ebp
mov r8d, r15d
clc
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
mov esi, eax
test eax, eax
jne 0x14008c268
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14008c3e5
add dword [rax], eax
invalid
mov r8d, r14d
cmp r15, r8
jne case.0x14007e016.834
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jp case.0x14003ab40.1168
invalid
invalid
add dword [rax], eax
invalid
add r15, r15
mov eax, 0xffffffff
invalid
invalid
invalid
dec dword [rcx + 0x39]
invalid
cmovae r15, rax
cmovae edi, eax
clc
mov r8, r15
cmp r8, 0x201
add dword [rdx], eax
add byte [rax], al
jb 0x14008c1cf
invalid
jmp 0x14008c1e0
lea rcx, [rbp - 0x60]
call fcn.140088440
mov byte [rsi + 0x18], 2
sbb byte [rdx], al
jmp 0x14008c3ca
add dword [rax], eax
invalid
cmp rsi, r8
jb 0x14008c41f
pop rbp
add dword [rax], eax
invalid
lea rcx, [rbp + 0x3a0]
mov rdx, r13
invalid
call fcn.14008ac80
scasd eax, dword [rdi]
jmp 0xcb51c2d2
mov esi, dword [rbp + 0x3a0]
movabs al, byte [0x3a8b5100f000003]
add eax, dword [rax]
add byte [rdi], cl
adc byte [rbp + 0x3a8], dh
add eax, dword [rax]
add byte [rdi], cl
mov dh, 0x9d
mov eax, 0x8b000003
add byte [rbx + 0x3b985], cl
add byte [rcx + 0x3f085], cl
test eax, esi
lock add eax, dword [rax]
add byte [rbx + 0x3bc85], cl
add byte [rax], al
mov dword [rbp + 0x3f3], eax
add byte [rax], al
test rdi, rdi
invalid
je 0x14008c314
mov edx, 2
mov eax, dword [rbp + 0x3f0]
mov ecx, dword [rbp + 0x3f3]
add byte [rax], al
mov rdx, qword [rbp + 0x3f8]
mov edx, dword [rbp + 0x3f8]
mov dword [rdx + 0x1c], ecx
sbb al, 0x89
mov dword [rdx + 0x19], eax
sbb dword [rax - 0x77], ecx
xor cl, byte [rdi]
adc dword [rdx + 8], esi
mov byte [rdx + 0x18], bl
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
invalid
call 0x12808c3c9
invalid
fcomi st(7)
invalid
movaps xmm6, xmmword [rbp + 0x410]
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
invalid
shl rsi, 0x20
or rsi, 2
or esi, 2
mov bl, 2
test rdi, rdi
jne 0x14008c303
jmp 0x14008c314
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
lea eax, [0x140136720]
mov edx, 0x28
add al, ch
xchg ebx, eax
xchg ecx, eax
add dword [rax], eax
jmp 0x14008c434
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
mov eax, eax
call fcn.1400a5530
ud2