Function at 0x43f800
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x430
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x43c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov eax, dword [ebp - 0x43c]
cmp eax, 0x80000000
jne 0x43f846
lea ecx, [ebp - 0x43c]
call dbg.drop_in_place<core::result::Result<alloc::vec::Vec<u16, alloc::alloc::Global>, std::io::error::Error>>
mov dword [edi], 0x80000000
jmp 0x43f9dd
mov ecx, dword [ebp - 0x438]
mov esi, 0x200
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], ecx
cmp esi, 0x201
jae 0x43f8b0
jmp 0x43f89e
jbe 0x43f92b
cmp esi, 0x201
jae 0x43f8b0
mov dword [ebp - 0x10], 0x200
lea ebx, [ebp - 0x43c]
mov edi, esi
jmp 0x43f8da
mov edi, dword [ebp - 0x14]
sub esi, edi
je 0x43f8ce
mov edx, edi
lea ecx, [ebp - 0x2c]
push esi
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
add esp, 4
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push ebx
push dword [ebp - 0x20]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x43f8fe
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x43f9ea
cmp esi, edi
jne 0x43f890
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43fa08
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x43f89e
jmp 0x43f8b0
mov eax, dword [ebp - 0x10]
cmp esi, eax
ja 0x43fa1e
lea eax, [ebp - 0x3c]
push esi
push ebx
push eax
call dbg.from_wide
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43f96a
add eax, eax
push 2
push eax
push dword [ebp - 0x1c]
call sym.___rust_dealloc
add esp, 0xc
cmp edi, 0x80000000
jne 0x43f9b3
mov edi, dword [ebp + 8]
cmp bl, 3
mov dword [edi], 0x80000000
jne 0x43f9c6
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x43f9a1
push dword [ebx + 8]
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push esi
call sym.___rust_dealloc
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x43f9c6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edi
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43f9dd
add eax, eax
push 2
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
mov eax, edi
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov edi, 0x80000000
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x43f95a
jmp 0x43f96a
push 0x4c0fb0
push 0x28
push 0x4bd574
call dbg.panic
add esp, 0xc
jmp 0x43fa2d
push 0x4c0fa0
push eax
push esi
call dbg.slice_end_index_len_fail
add esp, 0xc
ud2