Function at 0x4081c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4104cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x60]
call fcn.00402ce0
push 0x41646c
lea ecx, [esp + 0x14]
mov dword [esp + 0x494], esi
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x494], 1
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x20]
mov byte [esp + 0x494], 2
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x24]
mov byte [esp + 0x494], 3
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x28]
mov byte [esp + 0x494], 4
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x17c]
push 0x3ed
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x388]
rep stosd dword es:[edi], eax
mov ecx, ebp
mov byte [esp + 0x494], 5
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
push 2
push 0xffffffffffffffff
mov eax, dword [esi + 0x20]
push 0x100c
push eax
call ebx
inc eax
test eax, eax
jne 0x4082f2
push 0x6a
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x4166c4]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
push 0
push ecx
push edx
push eax
call fcn.00402280
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x41646c
call sub.MFC42.DLL_CString::operator
jmp 0x40850a
mov ecx, dword [esi + 0x20]
lea edi, [eax - 1]
push 2
push edi
push 0x100c
push ecx
call ebx
lea edx, [esp + 0x17c]
push 0x104
push edx
push 1
push edi
mov ecx, esi
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CListCtrl::GetItemText
lea eax, [esp + 0x280]
push 0x104
push eax
push 2
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText
lea ecx, [esp + 0x17c]
push ecx
lea ecx, [esp + 0x16c]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x280]
lea ecx, [esp + 0xbc]
push edx
call sub.MFC42.DLL_CString::operator
push ecx
lea eax, [esp + 0xc0]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x170]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x49c], 6
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
mov byte [esp + 0x49c], 5
call fcn.00409660
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x494], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x490], 5
call fcn.0040f2ca
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x170]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
jne 0x40850a
mov edx, dword [0x4166cc]
lea eax, [esp + 0x384]
push edx
push 0x104
push eax
push 0x41646c
push str.DefaultUse
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x384]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
add eax, 0xc8
test eax, eax
je 0x408439
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x20]
push eax
push 1
push 0x1003
push edx
call ebx
push eax
call sub.MFC42.DLL_CImageList::FromHandle
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], 0xf000
mov dword [esp + 0x40], 0x1000
mov ecx, dword [eax + 0xd0]
xor eax, eax
push eax
push edi
push 0x1008
push edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x104
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4084c0
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esi + 0x20]
push 0x1007
push eax
call ebx
jmp 0x4084da
push 0
push 0x3ed
push 0
push 0
push 0x41646c
push edi
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
mov ecx, dword [esp + 0x168]
push ecx
push 1
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0xbc]
mov ecx, esi
push edx
push 2
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 3
push 3
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemState
mov eax, dword [esi + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call ebx
inc eax
test eax, eax
je 0x408674
push 1
push 0x3e9
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3ea
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x17c]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x180]
push ecx
push 1
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText
lea edx, [esp + 0x280]
push 0x104
push edx
push 2
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x280]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x49c], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x498], 5
push ecx
mov ecx, ebp
call fcn.00409660
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x494], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x490], 5
call fcn.0040f2ca
mov edx, dword [0x4166cc]
lea eax, [esp + 0x384]
push edx
push 0x104
push eax
push 0x41646c
push str.DefaultUse
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x384]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40869e
push 1
jmp 0x4086a0
push 0
push 0x3e9
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x3ea
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x3fc
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esp + 0x24]
mov byte [esp + 0x490], 4
call fcn.0040f2ca
lea ecx, [esp + 0x20]
mov byte [esp + 0x490], 3
call fcn.0040f2ca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x490], 2
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov byte [esp + 0x490], 1
call fcn.0040f2ca
lea ecx, [esp + 0x10]
mov byte [esp + 0x490], 0
call fcn.0040f2ca
lea ecx, [esp + 0x178]
mov dword [esp + 0x490], 0x10
call fcn.0040f2ca
lea ecx, [esp + 0x174]
mov byte [esp + 0x490], 0xf
call fcn.0040f2ca
lea ecx, [esp + 0x170]
mov byte [esp + 0x490], 0xe
call fcn.0040f2ca
lea ecx, [esp + 0x16c]
mov byte [esp + 0x490], 0xd
call fcn.0040f2ca
lea ecx, [esp + 0x168]
mov byte [esp + 0x490], 0xc
call fcn.0040f2ca
lea ecx, [esp + 0xc0]
mov byte [esp + 0x490], 0xb
call fcn.00406eb0
lea ecx, [esp + 0xbc]
mov byte [esp + 0x490], 0xa
call fcn.0040f2ca
lea ecx, [esp + 0x5c]
mov dword [esp + 0x490], 0xffffffff
call fcn.0040f2d0
mov ecx, dword [esp + 0x488]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x484
ret