Function at 0x40e410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4510c3
mov eax, dword fs:[0]
push eax
sub esp, 0x3f4
mov eax, dword [0x470070]
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
cmp dword [ecx + 0x18], 8
lea esi, [ecx + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x240], esi
jb 0x40e454
mov eax, dword [esi]
jmp 0x40e456
mov eax, esi
push eax
push 0
push str.Count
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edi, edi
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x23c], edi
test eax, eax
jle 0x40e71e
nop
xor eax, eax
mov dword [ebp - 0x24c], 7
xor ecx, ecx
mov word [ebp - 0x260], ax
cmp word [str.StatsData_d], cx
mov eax, 0xb
mov dword [ebp - 0x250], 0
cmove eax, ecx
lea ecx, [ebp - 0x260]
push eax
push str.StatsData_d
call fcn.00405cd0
push edi
lea edx, [ebp - 0x260]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040e8b0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x40e4fa
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00405ec0
xor eax, eax
mov dword [ebp - 0x24c], 7
push 0x18e
push eax
mov word [ebp - 0x260], ax
mov dword [ebp - 0x238], eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push eax
mov dword [ebp - 0x250], 0
call fcn.00432580
add esp, 0xc
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0xa0], xmm0
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x40e559
mov eax, dword [esi]
jmp 0x40e55b
mov eax, esi
push eax
push 0x1a0
lea eax, [ebp - 0x238]
push eax
push ecx
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x40e62a
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x238]
cmp eax, edi
jae 0x40e5f1
mov eax, dword [ebx]
lea ecx, [ebp - 0x238]
cmp eax, ecx
ja 0x40e5f1
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x244], eax
cmp edi, dword [ebx + 8]
jne 0x40e5c1
push ecx
mov ecx, ebx
call fcn.00405bd0
mov eax, dword [ebp - 0x244]
mov edi, dword [ebx + 4]
imul eax, eax, 0x1a0
add eax, dword [ebx]
test edi, edi
je 0x40e5df
mov ecx, 0x68
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x240]
add dword [ebx + 4], 0x1a0
mov edi, dword [ebp - 0x23c]
jmp 0x40e6ef
cmp edi, dword [ebx + 8]
jne 0x40e5fe
push ecx
mov ecx, ebx
call fcn.00405bd0
mov edi, dword [ebx + 4]
test edi, edi
je 0x40e618
mov ecx, 0x68
lea esi, [ebp - 0x238]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x240]
add dword [ebx + 4], 0x1a0
mov edi, dword [ebp - 0x23c]
jmp 0x40e6ef
xor eax, eax
mov dword [ebp - 0x98], 0
push 0x62
push eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push eax
call fcn.00432580
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x40e66c
mov ecx, dword [esi]
jmp 0x40e66e
mov ecx, esi
push ecx
push 0x70
lea ecx, [ebp - 0x98]
push ecx
push eax
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x40e6ef
push 0x190
lea eax, [ebp - 0x3fc]
push 0
push eax
call fcn.00432580
mov eax, dword [ebp - 0x98]
xorps xmm0, xmm0
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x94]
push 0x31
push eax
lea eax, [ebp - 0x3fc]
movlpd qword [ebp - 0x268], xmm0
push 0xc8
push eax
call fcn.004350ff
mov eax, dword [ebp - 0x30]
add esp, 0x1c
mov dword [ebp - 0x268], eax
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x400]
push eax
call fcn.00405ab0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40e70b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405ec0
inc edi
mov dword [ebp - 0x23c], edi
cmp edi, dword [ebp - 0x248]
jl 0x40e480
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.004195c1
mov esp, ebp
pop ebp
ret 4