Function at 0x40c9d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd5e3
mov eax, dword fs:[0]
push eax
sub esp, 0x848
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 - 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 0x40ca5b
xor ecx, ecx
jmp 0x40ca6f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ca60
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x828]
call fcn.00407280
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 0x40caa9
mov eax, dword [esi]
jmp 0x40caab
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.00407160
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x84c], 1
jne 0x40cb4e
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005d4520
lea eax, [edi + 0xd4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40caf5
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 0x40cb23
xor ecx, ecx
jmp 0x40cb3f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00407280
mov edi, dword [ebp - 0x814]
lea eax, [ebp - 0x828]
cmp edi, 8
cmovae eax, dword [ebp - 0x828]
cmp dword [esi + 0x14], 8
jb 0x40cb6e
mov ecx, dword [esi]
jmp 0x40cb70
mov ecx, esi
push dword [ebp - 0x818]
push eax
push dword [esi + 0x10]
push ecx
call fcn.00407090
add esp, 0x10
test eax, eax
jne 0x40cc0e
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x840]
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x848]
push eax
call fcn.0040cd80
mov edi, eax
cmp esi, edi
je 0x40cbea
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40cbc3
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407380
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40cbdb
mov eax, dword [esi]
jmp 0x40cbdd
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00406c30
mov eax, dword [ebp - 0x82c]
cmp eax, 8
jb 0x40cc08
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00407380
mov edi, dword [ebp - 0x814]
cmp edi, 8
jb 0x40cc28
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
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 0x14