Function at 0x100cb2e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x101b5cc
call fcn.0101a4c8
sub esp, 0x468
mov eax, dword [0x1020e7c]
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.01019c28
push dword [ebp - 0x434]
lea eax, [ebp - 0x430]
push 0x1002ca4
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 0x100cd69
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 0x100cd5a
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 0x100cd43
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 0x100ccfd
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.01019c28
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 0x100ccdf
cmp dword [ebp + 0x10], 0
jne 0x100cc9f
push 0x1002c74
lea ecx, [ebp - 0x424]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x100cc9f
push 0x1002cc4
push 0x1002c74
lea ecx, [ebp - 0x424]
call sub.MFC42u.DLL_CString::Replace
push 0x1002cc0
lea ecx, [ebp - 0x438]
call sub.MFC42u.DLL_CString::CString_2
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.01019dcc
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 0x100cd11
mov ebx, eax
jmp 0x100cd43
push ebx
push 1
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
jne 0x100cd0d
push ebx
push 3
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
je 0x100cd41
push eax
push 1
push edi
push dword [ebp - 0x428]
call esi
test eax, eax
jne 0x100cd0d
xor ebx, ebx
test ebx, ebx
jne 0x100cbff
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.01019e5c
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.010197bb
leave
ret 0xc