Function at 0x6d36e0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file
Read file via mapping

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x80961e
push eax
mov eax, 0x1854
mov dword fs:[0], esp
call fcn.0072bd20
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push ecx
lea eax, [esp + 0x1878]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x1874], ebx
call sub.MFC42.DLL_CString::CString_4
call fcn.006d8150
add esp, 4
cmp eax, ebx
je 0x6d377a
lea ecx, [esp + 0x64]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x1874]
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1878]
mov byte [esp + 0x1870], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x186c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1874]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d3e06
lea esi, [ebp + 4]
lea eax, [esp + 0x1874]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1065]
mov byte [esp + 0x1064], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1465]
mov byte [esp + 0x1464], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1464]
lea edx, [esp + 0x1064]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
mov esi, dword [esi]
add esp, 0x14
lea edx, [esp + 0x40]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x44]
push edx
mov dword [esp + 0x44], ebx
push ebx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea eax, [esp + 0x54]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CTime::CTime
mov edx, dword [esp + 0x1874]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 1
push str.Enable
push str.General
mov dword [ebp + 0x1c], ecx
call esi
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x1874]
push eax
push 2
push str.SyntaxVersion
push str.General
call esi
mov ecx, dword [esp + 0x1874]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp + 0x18], eax
push ecx
lea edx, [esp + 0x68]
push 0x1000
lea eax, [esp + 0x106c]
push edx
push eax
push 0x8ad60c
push str.General
call edi
lea ecx, [esp + 0x64]
push ecx
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [esp + 0x1874]
lea eax, [esp + 0x64]
push edx
push 0x1000
push eax
push 0x8bd670
push str.MacroID
push str.General
call edi
lea ecx, [esp + 0x64]
lea ebx, [ebp + 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [ebx]
push 0x8bd670
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x6d38fc
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov eax, dword [esp + 0x1874]
push eax
push 0x79
push 0x8aabec
push str.General
call esi
lea ecx, [esp + 0x10]
push 0x8aabcc
push ecx
mov word [ebp + 0x20], ax
call fcn.006caa00
mov edx, dword [esp + 0x187c]
mov eax, dword [eax]
add esp, 8
xor ebx, ebx
push edx
push ebx
push eax
push str.General
call esi
lea ecx, [esp + 0x10]
mov word [ebp + 0x22], ax
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1874]
push eax
push ebx
push 0x8aabbc
push str.General
call esi
mov ecx, dword [esp + 0x1874]
mov word [ebp + 0x24], ax
push ecx
push ebx
push 0x8aaba8
push str.General
call esi
mov edx, dword [esp + 0x1874]
mov word [ebp + 0x26], ax
push edx
push 0x7b
push 0x8aab98
push str.General
call esi
mov word [ebp + 0x28], ax
mov eax, dword [esp + 0x1874]
push eax
push ebx
push 0x8aab88
push str.General
call esi
mov ecx, dword [esp + 0x1874]
mov word [ebp + 0x2a], ax
push ecx
push ebx
push str.Type
push str.Repeat
call esi
mov edx, dword [esp + 0x1874]
mov word [ebp + 0x30], ax
push edx
push 1
push str.Number
push str.Repeat
call esi
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x1874]
push eax
push ebx
push 0x8ac514
push str.General
call esi
mov ecx, dword [esp + 0x1874]
mov dword [ebp + 0x3c], eax
push ecx
push 1
push str.RunOnce
push str.General
call esi
mov edx, dword [esp + 0x1874]
mov dword [ebp + 0x40], eax
push edx
lea eax, [esp + 0x68]
push 0x1000
push eax
push 0x8bd670
push str.EnableWindow
push str.General
call edi
lea ecx, [esp + 0x64]
push ecx
lea ecx, [ebp + 0x44]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [esp + 0x1874]
push edx
push 2
push str.Type
push str.SetupUI
call esi
mov dword [ebp + 0x9c], eax
sub eax, ebx
je 0x6d3ae7
dec eax
je 0x6d3ac4
dec eax
jne 0x6d3b0a
mov eax, dword [esp + 0x1874]
lea ecx, [esp + 0x64]
push eax
push 0x1000
push ecx
push 0x8bd670
push str.SetupOCXFile
push str.Relative
call edi
mov al, byte [esp + 0x64]
test al, al
je 0x6d3aa3
mov dword [ebp + 0x9c], ebx
jmp 0x6d3b0a
push 0x8bd670
lea ecx, [ebp + 0xa0]
mov dword [ebp + 0x9c], 2
call sub.MFC42.DLL_CString::operator_3
mov byte [esp + 0x64], 0
jmp 0x6d3b0a
mov edx, dword [esp + 0x1874]
lea eax, [esp + 0x64]
push edx
push 0x1000
push eax
push 0x8bd670
push 0x8ad5bc
push str.SetupUI
jmp 0x6d3b08
mov ecx, dword [esp + 0x1874]
lea edx, [esp + 0x64]
push ecx
push 0x1000
push edx
push 0x8bd670
push str.SetupOCXFile
push str.Relative
call edi
lea eax, [esp + 0x64]
lea ecx, [ebp + 0xa0]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x64]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1874]
push ecx
push 0x1000
push edx
push 0x8ac4b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor eax, eax
mov cl, byte [esp + eax + 0x64]
test cl, cl
jne 0x6d3b5b
mov cl, byte [esp + eax + 0x65]
test cl, cl
je 0x6d3b5b
mov byte [esp + eax + 0x64], 0xa
inc eax
cmp eax, 0xfff
jb 0x6d3b46
lea esi, [ebp + 0x10]
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_3
push 0x8aaed8
push 0x8acff4
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push 0x3d
mov ecx, esi
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebx
jle 0x6d3b9f
cmp eax, 0xa
jge 0x6d3b9f
inc eax
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CString::Delete
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x14], ebx
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov ecx, dword [esp + 0x1874]
push ebx
push 0x8000
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1878], 2
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x6d3df5
mov edx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push 2
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 4
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
mov ebx, esi
je 0x6d3df5
mov edi, str._Attachment_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str._RelativeFile_
mov dword [esp + 0x34], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str._UIPackage_
mov dword [esp + 0x38], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str._Script_
mov dword [esp + 0x30], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
mov al, byte [esi]
test al, al
je 0x6d3dcd
cmp al, 0xa
je 0x6d3c6e
mov eax, esi
sub eax, ebx
cmp eax, edi
jge 0x6d3c6e
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x6d3c5e
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x6d3c7a
cmp al, 9
jne 0x6d3c82
mov ecx, esi
sub ecx, ebx
cmp ecx, edi
jl 0x6d3c6e
mov edx, dword [esp + 0x34]
push edx
push str._Attachment_
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x6d3ce5
cmp byte [esi], 0xa
je 0x6d3caf
mov eax, esi
sub eax, ebx
cmp eax, edi
jge 0x6d3caf
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x6d3c9f
mov ecx, esi
push 0
sub ecx, ebx
inc ecx
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStdioFile::Seek
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x20]
lea ecx, [ebp + 0x8c]
push edx
call fcn.006de320
jmp 0x6d3da3
mov eax, dword [esp + 0x38]
push eax
push str._RelativeFile_
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x6d3d3e
cmp byte [esi], 0xa
je 0x6d3d12
mov ecx, esi
sub ecx, ebx
cmp ecx, edi
jge 0x6d3d12
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x6d3d02
mov edx, esi
push 0
sub edx, ebx
lea ecx, [esp + 0x20]
inc edx
push edx
call sub.MFC42.DLL_CStdioFile::Seek
push 0
lea eax, [esp + 0x20]
push 1
push eax
mov ecx, ebp
call fcn.006d2e80
push 0
mov ecx, ebp
call fcn.006d2940
jmp 0x6d3da3
mov ecx, dword [esp + 0x30]
push ecx
push str._UIPackage_
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x6d3d8b
cmp byte [esi], 0xa
je 0x6d3d6b
mov edx, esi
sub edx, ebx
cmp edx, edi
jge 0x6d3d6b
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x6d3d5b
mov eax, esi
push 0
sub eax, ebx
lea ecx, [esp + 0x20]
inc eax
push eax
call sub.MFC42.DLL_CStdioFile::Seek
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x48]
call fcn.006df510
jmp 0x6d3da3
mov edx, dword [esp + 0x14]
push edx
push str._Script_
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x6d3db7
mov eax, esi
sub eax, ebx
cmp eax, edi
jge 0x6d3dcd
mov al, byte [esi]
test al, al
jne 0x6d3c5a
jmp 0x6d3dcd
cmp byte [esi], 0xa
je 0x6d3dcc
mov ecx, esi
sub ecx, ebx
cmp ecx, edi
jge 0x6d3dcc
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x6d3dbc
inc esi
sub edi, esi
add edi, ebx
test edi, edi
mov dword [esp + 0x14], edi
jle 0x6d3e85
add edi, 0xa
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp + 0xc0], edx
jne 0x6d3e24
lea ecx, [esp + 0x1c]
mov byte [esp + 0x186c], 0
call fcn.0072b704
lea ecx, [esp + 0x1874]
mov dword [esp + 0x186c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x6d3ed5
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0xc0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc0]
test eax, eax
je 0x6d3e85
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
je 0x6d3e82
cmp byte [eax + ecx], 0xd
jne 0x6d3e70
cmp byte [eax + ecx + 1], 0xa
jne 0x6d3e70
inc ecx
test ecx, ecx
je 0x6d3e79
mov dl, byte [eax + ecx]
mov byte [eax], dl
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x6d3e62
mov byte [eax], 0
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x186c], 0
call fcn.0072b704
lea ecx, [esp + 0x1874]
mov dword [esp + 0x186c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1864]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1860
ret 4