Function at 0x40b760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4796e3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [0x4958f8]
mov esi, dword [0x49634c]
push 0
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jae 0x40bb89
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
nop dword [eax]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 1
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
mov ecx, dword [0x4958f8]
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemText]
push 0x495900
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 0x1c]
push str._ws_ws_log.txt
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
add esp, 0x10
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x1c]
push 0
push 0x48bd88
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x1c]
mov edi, eax
push 0
push str._S_u
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push 0
push 0x48bd74
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 0
push 0x48bd80
push dword [ebp - 0x14]
call ebx
test edi, edi
jne 0x40b86f
cmp dword [ebp - 0x20], edi
jne 0x40b86f
cmp dword [ebp - 0x18], edi
jne 0x40b86f
test eax, eax
je 0x40b8ad
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [0x4958f8]
inc esi
push 0
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jb 0x40b7c0
jmp 0x40bb89
push dword [ebp - 0x1c]
push 0x48bf38
push str._S_u
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push dword [ebp - 0x24]
mov ecx, dword [0x4958f8]
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemText]
push 0x495900
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x20]
push str._ws_ws_log.txt
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
add esp, 0x10
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x20]
push 0
push 0x48c144
push dword [ebp - 0x28]
call ebx
push dword [ebp - 0x20]
mov edi, eax
push 0
push 0x48c1d4
push dword [ebp - 0x28]
call ebx
push dword [ebp - 0x20]
mov ebx, eax
push 0
push 0x48c4b0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
push 0
push 0x48c4b8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
inc ecx
push ecx
lea ecx, [esi + 1]
push ecx
push 0x48c4c0
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov ecx, dword [0x4958f8]
add esp, 0x10
push dword [ebp - 0x18]
push 0xc
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [0x4958f8]
lea eax, [ebp - 0x2c]
push 0xe
push dword [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemText]
mov byte [ebp - 4], 7
push dword [eax]
mov ecx, dword [0x4958f8]
push 0xe
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push edi
lea eax, [ebp - 0x18]
push 0x48aa68
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x48c144
push dword [ebp - 0x14]
call edi
push ebx
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
lea eax, [ebp - 0x18]
push 0x48d768
push eax
call ebx
add esp, 0xc
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x48c1d4
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push 0x48d768
push eax
call ebx
add esp, 0xc
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x48c4b0
push dword [ebp - 0x14]
call edi
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x18]
push edi
push 0x48d768
push eax
call ebx
add esp, 0xc
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x48c4b8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [0x4958f8]
lea eax, [ebp - 0x34]
push 1
push esi
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemText]
mov byte [ebp - 4], 8
push dword [eax]
mov esi, dword [ebp - 0x24]
mov ecx, dword [0x4958f8]
push 1
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test edi, edi
jne 0x40bb26
mov ecx, dword [0x4958f8]
lea eax, [esi - 1]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemText]
push 0x495900
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov byte [ebp - 4], 0xa
push dword [ebp - 0x24]
push dword [eax]
lea eax, [ebp - 0x20]
push str._ws_ws_log.txt
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x20]
push edi
push 0x48c144
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push 0x48c144
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [0x4958f8]
mov ebx, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x48c730
push 0xb
push esi
call ebx
mov ecx, dword [0x4958f8]
push 0x48c730
push 0xc
push esi
call ebx
mov ecx, dword [0x4958f8]
push 0x48c730
push 0xd
push esi
call ebx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret