Function at 0x401ec0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x422f86
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ea58]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push str.CIniFile::GetDecoratedVarSection
lea ecx, [esp + 0x1c]
call fcn.00401120
mov ebx, dword [esp + 0x40]
push ebx
mov dword [esp + 0x2c], 0
call fcn.00407619
push ebx
mov ebp, eax
call fcn.00407619
mov dword [esp + 0x48], eax
mov eax, 1
add esp, 8
test byte [0x42fe60], al
jne 0x401f40
or dword [0x42fe60], eax
mov ecx, esi
mov byte [esp + 0x28], al
call fcn.00401500
mov dword [0x42fe5c], eax
mov byte [esp + 0x28], 0
push ebx
call fcn.00407619
mov edi, eax
add esp, 4
mov ecx, esi
mov dword [esp + 0x14], edi
call fcn.00401e10
test edi, edi
je 0x401f69
push eax
push 0x4259a0
push edi
call fcn.00410cdc
add esp, 0xc
push edi
lea eax, [esp + 0x1c]
push str.LCID:__s
push eax
call fcn.00401410
add esp, 0xc
test ebp, ebp
je 0x4021cf
cmp dword [esp + 0x40], 0
je 0x4021cf
lea ecx, [esp + 0x18]
push str.g_lpIniSections_check:
push ecx
call fcn.00401410
add esp, 8
cmp dword [0x42fe48], 0
jne 0x402023
mov esi, 0x20
push esi
call fcn.00407619
mov edi, dword [esp + 0x48]
add esp, 4
push edi
push esi
push eax
mov dword [0x42fe48], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp eax, 0x1e
mov dword [0x42fe4c], eax
jne 0x402027
mov edx, dword [0x42fe48]
push edx
call fcn.00407614
add esi, esi
push esi
call fcn.00407619
add esp, 8
push edi
push esi
push eax
mov dword [0x42fe48], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [0x42fe4c], eax
mov eax, dword [0x42fe48]
push eax
lea ecx, [esp + 0x1c]
push str.g_lpIniSections:__s
push ecx
call fcn.00401410
lea edx, [esi - 2]
add esp, 0xc
cmp dword [0x42fe4c], edx
je 0x401fd4
jmp 0x402027
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x20]
push str.GetPrivateProfileString:___s___s
push ecx
call fcn.00401410
mov edx, dword [esp + 0x44]
add esp, 0x10
push edi
mov edi, dword [esp + 0x3c]
push ebx
push ebp
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x3c]
push ebx
push edi
push eax
call fcn.004115d5
push edi
lea ecx, [esp + 0x28]
push str.GetPrivateProfileString_lpDefault:__s
push ecx
call fcn.00401410
push ebp
lea edx, [esp + 0x34]
push str.GetPrivateProfileString_lpSection:__s
push edx
call fcn.00401410
push esi
lea eax, [esp + 0x40]
push str.GetPrivateProfileString_lpAppName:__s
push eax
call fcn.00401410
push ebx
push esi
push ebp
call fcn.004115d5
push ebp
lea ecx, [esp + 0x58]
push str.after_copy__lpSection:__s
push ecx
call fcn.00401410
mov edx, dword [esp + 0x84]
add esp, 0x48
push ebx
push ebp
push edx
call fcn.004115d5
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4020c6
mov edi, ebp
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4020d6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
lea eax, [esp + 0x1c]
and ecx, 3
push str.lpSection.lang:__s
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401410
mov esi, dword [0x42fe48]
push 0x4257f8
push esi
call fcn.004117db
add esp, 0x14
test eax, eax
je 0x4021aa
lea ebx, [ebx]
push ebp
push esi
call fcn.00411a08
add esp, 8
test eax, eax
je 0x402156
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402133
sub eax, edx
lea esi, [esi + eax + 1]
push 0x4257f8
push esi
call fcn.004117db
add esp, 8
test eax, eax
jne 0x402120
jmp 0x4021aa
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
push ecx
push ebx
push edx
push 0x42589b
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
push esi
push ebp
jne 0x40218c
lea eax, [esp + 0x20]
push str.Unable_to_read___s__s
push eax
call fcn.00401410
add esp, 0x10
jmp 0x4021aa
lea ecx, [esp + 0x20]
push str.Found___s__s
push ecx
call fcn.00401410
mov edx, dword [esp + 0x4c]
push ebx
push ebp
push edx
call fcn.004115d5
add esp, 0x1c
mov esi, dword [esp + 0x38]
push esi
push ebp
lea eax, [esp + 0x20]
push str.lpSection:__s__lpDefualt:__s
push eax
call fcn.00401410
push esi
push ebp
call fcn.004117db
mov edi, dword [esp + 0x2c]
add esp, 0x18
jmp 0x4021e2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push ebx
push ecx
push edx
call fcn.004115d5
add esp, 0xc
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push str.Decorated_Section:__s
push ecx
call fcn.00401410
add esp, 0xc
test ebp, ebp
je 0x402206
push ebp
call fcn.00407614
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x402217
push eax
call fcn.00407614
add esp, 4
test edi, edi
je 0x402224
push edi
call fcn.00407614
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004012d0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x18