Function at 0x4c632a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5127c8
call fcn.00484660
sub esp, 0x438
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [eax], 0
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
push edi
mov ecx, esi
mov ebx, dword [eax - 8]
push ebx
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
test edi, edi
je 0x4c668b
cmp ebx, 2
jae 0x4c636d
push ebx
mov ecx, esi
jmp 0x4c6686
mov ax, word [edi]
test ax, ax
je 0x4c6682
movzx esi, ax
lea eax, [ebx - 2]
cmp esi, eax
jg 0x4c6682
lea eax, [edi + 2]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x14]
and dword [ebp - 4], 0
add ecx, 0x2c
push eax
mov dword [ebp - 0x38], ecx
call sub.MFC42.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
add esi, 2
mov eax, ebx
sub eax, esi
cmp eax, 2
jb 0x4c6682
mov ax, word [esi + edi]
inc esi
inc esi
test ax, ax
je 0x4c6682
movzx eax, ax
mov ecx, ebx
mov dword [ebp - 0x24], eax
sub ecx, esi
cmp eax, ecx
jg 0x4c6682
push eax
lea eax, [esi + edi]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
lea ecx, [eax + 0x30]
call sub.MFC42.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
add esi, dword [ebp - 0x24]
mov eax, ebx
sub eax, esi
cmp eax, 0x10
jl 0x4c6682
lea eax, [esi + edi]
push 0x10
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
call sub.MSVCRT.dll_memcpy
add esi, 0x10
mov eax, ebx
sub eax, esi
add esp, 0xc
cmp eax, 2
mov dword [ebp - 0x2c], esi
jb 0x4c6682
mov ax, word [esi + edi]
inc esi
inc esi
test ax, ax
je 0x4c6682
movzx eax, ax
mov ecx, ebx
mov dword [ebp - 0x10], eax
sub ecx, esi
cmp eax, ecx
jg 0x4c6682
push eax
lea eax, [esi + edi]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x14]
push eax
add ecx, 0x44
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], ecx
call sub.MFC42.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
add esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push ebx
cmp ebx, esi
jne 0x4c6686
call sub.MFC42.DLL_CString::ReleaseBuffer
xor esi, esi
push esi
call fcn.004f58a7
pop ecx
mov dword [ebp - 0x34], eax
push 0x18
push 0x5304ec
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 4
call fcn.004c66a7
lea ecx, [ebp - 0x1c]
call fcn.004c67ef
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
call fcn.004c6718
push 6
lea ecx, [ebp - 0x44]
call fcn.004f691f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push dword [ebp - 0x2c]
mov byte [ebp - 4], 6
push edi
push eax
call fcn.004f6c84
test al, al
jne 0x4c6543
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.004f6afb
push dword [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004f5e54
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004f5e54
pop ecx
pop ecx
mov dword [ebp - 4], 9
jmp 0x4c6671
lea eax, [ebp + 8]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.CFSF.dat
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
and byte [ebp - 0x444], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x443]
rep stosd dword es:[edi], eax
push dword [ebp - 0x20]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x444]
push 0x400
push eax
push 0x51a314
push str.VALUE
push str.CFSF
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jb 0x4c65f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.004f6afb
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.004f5e54
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004f5e54
pop ecx
pop ecx
mov dword [ebp - 4], 0xf
jmp 0x4c6671
and byte [ebp + eax - 0x444], 0
push eax
lea eax, [ebp - 0x444]
lea ecx, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x10
push dword [eax]
push dword [ebp - 0x28]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4c6629
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.004f6afb
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x11
call fcn.004f5e54
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004f5e54
pop ecx
pop ecx
push 1
mov dword [ebp - 4], 0x13
pop esi
push dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
call fcn.004f5e54
pop ecx
mov eax, esi
jmp 0x4c668d
mov ecx, dword [ebp + 8]
push ebx
call sub.MFC42.DLL_CString::ReleaseBuffer
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8