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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bbd6
mov eax, dword fs:[0]
push eax
sub esp, 0x148
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 eax, dword [0x4137b8]
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 0x4138c0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405b52
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]
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 0x405b52
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
push 0x40df88
mov edx, ebx
movq qword [ebp - 0x130], xmm0
lea ecx, [ebp - 0x130]
call fcn.004015f0
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 0x4133a0
push 0x100
push eax
push 0
push 0x40df8c
push 0x40df94
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 0x405b3c
nop dword [eax]
mov edx, dword [ecx + esi*4]
xorps xmm0, xmm0
push 0x40dfa0
lea ecx, [ebp - 0x124]
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], 0
call fcn.004015f0
add esp, 4
mov edi, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x124]
sub edi, ebx
sar edi, 2
cmp edi, 2
jb 0x405aeb
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
mov byte [ebp - 4], 2
mov eax, dword [0x4137b8]
push 0
push 0x1004
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
push eax
lea eax, [ebp - 0x114]
push 0x40ecf0
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov eax, dword [0x4137b8]
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 [0x4137b8]
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__1]
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, dword [0x4137b8]
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__1]
mov byte [ebp - 4], 4
push dword [eax]
mov ecx, dword [0x4137b8]
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 0x405975
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__1]
mov byte [ebp - 4], 5
push dword [eax]
mov ecx, dword [0x4137b8]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x140]
jmp 0x405ad3
mov ecx, 0x40dfa8
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4059a0
test dl, dl
je 0x40599c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4059a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405980
xor eax, eax
jmp 0x4059a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4059da
push 0x40dfa8
lea ecx, [ebp - 0x144]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov byte [ebp - 4], 6
push dword [eax]
mov ecx, dword [0x4137b8]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x144]
jmp 0x405ad3
mov ecx, 0x40dfb0
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405a05
test dl, dl
je 0x405a01
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405a05
add eax, 2
add ecx, 2
test dl, dl
jne 0x4059e5
xor eax, eax
jmp 0x405a0a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405a3f
push 0x40dfb0
lea ecx, [ebp - 0x148]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov byte [ebp - 4], 7
push dword [eax]
mov ecx, dword [0x4137b8]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x148]
jmp 0x405ad3
mov eax, 0x40dfb8
lea ecx, [ebp - 0x110]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405a70
test dl, dl
je 0x405a6c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405a70
add ecx, 2
add eax, 2
test dl, dl
jne 0x405a50
xor eax, eax
jmp 0x405a75
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405aa7
push 0x40dfb8
lea ecx, [ebp - 0x14c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov byte [ebp - 4], 8
push dword [eax]
mov ecx, dword [0x4137b8]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x14c]
jmp 0x405ad3
push 0x40dfa8
lea ecx, [ebp - 0x150]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov byte [ebp - 4], 9
push dword [eax]
mov ecx, dword [0x4137b8]
push 3
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x150]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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 0x405b23
mov eax, dword [ebp - 0x11c]
sub eax, ebx
sar eax, 2
push eax
push ebx
call fcn.00408090
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 0x405820
test ecx, ecx
je 0x405b52
mov eax, dword [ebp - 0x128]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00408090
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