Function at 0x10041980
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.__ZN3std3sys3pal7windows7to_u16s5inner17h36c7c454f9caa61aE.llvm.10150728606014878797
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, ecx
neg eax
jno 0x10041a03
cmp byte [esp + 0x50], 3
jne 0x100419f8
mov edi, dword [esp + 0x54]
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x100419ca
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x100419e7
cmp dword [esi + 8], 9
jb 0x100419d9
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
mov esi, dword [ebp + 8]
mov dword [esi], 0x80000000
jmp 0x10041bed
mov eax, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp + 4], 0
mov dword [esp + 8], 2
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 0x10041a70
jmp 0x10041a5e
jbe 0x10041afc
cmp ebx, 0x201
jae 0x10041a70
mov dword [esp + 0x1c], 0x200
lea edi, [esp + 0x4c]
mov esi, ebx
jmp 0x10041aa7
mov esi, dword [esp + 0x20]
sub ebx, esi
je 0x10041a97
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 0x10041acc
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x10041b67
cmp ebx, esi
jne 0x10041a50
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x10041c10
lea ebx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x10041a5e
jmp 0x10041a70
mov eax, dword [esp + 0x1c]
cmp ebx, eax
ja 0x10041c26
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 esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x10041b49
push dword [esp + 8]
push 0
push dword [0x100ff0c8]
movdqa xmmword [esp + 0x2c], xmm0
call sub.kernel32.dll_HeapFree
movdqa xmm0, xmmword [esp + 0x20]
mov eax, esi
neg eax
jno 0x10041bf7
movd esi, xmm0
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
je 0x10041b96
jmp 0x10041bd2
call sub.kernel32.dll_GetLastError
cmp dword [esp + 4], 0
mov esi, eax
je 0x10041b86
push dword [esp + 8]
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x10041bd2
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x10041ba7
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x10041bc4
cmp dword [ebx + 8], 9
jb 0x10041bb6
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x14], 0
mov esi, dword [ebp + 8]
je 0x10041bed
push dword [esp + 0x10]
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
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
cmp dword [esp + 0x14], 0
mov esi, dword [ebp + 8]
jne 0x10041bdc
jmp 0x10041bed
push 0x100f1330
push 0x28
push str.internal_error:_entered_unreachable_codeD
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 0xc
jmp 0x10041c35
push 0x100f1320
push eax
push ebx
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 0xc
ud2