Function at 0x404b90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bac4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x412014]
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 - 0x28], ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov ecx, dword [0x4137b0]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::GetWindowTextW]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov esi, eax
mov eax, dword [0x4137b8]
push 0
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jae 0x404da3
mov ebx, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
nop dword [eax + eax]
mov ecx, dword [0x4137b8]
lea eax, [ebp - 0x14]
push 1
push esi
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemText]
push 0x412fa0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 0x18]
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__2]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x18]
push 0
push 0x40ddc8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x18]
mov edi, eax
push 0
push 0x40dde8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 0
push 0x40deec
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x18]
push 0
push 0x40ddf0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
push 0
push 0x40ddf8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test edi, edi
jne 0x404cf8
cmp dword [ebp - 0x20], edi
jne 0x404cf8
cmp dword [ebp - 0x24], edi
jne 0x404cf8
test eax, eax
jne 0x404cf8
mov ecx, dword [0x4137b8]
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::GetItemData]
cmp eax, 1
jne 0x404d37
mov ecx, dword [0x4137b8]
push 0x40ddf8
push 1
push esi
call ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [0x4137b8]
inc esi
push 0
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jb 0x404c20
jmp 0x404da3
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push edi
push 0x40def8
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov ecx, dword [0x4137b8]
add esp, 0xc
push dword [ebp - 0x14]
push 1
push edi
call ebx
mov ecx, dword [0x4137b8]
push 1
push 0
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItem]
push dword [ebp - 0x1c]
mov ecx, dword [0x4137b8]
push 0xa
push esi
call ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x18]
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.0040a775
mov esp, ebp
pop ebp
ret