Function at 0x40c720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fdbb7
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x69def4]
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.00422100
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.004071d0
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005d4b40
lea ecx, [edi + 0xd4]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x40c7d8
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 0x40c82c
xor ecx, ecx
jmp 0x40c844
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c835
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.004072f0
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.00407100
add esp, 0x10
test eax, eax
jne 0x40c93e
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.0040cde0
mov esi, eax
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x40c91e
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x40c8f5
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.004073f0
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.00406d00
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x40c954
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.004073f0
jmp 0x40c954
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x828]
call fcn.004071d0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.005ded54
mov ecx, dword [ebp - 0x82c]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x40c991
inc ecx
push ecx
push dword [ebp - 0x840]
lea ecx, [ebp - 0x840]
call fcn.004073f0
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 0x40c9cc
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.004073f0
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 0x40ca07
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.004073f0
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.005cabbc
mov esp, ebp
pop ebp
ret 0xc