Function at 0x40c5d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fda83
mov eax, dword fs:[0]
push eax
sub esp, 0x848
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 - 0x850], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x844], eax
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x854], esi
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebx], ax
jne 0x40c65b
xor ecx, ecx
jmp 0x40c66f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c660
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x828]
call fcn.00407210
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
jb 0x40c6a9
mov eax, dword [esi]
jmp 0x40c6ab
mov eax, esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
lea eax, [ebp - 0x828]
push ecx
push eax
mov ecx, esi
call fcn.004070f0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x84c], 1
jne 0x40c74e
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005d4960
lea eax, [edi + 0xd4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40c6f5
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x810], 0
jne 0x40c723
xor ecx, ecx
jmp 0x40c73f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c730
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00407210
mov edi, dword [ebp - 0x814]
lea eax, [ebp - 0x828]
cmp edi, 8
cmovae eax, dword [ebp - 0x828]
cmp dword [esi + 0x14], 8
jb 0x40c76e
mov ecx, dword [esi]
jmp 0x40c770
mov ecx, esi
push dword [ebp - 0x818]
push eax
push dword [esi + 0x10]
push ecx
call fcn.00407020
add esp, 0x10
test eax, eax
jne 0x40c80e
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x840]
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x848]
push eax
call fcn.0040c980
mov edi, eax
cmp esi, edi
je 0x40c7ea
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40c7c3
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407310
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40c7db
mov eax, dword [esi]
jmp 0x40c7dd
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00406bc0
mov eax, dword [ebp - 0x82c]
cmp eax, 8
jb 0x40c808
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00407310
mov edi, dword [ebp - 0x814]
cmp edi, 8
jb 0x40c828
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.00407310
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.005caa5c
mov esp, ebp
pop ebp
ret 0x14