Function at 0x527780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov esi, ecx
lea ecx, [esp + 0x4c]
push dword [ebp + 8]
call sym.std::sys::pal::windows::to_u16s::inner::h36c7c454f9caa61a
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, ecx
neg eax
jno 0x527802
cmp byte [esp + 0x50], 3
jne 0x5277f7
mov edi, dword [esp + 0x54]
mov dword [esp], esi
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x5277c9
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x5277e6
cmp dword [esi + 8], 9
jb 0x5277d8
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov esi, dword [esp]
mov dword [esi], 0x80000000
jmp 0x5279ea
mov eax, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [esp], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], eax
cmp ebx, 0x201
jae 0x527870
jmp 0x52785e
jbe 0x5278fc
cmp ebx, 0x201
jae 0x527870
mov dword [esp + 0x1c], 0x200
lea edi, [esp + 0x4c]
mov esi, ebx
jmp 0x5278a7
mov esi, dword [esp + 0x20]
sub ebx, esi
je 0x527897
mov edx, esi
lea ecx, [esp + 4]
push 2
push 2
push ebx
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push 0
call sub.kernel32.dll_SetLastError
push esi
push edi
push dword [esp + 0x18]
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x5278cc
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x527967
cmp ebx, esi
jne 0x527850
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x527a08
lea ebx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x52785e
jmp 0x527870
mov edx, dword [esp + 0x1c]
cmp ebx, edx
ja 0x527a21
mov edx, edi
lea ecx, [esp + 0x3c]
push ebx
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 4
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x527949
push dword [esp + 8]
push 0
push dword [0x5e1120]
movdqa xmmword [esp + 0x2c], xmm0
call sub.kernel32.dll_HeapFree
movdqa xmm0, xmmword [esp + 0x20]
mov eax, esi
neg eax
jno 0x5279f2
movd edi, xmm0
mov eax, dword [esp]
cmp bl, 3
mov dword [eax], 0x80000000
je 0x527996
jmp 0x5279d2
call sub.kernel32.dll_GetLastError
cmp dword [esp + 4], 0
mov edi, eax
je 0x527986
push dword [esp + 8]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
xor ebx, ebx
mov eax, dword [esp]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x5279d2
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x5279a7
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x5279c4
cmp dword [esi + 8], 9
jb 0x5279b6
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x14], 0
je 0x5279ea
push dword [esp + 0x10]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp]
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
cmp dword [esp + 0x14], 0
jne 0x5279d9
jmp 0x5279ea
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.1_src_runtime_blocking_schedule.rsP__
push 0x5b2f8c
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 4
jmp 0x527a30
mov ecx, ebx
push 0x5b2f7c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
ud2