Function at 0x42d8a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x444
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x450]
push dword [ebp + 0x10]
call sym.std::sys::windows::to_u16s::inner::h9d168abf2ff990f4
add esp, 4
cmp dword [ebp - 0x450], 0
je 0x42d915
cmp byte [ebp - 0x44c], 3
jne 0x42da28
mov esi, dword [ebp - 0x448]
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42d903
push dword [eax + 8]
push ecx
push dword [esi]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push esi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x42da28
mov ecx, dword [ebp - 0x448]
test ecx, ecx
je 0x42da28
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x444]
mov esi, 0x200
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x48], eax
cmp esi, 0x201
jae 0x42d9a0
jmp 0x42d98e
jbe 0x42da39
cmp esi, 0x201
jae 0x42d9a0
lea ebx, [ebp - 0x450]
mov dword [ebp - 0x24], 0x200
mov edi, esi
jmp 0x42d9d4
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x42d9c5
mov edx, edi
lea ecx, [ebp - 0x30]
push esi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h3de3c257bacc48ea
add esp, 4
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], 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 0x42d9f8
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x42db15
cmp esi, edi
jne 0x42d980
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x42db31
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x42d98e
jmp 0x42d9a0
mov byte [edi + 0xc], 2
mov eax, edi
add esp, 0x444
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
cmp esi, eax
ja 0x42db47
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::hb6f6a97bb780d583
add esp, 0xc
mov eax, dword [ebp - 0x40]
movzx edx, word [ebp - 0x37]
movzx ecx, byte [ebp - 0x35]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x3c]
movzx ebx, byte [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1c], dx
mov byte [ebp - 0x1a], cl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42da88
add eax, eax
push 2
push eax
push dword [ebp - 0x14]
call sym.___rust_dealloc
add esp, 0xc
cmp bl, 2
jne 0x42dad3
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov eax, esi
cmp al, 3
mov byte [edi + 0xc], 2
jne 0x42daf7
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42dac4
push dword [eax + 8]
push ecx
push dword [esi]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push esi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x42daf7
movzx eax, word [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov bh, byte [ebp - 0x1a]
mov edx, dword [ebp - 0x10]
mov word [ecx + 0xd], ax
mov byte [ecx + 0xf], bh
mov dword [ecx + 4], edx
mov dword [ecx], esi
mov dword [ecx + 8], edi
mov byte [ecx + 0xc], bl
mov ebx, dword [ebp - 0x20]
mov edi, ecx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42da2c
add eax, eax
push 2
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x42da2c
mov bl, 2
xor esi, esi
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42da78
jmp 0x42da88
push 0x4c4450
push 0x28
push str.internal_error:_entered_unreachable_code_b
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
jmp 0x42db56
push 0x4c4460
push eax
push esi
call sym.core::slice::index::slice_end_index_len_fail::ha90cccd5bd71ac96
add esp, 0xc
ud2