Function at 0x40d77e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41d5b3
call fcn.0041baa0
sub esp, 0x230
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040f576
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call fcn.0040f576
mov al, byte [ebp + 0x10]
push dword [ebp + 0xc]
and byte [esi + 0x40], 0
and byte [esi + 0x41], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov byte [esi + 0x42], al
call sub.MSVCRT.dll_strlen
inc eax
inc eax
push eax
call sub.MFC42.DLL_operatornew
push dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x2c]
call sub.MSVCRT.dll_strlen
push dword [ebp + 8]
mov ebx, eax
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 5]
push eax
call sub.MFC42.DLL_operatornew
push dword [ebp + 8]
mov dword [esi + 0x38], eax
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x2c]
push dword [esi + 0x38]
call sub.MSVCRT.dll_strcat
push 0x2e
push dword [esi + 0x38]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x34
cmp eax, edi
je 0x40d82d
and byte [eax], 0
push 0x428908
push dword [esi + 0x38]
call sub.MSVCRT.dll_strcat
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ecx
lea eax, [ebp - 0x23c]
push dword [esi + 0x38]
mov ebx, 0x429ea8
push 0x20a
push eax
push ebx
push 0x4281a4
push 0x427624
call edi
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0x23c]
mov dword [esi + 0x34], eax
push ecx
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0x23c]
push dword [esi + 0x38]
push 0x20a
push eax
push ebx
push 0x428160
push 0x427624
call edi
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0x23c]
mov dword [esi + 0x30], eax
push ecx
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0x23c]
push dword [esi + 0x38]
push 0x20a
push eax
push ebx
push dword [0x420eec]
push 0x42762c
call edi
test eax, eax
jne 0x40d943
lea eax, [ebp - 0x30]
push 0x42887c
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x30]
push 0x428738
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x30]
push 0x428734
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x30]
push 0x428730
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x23c]
push dword [esi + 0x38]
push 0x20a
push eax
push ebx
lea eax, [ebp - 0x30]
push dword [0x420eec]
push eax
call edi
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0x23c]
mov dword [esi + 0x3c], eax
push ecx
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x2c]
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.0040f825
push dword [ebp + 8]
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x30]
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x23c]
lea ecx, [esi + 0x14]
push eax
call fcn.0040f825
push 0
push dword [ebp + 0xc]
call fcn.0040da35
pop ecx
mov byte [esi + 0x40], al
pop ecx
push dword [esi + 0x34]
mov ecx, esi
call fcn.0040db3d
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x41], al
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc