Function at 0x408450
Capabilities:
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ff86
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x417014]
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 eax, dword [0x418cf0]
push 0
push 0
push 0x1009
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x418e30
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4088cf
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x118]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x118], esi
jne 0x4088cf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
push 0x412344
mov edx, ebx
movq qword [ebp - 0x130], xmm0
lea ecx, [ebp - 0x130]
call fcn.00401f60
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x110]
push 0x4188d8
push 0x100
push eax
push 0
push 0x412348
push 0x412350
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x12c]
xor esi, esi
mov ecx, dword [ebp - 0x130]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x154], eax
test eax, eax
jle 0x4088b9
nop dword [eax]
mov edx, dword [ecx + esi*4]
xorps xmm0, xmm0
push 0x41235c
lea ecx, [ebp - 0x124]
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], 0
call fcn.00401f60
add esp, 4
mov edi, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x124]
sub edi, ebx
sar edi, 2
cmp edi, 2
jb 0x408868
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
mov byte [ebp - 4], 2
mov eax, dword [0x418cf0]
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
push eax
lea eax, [ebp - 0x114]
push 0x413310
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov eax, dword [0x418cf0]
add esp, 0xc
mov esi, dword [ebp - 0x114]
push 0
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x418cf0]
push 0
push 0
push 0
push 0
push esi
push eax
push 1
call dword [sym.imp.mfc140u.dll_CListCtrl::InsertItem]
push dword [ebx]
lea ecx, [ebp - 0x138]
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, dword [0x418cf0]
push 1
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebx + 4]
lea ecx, [ebp - 0x13c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 4
push dword [eax]
mov ecx, dword [0x418cf0]
push 2
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp edi, 2
jbe 0x4086e5
push dword [ebx + 8]
lea ecx, [ebp - 0x140]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 5
push dword [eax]
mov ecx, dword [0x418cf0]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x140]
jmp 0x408843
mov ecx, 0x412364
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408710
test dl, dl
je 0x40870c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408710
add eax, 2
add ecx, 2
test dl, dl
jne 0x4086f0
xor eax, eax
jmp 0x408715
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40874a
push 0x412364
lea ecx, [ebp - 0x144]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 6
push dword [eax]
mov ecx, dword [0x418cf0]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x144]
jmp 0x408843
mov ecx, 0x41236c
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408775
test dl, dl
je 0x408771
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408775
add eax, 2
add ecx, 2
test dl, dl
jne 0x408755
xor eax, eax
jmp 0x40877a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4087af
push 0x41236c
lea ecx, [ebp - 0x148]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 7
push dword [eax]
mov ecx, dword [0x418cf0]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x148]
jmp 0x408843
mov eax, 0x412374
lea ecx, [ebp - 0x110]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4087e0
test dl, dl
je 0x4087dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4087e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4087c0
xor eax, eax
jmp 0x4087e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408817
push 0x412374
lea ecx, [ebp - 0x14c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 8
push dword [eax]
mov ecx, dword [0x418cf0]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x14c]
jmp 0x408843
push 0x412364
lea ecx, [ebp - 0x150]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov byte [ebp - 4], 9
push dword [eax]
mov ecx, dword [0x418cf0]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebx]
mov edx, esi
call fcn.00408200
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov esi, dword [ebp - 0x134]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4088a0
mov eax, dword [ebp - 0x11c]
sub eax, ebx
sar eax, 2
push eax
push ebx
call fcn.0040bf90
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov ecx, dword [ebp - 0x130]
inc esi
mov dword [ebp - 0x134], esi
cmp esi, dword [ebp - 0x154]
jl 0x408590
test ecx, ecx
je 0x4088cf
mov eax, dword [ebp - 0x128]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0040bf90
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.0040e8e5
mov esp, ebp
pop ebp
ret