Function at 0x4101f0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x412ee8
mov eax, dword fs:[0]
push eax
mov eax, 0x203c
call fcn.00412e10
mov eax, dword [0x41b020]
xor eax, esp
mov dword [esp + 0x2038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41b020]
xor eax, esp
push eax
lea eax, [esp + 0x2050]
mov dword fs:[0], eax
xor eax, eax
push 0x1ffe
mov ebx, ecx
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x1000
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x2060], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x415d88
call ebp
mov esi, eax
test esi, esi
je 0x4102b6
cmp esi, 0x1000
jbe 0x4102d2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411f67
add esp, 4
push esi
mov edi, eax
push edi
push 0x415d88
call ebp
push edi
test eax, eax
jne 0x4102d7
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2058], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x41035b
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x415d94
lea ecx, [esp + 0x34]
mov byte [esp + 0x205c], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x410321
lea eax, [esp + 0x34]
push eax
push 0x415d88
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
lea ecx, [esp + 0x30]
setne bl
mov byte [esp + 0x2058], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2058], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x2050]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2038]
xor ecx, esp
call fcn.00412040
add esp, 0x2048
ret