Function at 0x4eec40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5af760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
mov eax, dword [esp + 0xfc]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x4eec86
call fcn.0058d5de
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x90]
mov dword [esp + 0x108], eax
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.004ef0f0
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 0x10]
call fcn.00575b56
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x104], edi
call fcn.00575faf
cmp eax, 0xffffffff
jne 0x4eecee
push 0x2f
lea ecx, [esp + 0x10]
call fcn.00575faf
cmp eax, 0xffffffff
jne 0x4eecee
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push 0x681408
push eax
call fcn.00575d17
mov dword [esp + 0x10], 1
mov byte [esp + 0x100], 1
jmp 0x4eecf2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.0057585d
mov al, byte [esp + 0x10]
mov dword [esp + 0x100], 3
test al, 1
je 0x4eed18
lea ecx, [esp + 0x18]
call fcn.00575ae8
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffff
push str.nItems
push str.Contests
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], esi
mov byte [esp + 0x100], 0
call fcn.00575ae8
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], 0xffffffff
call fcn.00575ae8
cmp esi, edi
jge 0x4eed65
xor eax, eax
jmp 0x4ef003
cmp esi, edi
mov dword [esp + 0x10], edi
jle 0x4eeffe
push ebp
mov edx, dword [0x614cb0]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push str.Contest__i
push ecx
mov dword [esp + 0x110], 4
call fcn.0056d732
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.004ec0e0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x10c], 5
call fcn.004ee2d0
mov ecx, dword [ebx + 8]
mov edi, ecx
mov dword [esp + 0x18], edi
lea ebp, [edi + 1]
test ebp, ebp
jne 0x4eee18
mov esi, dword [ebx + 4]
test esi, esi
je 0x4eee0b
mov edx, ecx
dec ecx
test edx, edx
je 0x4eedf8
lea ebp, [ecx + 1]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 4]
add esi, 0xd4
dec ebp
jne 0x4eede6
mov eax, dword [ebx + 4]
push eax
call fcn.00571134
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4eefa9
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4eee8f
lea eax, [ebp + ebp*2]
lea edi, [eax + eax*8]
shl edi, 1
sub edi, ebp
shl edi, 2
push edi
call fcn.0057110b
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov esi, edx
mov edi, edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x1c], esi
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [ebp]
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x104], 6
je 0x4eee6f
mov ecx, esi
call fcn.004ec0e0
add esi, 0xd4
dec edi
mov byte [esp + 0x104], 5
mov dword [esp + 0x1c], esi
jne 0x4eee58
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x4eefa5
mov esi, dword [ebx + 0xc]
cmp ebp, esi
jg 0x4eeef4
cmp ecx, ebp
jge 0x4eeeba
mov eax, ebp
sub eax, ecx
push eax
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
lea ecx, [edx + eax*4]
push ecx
call fcn.004943a0
mov dword [ebx + 8], ebp
jmp 0x4eefa9
jle 0x4eeeec
lea eax, [ebp + ebp*2]
sub ecx, ebp
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ebp
lea esi, [edx + eax*4]
mov edx, ecx
dec ecx
test edx, edx
je 0x4eeeec
lea edi, [ecx + 1]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 4]
add esi, 0xd4
dec edi
jne 0x4eeed6
mov edi, dword [esp + 0x18]
mov dword [ebx + 8], ebp
jmp 0x4eefa9
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4eef1e
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4eef12
mov eax, 4
jmp 0x4eef1e
cmp eax, 0x400
jle 0x4eef1e
mov eax, 0x400
add eax, esi
cmp ebp, eax
jge 0x4eef2a
mov dword [esp + 0x10], eax
jmp 0x4eef30
mov dword [esp + 0x10], ebp
mov eax, ebp
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
shl ecx, 2
push ecx
call fcn.0057110b
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
add esp, 4
lea ecx, [edx + edx*2]
mov dword [esp + 0x1c], eax
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, edx
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
sub edx, ecx
push edx
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*8]
shl edx, 1
sub edx, ecx
lea eax, [eax + edx*4]
push eax
call fcn.004943a0
mov eax, dword [ebx + 4]
push eax
call fcn.00571134
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], edx
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov edx, dword [ebx + 4]
push eax
lea eax, [edi + edi*2]
lea ecx, [eax + eax*8]
shl ecx, 1
sub ecx, edi
lea ecx, [edx + ecx*4]
call fcn.004ec260
lea ecx, [esp + 0x28]
mov byte [esp + 0x104], 4
call fcn.004ec1b0
lea ecx, [esp + 0x20]
mov dword [esp + 0x104], 0xffffffff
call fcn.00575ae8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4eed72
pop ebp
mov eax, 1
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xf8
ret 4