Function at 0x539a30
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 esi, dword [ebp + 8]
mov dword [esp + 0x18], eax
cmp word [esi + 0x48], 0
movsx ecx, word [esi + 2]
movsx edx, word [esi]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
jne 0x539b3e
lea eax, [esi + 0x4d]
lea ecx, [ebx + 4]
push eax
call fcn.0053c270
mov edi, dword [ebx + 4]
push esi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], 1
call fcn.005838d8
add esp, 4
cmp byte [ebx + 0x50], 0
jne 0x539b17
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x1c]
shl eax, 2
push eax
call fcn.00583e4c
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.005854c0
mov ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.00539e50
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 edi, edi
je 0x539b33
mov ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x18]
push eax
call fcn.00539e50
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 edi, [ebx + 0x5c]
mov byte [ebx + 0x50], 0
mov dword [esp + 0xc], edi
cmp dword [ebx + 0x58], edx
jne 0x539b56
cmp dword [edi], ecx
je 0x539bdb
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0xc], edi
test eax, eax
je 0x539b8d
push eax
call fcn.005838d8
add esp, 4
mov dword [ebx + 0xa0], 0
push dword [ebx + 0xa4]
call fcn.005838d8
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, edx
mov dword [edi], ecx
imul eax, ecx
xor ecx, ecx
mov dword [ebx + 0x58], edx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00583e4c
mov dword [ebx + 0xa0], eax
xor ecx, ecx
mov eax, dword [ebx + 0x58]
add esp, 4
imul eax, dword [edi]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00583e4c
add esp, 4
mov dword [ebx + 0xa4], eax
cmp byte [esi + 0x4c], 0
jne 0x539c48
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6e93b0]
cmp eax, dword [ecx + 4]
jg 0x539d50
mov edx, dword [ebx + 0x58]
movsx eax, word [esi + 0x4a]
movsx ecx, word [esi + 0x46]
push 3
push 4
push eax
lea eax, [edx*4]
imul ecx, edx
push eax
movsx eax, word [esi + 0x48]
push eax
movsx eax, word [esi + 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, [esi + 0x4d]
push eax
push dword [0x6e93b4]
call fcn.004026b0
add esp, 0x24
jmp 0x539cdd
movsx eax, word [esi + 0x48]
lea edx, [esp + 0x14]
movsx ecx, word [esi + 0x4a]
imul ecx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xffffffb3
push eax
lea eax, [esi + 0x4d]
shl ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0xa4]
push eax
call fcn.00543250
mov eax, dword [esp + 0x14]
add esp, 8
mov dword [esp + 0xc], eax
xor edi, edi
xor eax, eax
cmp ax, word [esi + 0x4a]
jge 0x539cd9
lea esp, [esp]
movsx ecx, word [esi + 0x48]
lea eax, [ecx*4]
imul ecx, edi
push eax
mov eax, dword [ebx + 0xa4]
lea eax, [eax + ecx*4]
movsx ecx, word [esi + 0x46]
add ecx, edi
imul ecx, dword [ebx + 0x58]
push eax
movsx eax, word [esi + 0x44]
add ecx, eax
mov eax, dword [ebx + 0xa0]
lea eax, [eax + ecx*4]
push eax
call fcn.005854c0
movsx eax, word [esi + 0x4a]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x539c90
lea edi, [ebx + 0x5c]
jmp 0x539cdd
mov edi, dword [esp + 0xc]
push esi
call fcn.005838d8
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx]
cmp ecx, 0x12c
jbe 0x539d45
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x1c]
shl eax, 2
push eax
call fcn.00583e4c
mov ecx, dword [edi]
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.005854c0
mov ecx, dword [ebx + 0xa8]
lea eax, [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x2c], 0
push eax
call fcn.00539e50
mov byte [ebx + 0x50], 1
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x6e93b0
call fcn.00583a10
add esp, 4
cmp dword [0x6e93b0], 0xffffffff
jne 0x539bfa
call fcn.00401e20
push 0x6e93b0
mov dword [0x6e93b4], eax
call fcn.005839c6
add esp, 4
jmp 0x539bfa