Function at 0x401477
Capabilities:
Read .ini file

Disassembly:
push 0x110
mov eax, 0x46b08b
call fcn.004517f7
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
push 0xa
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x114], eax
call fcn.0042ada0
and dword [ebp - 4], 0
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.0040279b
lea ecx, [esi + 0x28]
call fcn.0040279b
lea ebx, [esi + 0x2c]
mov ecx, ebx
call fcn.0040279b
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x114]
call fcn.00404621
and dword [esi + 4], 0
mov byte [esi], al
test al, al
je 0x4016ed
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x114]
call fcn.004010e3
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040275e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x114]
call fcn.004010fe
push eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call fcn.0040275e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x114]
call fcn.00404638
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [ebp - 0x118]
push eax
call fcn.00408576
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.0040275e
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x114]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, dword [ebx]
mov ecx, dword [edi]
push eax
push 0
push str.count
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [ebp - 0x114], 0
mov dword [esi + 4], eax
test eax, eax
jle 0x401647
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push str.item_04d
push eax
call fcn.00401c07
mov eax, dword [ebx]
mov ecx, dword [edi]
add esp, 0xc
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x47741c
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
lea eax, [esi + 0x28]
push eax
call fcn.004017d1
test eax, eax
je 0x401616
inc dword [ebp - 0x114]
mov eax, dword [ebp - 0x114]
cmp eax, dword [esi + 4]
jl 0x4015b4
jmp 0x401647
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x118]
call fcn.004024c3
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 8
call fcn.0042af5c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040285d
and dword [ebp - 0x114], 0
cmp dword [esi + 4], 0
jle 0x4016ed
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push str.item_04d
push eax
call fcn.00401c07
mov eax, dword [ebx]
mov ecx, dword [edi]
add esp, 0xc
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x47741c
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
lea eax, [esi + 0x28]
push eax
call fcn.004017d1
test eax, eax
je 0x4016d8
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x118]
call fcn.004024c3
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 9
call fcn.0042af5c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040285d
inc dword [ebp - 0x114]
mov eax, dword [ebp - 0x114]
cmp eax, dword [esi + 4]
jl 0x401658
mov eax, esi
call fcn.0045187a
ret 4