Function at 0x4053d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41c4ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x53c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x554], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x554], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x554], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x554], 3
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x554], 4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov dword [ebp + 4], eax
push 0x429198
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push 0x4290b8
push ecx
mov byte [esp + 0x560], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x558], 6
call fcn.0041b82a
lea ecx, [esp + 0x30]
mov byte [esp + 0x554], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x55c]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x50]
push 0x500
push eax
push 0x42a438
push ecx
push 0x429194
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
test edi, edi
je 0x405678
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call fcn.0041b81e
push 0x429044
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.0041b82a
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x554], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
push 0xb
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x55c], 8
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str._WINSYSDIR_
push eax
mov byte [esp + 0x55c], 9
call ebx
add esp, 8
test eax, eax
je 0x405594
lea edx, [esp + 0x28]
push 0xb
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str._SystemDir_
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405596
mov bl, 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x554], 8
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405656
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x20]
add eax, 0xe4
push eax
call fcn.0041b7f4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
mov byte [esp + 0x554], 0xa
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x560], 0xb
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x558], 0xc
call fcn.0041b82a
lea ecx, [esp + 0x38]
mov byte [esp + 0x554], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x554], 0xa
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.0041b7f4
mov ecx, ebp
call fcn.00404700
lea ecx, [esp + 0x20]
mov byte [esp + 0x554], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x554], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x554], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x554], 4
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x405453
lea ecx, [esp + 0x24]
mov byte [esp + 0x554], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x554], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x554], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x554], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x55c]
mov dword [esp + 0x554], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x548
ret 4