Function at 0x408530
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43bda7
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x370]
push edi
test eax, eax
jne 0x4087a3
lea ebp, [ebx + 0x37c]
mov dword [ebx + 0x370], 1
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 0x4085f7
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 0x4087a3
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], 1
call sub.MFC42.DLL_CString::operator_1
push 0x451020
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x52c], 3
push esi
lea edx, [esp + 0x14]
push 0x450338
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x130]
add esp, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x38c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x128]
push 0x400
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x124]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
push esi
lea eax, [esp + 0x14]
push 0x450334
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x130]
add esp, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x38c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x128]
push 0x400
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
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 0x408763
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x408763
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 0x408687
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