Function at 0x40c6c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd587
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x69cef4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x878], edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cdq
push edx
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x874], esi
push eax
call fcn.00421fc0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x828]
lea eax, [ebp - 0x858]
mov dword [ebp - 0x814], 7
push eax
mov dword [ebp - 0x818], 0
call fcn.00407160
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005d4520
lea ecx, [edi + 0xd4]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x40c778
mov ecx, dword [ecx]
cmp dword [ebp - 0x844], 8
lea eax, [ebp - 0x858]
push ecx
cmovae eax, dword [ebp - 0x858]
lea ecx, [ebp - 0x810]
push 0x400
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x82c], 7
mov dword [ebp - 0x830], 0
mov word [ebp - 0x840], ax
cmp word [ebp - 0x810], ax
jne 0x40c7cc
xor ecx, ecx
jmp 0x40c7e4
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7d5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00407280
mov esi, dword [ebp - 0x844]
lea ecx, [ebp - 0x858]
push dword [ebp - 0x848]
mov edi, dword [ebp - 0x858]
lea eax, [ebp - 0x840]
cmp esi, 8
mov byte [ebp - 4], 2
cmovae ecx, edi
cmp dword [ebp - 0x82c], 8
push ecx
cmovae eax, dword [ebp - 0x840]
push dword [ebp - 0x830]
push eax
call fcn.00407090
add esp, 0x10
test eax, eax
jne 0x40c8de
mov ecx, dword [ebp - 0x878]
lea eax, [ebp - 0x858]
cmp esi, 8
cmovae eax, edi
push eax
push dword [ebp - 0x874]
lea eax, [ebp - 0x870]
push ebx
push eax
call fcn.0040cd80
mov esi, eax
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x40c8be
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x40c895
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00407380
xor eax, eax
mov dword [ebp - 0x814], 7
push esi
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.00406c30
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x40c8f4
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00407380
jmp 0x40c8f4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x828]
call fcn.00407160
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.005de754
mov ecx, dword [ebp - 0x82c]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x40c931
inc ecx
push ecx
push dword [ebp - 0x840]
lea ecx, [ebp - 0x840]
call fcn.00407380
xor eax, eax
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x830], 0
cmp eax, 8
jb 0x40c96c
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00407380
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x818], 0
cmp eax, 8
jb 0x40c9a7
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00407380
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ca59c
mov esp, ebp
pop ebp
ret 0xc