Function at 0x40ca30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fdc13
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 0x40cabb
xor ecx, ecx
jmp 0x40cacf
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cac0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x828]
call fcn.004072f0
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 0x40cb09
mov eax, dword [esi]
jmp 0x40cb0b
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.004071d0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x84c], 1
jne 0x40cbae
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005d4b40
lea eax, [edi + 0xd4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40cb55
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 0x40cb83
xor ecx, ecx
jmp 0x40cb9f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004072f0
mov edi, dword [ebp - 0x814]
lea eax, [ebp - 0x828]
cmp edi, 8
cmovae eax, dword [ebp - 0x828]
cmp dword [esi + 0x14], 8
jb 0x40cbce
mov ecx, dword [esi]
jmp 0x40cbd0
mov ecx, esi
push dword [ebp - 0x818]
push eax
push dword [esi + 0x10]
push ecx
call fcn.00407100
add esp, 0x10
test eax, eax
jne 0x40cc6e
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x840]
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x848]
push eax
call fcn.0040cde0
mov edi, eax
cmp esi, edi
je 0x40cc4a
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40cc23
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004073f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40cc3b
mov eax, dword [esi]
jmp 0x40cc3d
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00406d00
mov eax, dword [ebp - 0x82c]
cmp eax, 8
jb 0x40cc68
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.004073f0
mov edi, dword [ebp - 0x814]
cmp edi, 8
jb 0x40cc88
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
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 0x14