Function at 0x406b20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x406c8a
push esi
push edi
mov edi, dword [ebp + 8]
push 0x403ad0
push str.___Environment_
push edi
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0x403ad0
push str._____Variables_
push edi
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
cmp word [ebx], 0
mov esi, ebx
je 0x406c3e
mov edi, edi
push 0x403ad0
push str.__Item_
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00406000
add esp, 8
push eax
push str._______Item_
push edi
call fcn.00403550
add esp, 8
push eax
call fcn.004038c0
add esp, 8
push eax
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov eax, dword [ebp - 4]
cmp eax, 8
jb 0x406c13
mov ecx, dword [ebp - 0x18]
inc eax
cmp eax, 0x7fffffff
ja 0x406c91
add eax, eax
cmp eax, 0x1000
jb 0x406c0a
test cl, 0x1f
jne 0x406c91
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x406c91
sub ecx, eax
cmp ecx, 4
jb 0x406c91
cmp ecx, 0x23
ja 0x406c91
mov ecx, eax
push ecx
call fcn.005469ba
add esp, 4
mov eax, esi
lea edx, [eax + 2]
jmp 0x406c20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406c20
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x406b80
push 0x403ad0
push str.______Variables_
push edi
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0x403ad0
push 0x403ad0
push str.____Environment_
push edi
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3