Function at 0x1001750f
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov eax, 0x10048e66
call fcn.100464e0
sub esp, 0x234
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x34], esi
mov dword [esi], 0x1004d9f8
and dword [ebp - 4], 0
lea ebx, [esi + 4]
mov ecx, ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
lea edi, [esi + 0xc]
mov byte [ebp - 4], 2
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_1
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 3
mov dword [esi], 0x1004da18
call fcn.100460f4
and word [ebp - 0x240], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x23e]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x240]
push 0x104
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CString::operator
xor ecx, ecx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
stosd dword es:[edi], eax
mov al, byte [ebp + 0xf]
mov dword [ebp - 0x10], ecx
push ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.GetFileSizeEx
push str.Kernel32.dll
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebx]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10017752
cmp dword [ebp + 0xc], edi
je 0x10017749
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [ebp + 0xc]
test eax, eax
je 0x10017749
cmp dword [ebp - 0x18], edi
jne 0x10017749
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x2800
ja 0x10017749
add ebx, 2
push ebx
call sub.MFC42u.DLL_operatornew
push ebx
push edi
push eax
mov dword [ebp + 8], eax
call sub.MSVCRT.dll_memset
push ebx
call sub.MFC42u.DLL_operatornew
push ebx
push edi
push eax
mov dword [ebp + 0xc], eax
call sub.MSVCRT.dll_memset
add esp, 0x20
cmp dword [ebp + 8], edi
je 0x1001772d
cmp dword [ebp + 0xc], edi
je 0x1001773b
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.100017ff
lea eax, [ebp - 0x30]
push 0x10060c2c
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
test al, al
je 0x100176c6
cmp dword [ebp - 0x2c], edi
je 0x100176be
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov ebx, dword [ebp - 0x2c]
jmp 0x100176cb
mov ebx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x100176cb
mov ebx, str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
call fcn.10012bf1
add esp, 0x18
test eax, eax
jne 0x1001772d
push dword [ebp + 0xc]
lea ebx, [esi + 8]
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1001772d
push 0x1005cd28
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.100460f4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp + 0xc], edi
je 0x1001773b
push dword [ebp + 0xc]
call sub.MFC42u.DLL_operatordelete
pop ecx
cmp dword [ebp + 8], edi
je 0x10017749
push dword [ebp + 8]
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8