Function at 0x10084940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h36c7c454f9caa61a
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, ecx
neg eax
jno 0x100849b9
cmp byte [esp + 0x50], 3
jne 0x100849ae
mov edi, dword [esp + 0x54]
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x1008498a
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x1008499e
push dword [esi + 8]
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esi], 0x80000000
jmp 0x10084b96
mov eax, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], eax
cmp ebx, 0x201
jae 0x10084a20
jmp 0x10084a0e
jbe 0x10084aac
cmp ebx, 0x201
jae 0x10084a20
mov dword [esp + 0x1c], 0x200
lea edi, [esp + 0x4c]
mov esi, ebx
jmp 0x10084a57
mov esi, dword [esp + 0x20]
sub ebx, esi
je 0x10084a47
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 + 0x1c]
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x10084a7c
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x10084b18
cmp ebx, esi
jne 0x10084a00
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x10084bba
lea ebx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x10084a0e
jmp 0x10084a20
mov eax, dword [esp + 0x1c]
cmp ebx, eax
ja 0x10084bd0
lea eax, [esp + 0x3c]
push ebx
push edi
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 0xc
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x44]
test eax, eax
je 0x10084afa
add eax, eax
push 2
push eax
push dword [esp + 0x10]
movdqa xmmword [esp + 0x2c], xmm0
call sym.___rust_dealloc
movdqa xmm0, xmmword [esp + 0x2c]
add esp, 0xc
mov eax, esi
neg eax
jno 0x10084ba0
movd edi, xmm0
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
je 0x10084b48
jmp 0x10084b7a
call sub.kernel32.dll_GetLastError
mov edi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x10084b38
add eax, eax
push 2
push eax
push dword [esp + 0x10]
call sym.___rust_dealloc
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x10084b7a
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x10084b59
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x10084b6d
push dword [esi + 8]
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
je 0x10084b96
add eax, eax
push 2
push eax
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10084b85
jmp 0x10084b96
push 0x101637a0
push 0x28
push str.internal_error:_entered_unreachable_code
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 0xc
jmp 0x10084bdf
push 0x10163790
push eax
push ebx
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 0xc
ud2