Function at 0x40dae0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43ca37
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 0x370]
sub esp, 0x514
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x40dd48
mov ebx, 1
lea ebp, [ecx + 0x37c]
mov dword [ecx + 0x370], ebx
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
push ecx
push eax
push eax
call fcn.00408bb0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push esi
call fcn.00408850
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp + 8], esi
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x40dba6
mov edi, str.links.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call fcn.004039d0
add esp, 4
test al, al
je 0x40dd48
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x52c], esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x52c], 1
call sub.MFC42.DLL_CString::CString_3
push 0x451020
lea ecx, [esp + 0x1c]
mov byte [esp + 0x530], 2
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x451020
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x52c], 3
push esi
lea edx, [esp + 0x14]
push 0x450338
push edx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x130]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x124]
push eax
push 0x400
push ecx
push 0
push edx
push str.slnews
call ebx
lea eax, [esp + 0x124]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [esp + 0x14]
push 0x450334
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x124]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x128]
push 0x400
push eax
push 0
push ecx
push str.slnews
call ebx
lea edx, [esp + 0x124]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40dd08
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40dd08
mov eax, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, ebp
call fcn.00408880
inc esi
cmp esi, 0xa
jl 0x40dc38
lea ecx, [esp + 0x1c]
mov byte [esp + 0x52c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x52c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x52c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x520
ret