Function at 0x524ca0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x20], 0
push esi
push edi
lea esi, [eax + 4]
mov dword [esp + 0x24], 0
lea edi, [ebx + 0x60]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x24]
mov ecx, 8
mov eax, dword [ebx + 0x54]
lea edi, [ebx + 0x80]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
cmp word [edi + 0x48], 0
movsx eax, word [edi + 2]
movsx edx, word [edi]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jne 0x524dae
lea eax, [edi + 0x4d]
push eax
lea ecx, [ebx + 4]
call fcn.00527800
mov esi, dword [ebx + 4]
push edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x30], 1
call fcn.0056ef26
add esp, 4
cmp byte [ebx + 0x50], 0
jne 0x524d87
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x1c]
shl eax, 2
push eax
call fcn.0056f473
mov ecx, dword [ebx + 0x5c]
add esp, 4
imul ecx, dword [ebx + 0x58]
mov dword [esp + 0x24], eax
shl ecx, 2
push ecx
push dword [ebx + 0xa0]
push eax
call fcn.00586300
mov ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.00525070
mov byte [ebx + 0x50], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x524da3
mov ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x18]
push eax
call fcn.00525070
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [ebx + 0x5c]
mov byte [ebx + 0x50], 0
mov dword [esp + 0xc], esi
cmp dword [ebx + 0x58], edx
jne 0x524dc6
cmp dword [esi], eax
je 0x524e49
mov ecx, dword [ebx + 0xa0]
test ecx, ecx
je 0x524df9
push ecx
call fcn.0056ef26
add esp, 4
mov dword [ebx + 0xa0], 0
push dword [ebx + 0xa4]
call fcn.0056ef26
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esi], eax
xor ecx, ecx
imul eax, edx
mov dword [ebx + 0x58], edx
mov edx, 4
mov dword [esp + 0xc], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f473
mov dword [ebx + 0xa0], eax
xor ecx, ecx
mov eax, dword [ebx + 0x58]
add esp, 4
imul eax, dword [esi]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f473
add esp, 4
mov dword [ebx + 0xa4], eax
cmp byte [edi + 0x4c], 0
jne 0x524eb6
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6e9ec8]
cmp eax, dword [ecx + 4]
jg 0x524fab
mov edx, dword [ebx + 0x58]
movsx eax, word [edi + 0x4a]
movsx ecx, word [edi + 0x46]
push 3
push 4
push eax
lea eax, [edx*4]
imul ecx, edx
push eax
movsx eax, word [edi + 0x48]
push eax
movsx eax, word [edi + 0x44]
add ecx, eax
mov eax, dword [ebx + 0xa0]
lea eax, [eax + ecx*4]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xffffffb3
push eax
lea eax, [edi + 0x4d]
push eax
push dword [0x6e9ecc]
call fcn.00402620
add esp, 0x24
jmp 0x524f38
movsx eax, word [edi + 0x48]
lea edx, [esp + 0x14]
movsx ecx, word [edi + 0x4a]
imul ecx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xffffffb3
push eax
lea eax, [edi + 0x4d]
shl ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0xa4]
push eax
call fcn.0052dd70
xor eax, eax
add esp, 8
xor esi, esi
cmp ax, word [edi + 0x4a]
jge 0x524f34
nop
movsx ecx, word [edi + 0x48]
lea eax, [ecx*4]
imul ecx, esi
push eax
mov eax, dword [ebx + 0xa4]
lea eax, [eax + ecx*4]
movsx ecx, word [edi + 0x46]
add ecx, esi
imul ecx, dword [ebx + 0x58]
push eax
movsx eax, word [edi + 0x44]
add ecx, eax
mov eax, dword [ebx + 0xa0]
lea eax, [eax + ecx*4]
push eax
call fcn.00586300
movsx eax, word [edi + 0x4a]
inc esi
add esp, 0xc
cmp esi, eax
jl 0x524ef0
mov esi, dword [esp + 0xc]
push edi
call fcn.0056ef26
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx]
cmp ecx, 0x12c
jbe 0x524fa0
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x1c]
shl eax, 2
push eax
call fcn.0056f473
mov ecx, dword [ebx + 0x58]
add esp, 4
imul ecx, dword [esi]
mov dword [esp + 0x24], eax
shl ecx, 2
push ecx
push dword [ebx + 0xa0]
push eax
call fcn.00586300
mov ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x2c], 0
push eax
call fcn.00525070
mov byte [ebx + 0x50], 1
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x6e9ec8
call fcn.0056f0e8
add esp, 4
cmp dword [0x6e9ec8], 0xffffffff
jne 0x524e68
call fcn.00401d90
push 0x6e9ec8
mov dword [0x6e9ecc], eax
call fcn.0056f09e
add esp, 4
jmp 0x524e68