Function at 0x40cc60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x414b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x41b494
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x34]
mov byte [esp + 0x24], 2
test al, al
je 0x40cdb6
push 0x41b844
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
push 0x400
mov byte [esp + 0x28], 3
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, dword [esp + 0x34]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push ebx
push 0x41b528
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x41b8a8
push 0x400
push edi
push ecx
push edx
push eax
call ebp
mov esi, dword [esp + 0x2c]
test eax, eax
je 0x40cd26
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esi + 0x20]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
test esi, esi
je 0x40cd99
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
push eax
push ebx
lea edx, [esp + 0x18]
push 0x41b51c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0x10
push 0x41b8a8
push 0x400
push edi
push eax
push ecx
push edx
call ebp
test eax, eax
je 0x40cd81
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esi + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
test esi, esi
jne 0x40cd3e
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 2
call fcn.00413760
jmp 0x40ce64
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push edi
push 0x41b528
push ecx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x41b8a8
push eax
push ecx
push edx
call ebp
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
test esi, esi
je 0x40ce64
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
push eax
push edi
lea ecx, [esp + 0x18]
push 0x41b51c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0x41b8a8
push eax
push ecx
push edx
call ebp
mov eax, dword [esi + 0x20]
push 2
push eax
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
test esi, esi
jne 0x40ce13
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00413760
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00413760
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.00413760
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret