Function at 0x4bc7f0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rbx, rcx
lea rcx, [rsp + 0x98]
call fcn.004becd0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x4bc959
mov qword [rsp + 0x38], rbx
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov esi, 0xffffffff
xor r15d, r15d
xor ebx, ebx
cmp r8, 0x201
jae 0x4bc8b0
jmp 0x4bc88f
jae 0x4bc9ba
cmp r8, 0x201
jae 0x4bc8b0
lea r12, [rsp + 0x98]
mov r13d, 0x200
mov rbp, r8
jmp 0x4bc8f6
sub r8, rbx
sub r15, rbx
cmp r15, r8
jae 0x4bc8d7
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.0049d930
mov r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
cmp r14, rsi
mov ebx, 0xffffffff
cmovb rbx, r14
mov qword [rsp + 0x58], rbx
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, rbx
mov rbp, rbx
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x4bc920
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4bcac9
mov r8d, edi
cmp rbp, r8
jne 0x4bc880
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4bcae9
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x4bc88f
jmp 0x4bc8b0
mov rdi, qword [rsp + 0x98]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x4bc9b1
lea rsi, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
cmp qword [rax + 8], 0
je 0x4bc9a0
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x4bc992
mov r8, qword [r8 - 8]
mov rcx, qword [0x005e4168]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x005e4168]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov byte [rbx + 0x18], 2
jmp 0x4bcab4
cmp r13, r8
jb 0x4bcb03
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.004aad40
mov r12, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
movzx ebx, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x2b], eax
test r14, r14
je 0x4bca0f
mov rcx, qword [0x005e4168]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
cmp bl, 2
jne 0x4bca74
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov eax, r12d
and eax, 3
cmp eax, 1
jne 0x4bca99
lea rdi, [r12 - 1]
mov rcx, qword [r12 - 1]
mov rax, qword [r12 + 7]
call qword [rax]
mov rax, qword [r12 + 7]
cmp qword [rax + 8], 0
je 0x4bca61
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x4bca53
mov r8, qword [r8 - 8]
mov rcx, qword [0x005e4168]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x005e4168]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
jmp 0x4bca99
mov rdx, qword [rsp + 0x38]
mov qword [rdx], r12
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], bl
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
cmp qword [rsp + 0x40], 0
je 0x4bcab4
mov rcx, qword [0x005e4168]
xor edx, edx
mov r8, qword [rsp + 0x30]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov r12d, eax
shl r12, 0x20
or r12, 2
mov bl, 2
test r14, r14
jne 0x4bc9fc
jmp 0x4bca0f
lea rcx, str.internal_error:_entered_unreachable_code_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.39.3_src_runtime_blocking_schedule.rs
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00413c20
jmp 0x4bcb18
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.00415090
ud2