Function at 0x402915
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x407878
call fcn.004073e0
sub esp, 0x60
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
push ebx
push str..usersettinguser.txt
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
cmp edi, 2
jl 0x402c50
lea esi, [edi + 2]
push esi
call sub.MFC42.DLL_operatornew
push esi
push ebx
push eax
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea ecx, [ebp - 0x30]
push edi
push dword [ebp - 0x18]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push 0x1009
push dword [eax + 0x1fd4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x40b30c
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
xor edi, edi
cmp eax, ebx
je 0x402c50
push 0x40b308
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
mov byte [eax], bl
je 0x402c3f
push 0xc8
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [ebp - 0x10]
push 0xc8
push ebx
push esi
mov dword [eax + edi*4 + 0x1d50], esi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x20]
push edi
push 0x40b260
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x10]
add esp, 0xc
push ebx
lea ecx, [eax + 0x1fb4]
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
push edi
push 1
call sub.MFC42.DLL_CListCtrl::InsertItem
push dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x10]
push 1
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [ebp - 0x10]
push 0x40b300
push 7
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [ebp - 0x10]
push 1
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetCheck
push dword [ebp - 0x14]
lea eax, [esi + 0x42]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x18]
push 0x40b308
inc eax
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x402aa8
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x10]
pop ecx
push dword [ebp - 0x14]
lea ecx, [eax + 0x1fb4]
push 2
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
push dword [ebp - 0x14]
push 0x60
call sub.MSVCRT.dll_strcpy
pop ecx
jmp 0x402abe
push dword [ebp - 0x14]
mov byte [eax], bl
call sub.MSVCRT.dll_strlen
cmp eax, 1
pop ecx
jae 0x402ada
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x10]
pop ecx
push ebx
push edi
push 0x1008
push dword [eax + 0x1fd4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402c28
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push 2
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
push dword [ebp - 0x14]
lea eax, [esi + 0x60]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x18]
push 0x40b308
inc eax
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x402b55
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push 3
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
push dword [ebp - 0x14]
lea eax, [esi + 0x7e]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, dword [ebp - 0x10]
pop ecx
push esi
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItem
jmp 0x402c28
push dword [ebp - 0x14]
mov byte [eax], bl
mov eax, dword [ebp - 0x10]
push 3
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
push dword [ebp - 0x14]
lea eax, [esi + 0x7e]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, dword [ebp - 0x10]
pop ecx
push esi
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItem
mov eax, dword [ebp - 0x18]
push 0x40b308
inc eax
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
jne 0x402bd0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push 8
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
push dword [ebp - 0x14]
add esi, 0xa6
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x402c28
push dword [ebp - 0x14]
mov byte [eax], bl
mov eax, dword [ebp - 0x10]
push 8
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
push dword [ebp - 0x14]
add esi, 0xa6
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x6c]
pop ecx
push str..usersetting_set.ini
push 0x3c
push eax
push ebx
push str.script
push str.BASE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x10]
push 8
push edi
lea ecx, [eax + 0x1fb4]
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x40b30c
push ebx
inc edi
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
jmp 0x4029a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040725a
push 1
pop eax
jmp 0x402c5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040725a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret