Function at 0x14004aaf0
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x680
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x5f8], 0xfffffffffffffffe
mov qword [rbp + 0x178], rcx
mov qword [rbp + 0x180], rcx
lea rcx, [rbp + 0x198]
call fcn.14004b300
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x188], rax
lea rcx, [rbp + 0x198]
add rcx, 8
mov qword [rbp + 0x190], rcx
movabs rcx, 0x8000000000000000
cmp rax, rcx
je 0x14004afc2
mov rax, qword [rbp + 0x190]
mov rax, qword [rax]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x5c0], 0
lea rax, [rbp + 0x5c0]
add rax, 8
mov qword [rbp + 0x140], rax
mov eax, 2
mov qword [rbp + 0x5c8], rax
lea rax, [rbp + 0x5c0]
add rax, 0x10
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x5d0], 0
mov edx, 2
xor eax, eax
mov ecx, eax
mov eax, 0x200
mov qword [rbp + 0x150], rdx
mov rdx, rcx
mov qword [rbp + 0x158], rdx
mov rdx, rcx
mov qword [rbp + 0x160], rdx
mov qword [rbp + 0x168], rcx
mov qword [rbp + 0x170], rax
mov r11, qword [rbp + 0x150]
mov r10, qword [rbp + 0x158]
mov r9, qword [rbp + 0x160]
mov r8, qword [rbp + 0x168]
mov rax, qword [rbp + 0x170]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], r8
mov qword [rbp + 0xe8], r9
mov qword [rbp + 0xf0], r10
mov qword [rbp + 0xf8], r11
mov edx, 0x200
lea rcx, [rbp + 0x1c0]
cmp rax, 0x201
mov qword [rbp + 0x100], r11
mov qword [rbp + 0x108], r10
mov qword [rbp + 0x110], r9
mov qword [rbp + 0x118], r8
mov qword [rbp + 0x120], rdx
mov qword [rbp + 0x128], rcx
mov qword [rbp + 0x130], rax
jb 0x14004ad6a
mov rax, qword [rbp + 0xf0]
mov rcx, qword [rbp + 0xf8]
mov r9, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xd8]
sub r8, r9
mov qword [rbp + 0xc0], r8
sub rdx, r9
cmp rdx, r8
mov qword [rbp + 0xc8], rcx
mov qword [rbp + 0xd0], rax
jae 0x14004ad06
mov r8, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xe0]
mov rax, rsp
mov qword [rax + 0x20], 2
lea rcx, [rbp + 0x5c0]
mov r9d, 2
call fcn.140049160
jmp 0x14004ace5
mov rcx, qword [rbp + 0x140]
mov rax, qword [rbp + 0x5c0]
mov rcx, qword [rcx]
mov qword [rbp + 0xc8], rcx
mov qword [rbp + 0xd0], rax
jmp 0x14004ad06
mov r8, qword [rbp + 0x148]
mov rcx, qword [rbp + 0xc8]
mov rdx, qword [rbp + 0xd0]
mov eax, 0xffffffff
mov r9, rdx
sub r9, rax
cmovb rax, rdx
mov qword [r8], rax
mov r8, rcx
mov qword [rbp + 0x100], r8
mov r8, rdx
mov qword [rbp + 0x108], r8
mov qword [rbp + 0x110], rdx
mov rdx, rax
mov qword [rbp + 0x118], rdx
mov rdx, rax
mov qword [rbp + 0x120], rdx
mov qword [rbp + 0x128], rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x100]
mov rcx, qword [rbp + 0x108]
mov rdx, qword [rbp + 0x110]
mov r8, qword [rbp + 0x118]
mov r9, qword [rbp + 0x120]
mov r10, qword [rbp + 0x128]
mov r11, qword [rbp + 0x130]
mov qword [rbp + 0xa0], r11
mov qword [rbp + 0xa8], r10
mov qword [rbp + 0x78], r9
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0xa8]
mov r8d, eax
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov dword [rbp + 0xb4], eax
cmp eax, 0
jne 0x14004ae05
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0
jne 0x14004ae1f
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0xb4]
mov ecx, ecx
mov qword [rbp + 0x70], rcx
cmp rax, rcx
je 0x14004ae89
jmp 0x14004ae73
call qword [sym.imp.kernel32.dll_GetLastError]
movsxd rcx, eax
shl rcx, 0x20
or rcx, 2
xor eax, eax
add rax, rcx
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x5c0]
mov qword [rbp + 0x68], rax
cmp rax, 0
je 0x14004ae66
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
shl rdx, 1
mov r8d, 2
call fcn.140009e80
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x58], rax
jmp 0x14004b0e5
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0xa0]
cmp rcx, rax
mov qword [rbp + 0x50], rax
jb 0x14004aeb5
jmp 0x14004aefd
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004af22
mov rcx, qword [rbp + 0xa0]
shl rcx, 1
mov eax, 0xffffffff
mov rdx, rcx
sub rdx, rax
cmovb rax, rcx
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov r8, qword [rbp + 0x90]
mov r9, qword [rbp + 0x98]
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x150], r9
mov qword [rbp + 0x158], r8
mov qword [rbp + 0x160], rdx
mov qword [rbp + 0x168], rcx
mov qword [rbp + 0x170], rax
jmp 0x14004abe6
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rax, rcx
jae 0x14004af3f
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
call fcn.14000df30
jmp 0x14004af20
ud2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000eb90
jmp 0x14004afc0
mov r8, qword [rbp + 0x70]
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0x5d8]
call fcn.1400453a0
jmp 0x14004af58
mov rax, qword [rbp + 0x5d8]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x5e0]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x5e8]
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x5f0]
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x5c0]
mov qword [rbp + 0x48], rax
cmp rax, 0
je 0x14004b06c
mov rdx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
shl rdx, 1
mov r8d, 2
call fcn.140009e80
jmp 0x14004b06c
ud2
mov rax, qword [rbp + 0x190]
mov rax, qword [rax]
mov qword [rbp + 0x30], rax
and rax, 3
cmp rax, 1
jne 0x14004b053
mov rax, qword [rbp + 0x30]
mov rcx, rax
add rcx, 0xffffffffffffffff
mov qword [rbp + 0x10], rcx
mov rcx, qword [rax - 1]
mov qword [rbp + 0x18], rcx
mov rax, qword [rax + 7]
mov qword [rbp + 0x20], rax
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
cmp rax, 0
je 0x14004b012
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x18]
call rax
jmp 0x14004b012
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 8]
mov qword [rbp], rax
mov rcx, qword [rcx + 0x10]
mov qword [rbp + 8], rcx
cmp rax, 0
je 0x14004b03f
mov r8, qword [rbp + 8]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x18]
call fcn.140009e80
jmp 0x14004b03f
mov rcx, qword [rbp + 0x10]
mov edx, 0x18
mov r8d, 8
call fcn.140009e80
mov rax, qword [rbp + 0x178]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x14004b189
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
movabs rdx, 0x8000000000000000
cmp rcx, rdx
mov qword [rbp + 0x58], rax
je 0x14004b0e5
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x1b0]
mov qword [rax + 0x10], r8
mov r8, qword [rbp + 0x1b8]
mov qword [rax + 0x18], r8
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x188]
cmp rax, 0
je 0x14004b189
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x188]
shl rdx, 1
mov r8d, 2
call fcn.140009e80
jmp 0x14004b189
mov rcx, qword [rbp + 0x178]
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x18], rax
movabs rdx, 0x8000000000000000
mov qword [rcx], rdx
and rax, 3
cmp rax, 1
jne 0x14004b0b3
mov rax, qword [rbp - 0x18]
mov rcx, rax
add rcx, 0xffffffffffffffff
mov qword [rbp - 0x38], rcx
mov rcx, qword [rax - 1]
mov qword [rbp - 0x30], rcx
mov rax, qword [rax + 7]
mov qword [rbp - 0x28], rax
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
cmp rax, 0
je 0x14004b143
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
call rax
jmp 0x14004b143
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx + 8]
mov qword [rbp - 0x48], rax
mov rcx, qword [rcx + 0x10]
mov qword [rbp - 0x40], rcx
cmp rax, 0
je 0x14004b170
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x30]
call fcn.140009e80
jmp 0x14004b170
mov rcx, qword [rbp - 0x38]
mov edx, 0x18
mov r8d, 8
call fcn.140009e80
jmp 0x14004b0b3
mov rax, qword [rbp + 0x180]
add rsp, 0x680
pop rbp
ret