Function at 0x41ec40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6216
mov eax, dword fs:[0]
push eax
sub esp, 0xa60
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
push edi
mov eax, dword [0x4ccecc]
xor eax, esp
push eax
lea eax, [esp + 0xa70]
mov dword fs:[0], eax
mov esi, ecx
push 0x800
mov dword [esp + 0x24], esi
call fcn.0044296c
add esp, 4
push 0x5000
mov dword [esp + 0x18], eax
call fcn.0044296c
add esp, 4
push 0x1fe
xor ebx, ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x6a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x70], ax
call fcn.00455040
add esp, 0xc
push 0x7fe
lea eax, [esp + 0x26a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x270], dx
call fcn.00455040
lea ecx, [esi + 0x38]
add esp, 0xc
push ecx
add esi, 0x1c
push esi
lea edi, [esp + 0x34]
mov dword [esp + 0x24], ebx
call fcn.0040b9b0
mov dword [esp + 0xa80], ebx
push eax
mov ebx, str..ini
lea esi, [esp + 0x54]
call fcn.0040b8f0
add esp, 0xc
mov ebx, 8
mov byte [esp + 0xa78], 2
cmp dword [esp + 0x44], ebx
jb 0x41ed32
mov edx, dword [esp + 0x30]
push edx
call fcn.00442977
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + 4]
add esi, 0x6c
xor eax, eax
xor edi, edi
push edx
mov ecx, esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
call fcn.0041fe90
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebx
jae 0x41ed81
lea eax, [esp + 0x4c]
mov esi, dword [esp + 0x14]
push eax
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [esp + 0x28], eax
cmp eax, edi
jbe 0x41ee97
mov edi, edi
push 0x200
lea eax, [esp + 0x68]
push 0
push eax
call fcn.00455040
mov ecx, dword [esp + 0x28]
lea edx, [esi + ecx*2]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41edc0
sub eax, esi
sar eax, 1
mov edi, eax
push edi
push edx
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x30], edi
call fcn.00450ffb
mov eax, dword [esp + 0x58]
add esp, 0xc
cmp dword [esp + 0x60], ebx
jae 0x41edf2
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x1c]
push 0x2800
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ebx, eax
xor esi, esi
test ebx, ebx
jbe 0x41ee78
push 0x800
lea edx, [esp + 0x268]
push 0
push edx
call fcn.00455040
mov eax, dword [esp + 0x24]
lea ecx, [eax + esi*2]
mov eax, ecx
add esp, 0xc
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41ee33
sub eax, edi
sar eax, 1
mov edi, eax
push edi
push ecx
lea ecx, [esp + 0x26c]
push ecx
call fcn.00450ffb
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x26c]
lea esi, [esi + edi + 1]
call fcn.0041ef40
cmp esi, ebx
jb 0x41ee10
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea eax, [ecx + edi + 1]
mov dword [esp + 0x1c], eax
mov ebx, 8
cmp eax, dword [esp + 0x28]
jb 0x41eda0
test esi, esi
je 0x41eea4
push esi
call fcn.00442977
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41eeb5
push eax
call fcn.00442977
add esp, 4
cmp dword [esp + 0x60], ebx
jb 0x41eec8
mov edx, dword [esp + 0x4c]
push edx
call fcn.00442977
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xa70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.0044e200
mov esp, ebp
pop ebp
ret