Function at 0x1009c960
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::h9c1ce760b5043b66
add esp, 4
mov eax, dword [esp + 0x4c]
cmp eax, 0x80000000
jne 0x1009c9da
cmp byte [esp + 0x50], 3
jne 0x1009c9cf
mov edi, dword [esp + 0x54]
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x1009c9ab
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x1009c9bf
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 0x1009cbb4
mov ecx, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], ecx
cmp ebx, 0x201
jae 0x1009ca40
jmp 0x1009ca2e
jbe 0x1009cac8
cmp ebx, 0x201
jae 0x1009ca40
mov dword [esp + 0x1c], 0x200
lea edi, [esp + 0x4c]
mov esi, ebx
jmp 0x1009ca73
mov esi, dword [esp + 0x20]
sub ebx, esi
je 0x1009ca63
mov edx, esi
lea ecx, [esp + 4]
push ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h20e2001013f05adb
add esp, 4
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 0x1009ca98
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1009cb36
cmp ebx, esi
jne 0x1009ca20
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1009cbd8
lea ebx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x1009ca2e
jmp 0x1009ca40
mov eax, dword [esp + 0x1c]
cmp ebx, eax
ja 0x1009cbee
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::hdc9efc66b333cddc
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 0x1009cb16
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
cmp esi, 0x80000000
jne 0x1009cbbe
movd edi, xmm0
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
je 0x1009cb66
jmp 0x1009cb98
call sub.kernel32.dll_GetLastError
mov edi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x1009cb56
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 0x1009cb98
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x1009cb77
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x1009cb8b
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 0x1009cbb4
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 0x1009cba3
jmp 0x1009cbb4
push 0x10179560
push 0x28
push 0x10175e60
call sym.core::panicking::panic::h2de0902fd6c3d9b1
add esp, 0xc
jmp 0x1009cbfd
push 0x10179550
push eax
push ebx
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
add esp, 0xc
ud2