Function at 0x100f01e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x101dfae
call fcn.0101caf8
sub esp, 0x468
mov eax, dword [0x1023fb4]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esi + 0xb8]
xor edi, edi
push eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], edi
call fcn.0101c24c
push dword [ebp - 0x434]
lea eax, [ebp - 0x430]
push 0x100337c
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100f259
lea ecx, [ebp - 0x44c]
call sub.MFC42u.DLL_CStdioFile::CStdioFile
push edi
push 0x5001
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CStdioFile::Open
test eax, eax
je 0x100f24a
mov esi, dword [esi + 0xd0]
push ebx
push edi
push edi
mov edi, 0x110a
push edi
push esi
mov dword [ebp - 0x428], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
mov ebx, eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x474], 3
mov dword [ebp - 0x464], eax
jmp 0x100f233
lea eax, [ebp - 0x474]
push eax
push 0
push 0x113e
push dword [ebp - 0x428]
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x460], 0x104
call esi
test eax, eax
je 0x100f1ed
push dword [ebp - 0x464]
lea ecx, [ebp - 0x424]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 3
call fcn.0101c24c
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 8], 0
je 0x100f1cf
cmp dword [ebp + 0x10], 0
jne 0x100f18f
push 0x100334c
lea ecx, [ebp - 0x424]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x100f18f
push 0x100339c
push 0x100334c
lea ecx, [ebp - 0x424]
call sub.MFC42u.DLL_CString::Replace
push 0x1003398
lea ecx, [ebp - 0x438]
call sub.MFC42u.DLL_CString::CString_2
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.0101c3f0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x424]
lea ecx, [ebp - 0x44c]
call sub.MFC42u.DLL_CStdioFile::WriteString
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push ebx
push 4
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
je 0x100f201
mov ebx, eax
jmp 0x100f233
push ebx
push 1
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
jne 0x100f1fd
push ebx
push 3
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
je 0x100f231
push eax
push 1
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
jne 0x100f1fd
xor ebx, ebx
test ebx, ebx
jne 0x100f0ef
lea ecx, [ebp - 0x44c]
call sub.MFC42u.DLL_CStdioFile::Close
xor edi, edi
inc edi
pop ebx
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 1
call fcn.0101c498
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.0101bddf
leave
ret 0xc