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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x7974d0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, dword [0x83f380]
xor eax, eax
push ebp
push 0x797d1c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x797cdd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x51e], 0
je 0x797519
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
call fcn.0040d96c
fstp qword [ebp - 0x10]
wait
lea eax, [ebp - 0x24]
mov edx, 0x797d34
call fcn.00404c54
xor edx, edx
push ebp
push 0x797ccc
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 0x3e], 1
mov eax, dword [esi]
cmp byte [eax + 0x13f4], 0
je 0x797953
mov eax, dword [esi]
cmp byte [eax + 0x13f5], 0
jne 0x797953
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d9d48
movzx eax, ax
mov ecx, 7
xor edx, edx
div ecx
mov edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
call fcn.004a0180
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
call fcn.0078d1cc
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x358]
call fcn.004a0180
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
call fcn.0078d1cc
fstp qword [ebp - 0x20]
wait
xor ebx, ebx
mov byte [ebp - 0x3d], 0
fld qword [ebp - 0x20]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jbe 0x797675
mov eax, dword [esi]
cmp byte [eax + edi + 0x13f6], 0
jne 0x7975e2
mov bl, 1
jmp 0x797725
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0078d2e4
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0078d2e4
fstp qword [ebp - 0x20]
wait
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jb 0x797628
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
jbe 0x79762a
mov bl, 1
test bl, bl
je 0x797725
mov eax, dword [ebp - 4]
cmp byte [eax + 0x508], 0
je 0x797725
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
jbe 0x797725
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
push 2
call fcn.004d9e34
fcomp qword [ebp - 0x10]
fnstsw ax
sahf
jb 0x797725
mov byte [ebp - 0x3d], 1
jmp 0x797725
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0078d2e4
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0078d2e4
fstp qword [ebp - 0x20]
wait
test edi, edi
jne 0x7976b2
mov dword [ebp - 0x3c], 6
jmp 0x7976b8
mov eax, edi
dec eax
mov dword [ebp - 0x3c], eax
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jb 0x7976cf
mov eax, dword [esi]
cmp byte [eax + edi + 0x13f6], 0
jne 0x7976eb
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
ja 0x7976e9
mov eax, dword [esi]
mov edx, dword [ebp - 0x3c]
cmp byte [eax + edx + 0x13f6], 0
jne 0x7976eb
mov bl, 1
test bl, bl
je 0x797725
mov eax, dword [ebp - 4]
cmp byte [eax + 0x508], 0
je 0x797725
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
push 2
call fcn.004d9e34
fcomp qword [ebp - 0x10]
fnstsw ax
sahf
jb 0x797725
mov eax, dword [esi]
mov edx, dword [ebp - 0x3c]
cmp byte [eax + edx + 0x13f6], 0
je 0x797725
mov byte [ebp - 0x3d], 1
test bl, bl
je 0x797833
mov eax, dword [ebp - 4]
cmp byte [eax + 0x508], 0
je 0x79779a
mov eax, dword [ebp - 4]
mov byte [eax + 0x508], 0
xor eax, eax
push ebp
push 0x797790
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x3d], 0
je 0x797786
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
call fcn.00794de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79779a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea edx, [ebp - 0x28]
mov eax, 0x797d50
call fcn.0040e6d4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea edx, [ebp - 0x2c]
mov eax, 0x797d50
call fcn.0040e6d4
push 0x797d64
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.007972d4
push dword [ebp - 0x44]
push 0x797d70
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404f44
push 0x797d7c
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push 0x797d90
push dword [ebp - 0x2c]
push 0x797d70
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00404f44
mov edx, dword [ebp - 0x48]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
mov dword [eax + 0x500], 0
mov dword [eax + 0x504], 0
jmp 0x797c88
mov eax, dword [ebp - 4]
cmp dword [eax + 0x504], 0
jne 0x797879
cmp dword [eax + 0x500], 0
jne 0x797879
mov eax, dword [ebp - 4]
mov byte [eax + 0x508], 0
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
call fcn.00794de4
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
call sub.kernel32.dll_GetTickCount
xor edx, edx
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x500]
sbb edx, dword [ecx + 0x504]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
fild qword [ebp - 0x50]
fdiv dword [0x797d98]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00432628
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x7978bf
cmp dword [ebp - 0x38], 0
jb 0x7978d8
jmp 0x7978c1
jl 0x7978d8
mov eax, dword [esi]
mov eax, dword [eax + 0x13f0]
cdq
cmp edx, dword [ebp - 0x34]
jne 0x7978d6
cmp eax, dword [ebp - 0x38]
ja 0x797909
jmp 0x7978d8
jg 0x797909
mov eax, dword [ebp - 4]
mov byte [eax + 0x508], 0
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
call fcn.00794de4
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
mov eax, dword [ebp - 4]
mov byte [eax + 0x508], 1
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x13f0]
cdq
sub eax, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0040b238
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov eax, 0x797da4
call fcn.00812a10
mov edx, dword [ebp - 0x54]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.007969ac
jmp 0x797c88
mov eax, dword [esi]
cmp byte [eax + 0x13f4], 0
je 0x797a31
mov eax, dword [esi]
cmp byte [eax + 0x13f5], 0
je 0x797a31
fld qword [ebp - 0x10]
mov eax, dword [esi]
fcomp qword [eax + 0x13e0]
fnstsw ax
sahf
jbe 0x797a31
fld qword [ebp - 0x10]
mov eax, dword [esi]
fcomp qword [eax + 0x13e0]
fnstsw ax
sahf
jbe 0x7979d6
mov eax, dword [esi]
push dword [eax + 0x13e4]
push dword [eax + 0x13e0]
push 0
push 2
call fcn.004d9e34
fcomp qword [ebp - 0x10]
fnstsw ax
sahf
jb 0x7979d6
lea eax, [ebp - 0x24]
mov edx, 0x797dc8
call fcn.00404c54
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
call fcn.00794de4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47c]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov edx, eax
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.007963d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x797a1f
mov eax, dword [ebp - 4]
mov byte [eax + 0x51f], 1
mov byte [ebp - 0x3e], 0
mov eax, dword [ebp - 4]
call fcn.0046e0d4
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
mov eax, dword [esi]
cmp byte [eax + 0x13f4], 0
je 0x797b8b
mov eax, dword [esi]
cmp byte [eax + 0x13f5], 0
je 0x797b8b
fld qword [ebp - 0x10]
mov eax, dword [esi]
fcomp qword [eax + 0x13d8]
fnstsw ax
sahf
jae 0x797b8b
mov eax, dword [esi]
push dword [eax + 0x13dc]
push dword [eax + 0x13d8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.007916c0
test al, al
je 0x797ac2
mov eax, dword [esi]
push dword [eax + 0x13dc]
push dword [eax + 0x13d8]
mov eax, dword [esi]
push dword [eax + 0x13e4]
push dword [eax + 0x13e0]
call fcn.007916c0
test al, al
je 0x797ac2
mov eax, dword [esi]
push dword [eax + 0x13dc]
push dword [eax + 0x13d8]
lea edx, [ebp - 0x28]
mov eax, 0x797d50
call fcn.0040e6d4
jmp 0x797add
mov eax, dword [esi]
push dword [eax + 0x13dc]
push dword [eax + 0x13d8]
lea edx, [ebp - 0x28]
mov eax, 0x797de8
call fcn.0040e6d4
mov eax, dword [esi]
push dword [eax + 0x13dc]
push dword [eax + 0x13d8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.007916c0
test al, al
je 0x797b3c
mov eax, dword [esi]
push dword [eax + 0x13dc]
push dword [eax + 0x13d8]
mov eax, dword [esi]
push dword [eax + 0x13e4]
push dword [eax + 0x13e0]
call fcn.007916c0
test al, al
je 0x797b3c
mov eax, dword [esi]
push dword [eax + 0x13e4]
push dword [eax + 0x13e0]
lea edx, [ebp - 0x2c]
mov eax, 0x797d50
call fcn.0040e6d4
jmp 0x797b57
mov eax, dword [esi]
push dword [eax + 0x13e4]
push dword [eax + 0x13e0]
mov eax, 0x797de8
lea edx, [ebp - 0x2c]
call fcn.0040e6d4
push 0x797d7c
push dword [ebp - 0x28]
push 0x797d90
push dword [ebp - 0x2c]
push 0x797e04
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.00404f44
mov edx, dword [ebp - 0x5c]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.007969ac
jmp 0x797c88
mov eax, dword [ebp - 4]
cmp dword [eax + 0x504], 0
jne 0x797bc7
cmp dword [eax + 0x500], 0
jne 0x797bc7
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
call fcn.00794de4
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
call sub.kernel32.dll_GetTickCount
xor edx, edx
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x500]
sbb edx, dword [ecx + 0x504]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
fild qword [ebp - 0x50]
fdiv dword [0x797d98]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00432628
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x797c0d
cmp dword [ebp - 0x38], 0
jb 0x797c26
jmp 0x797c0f
jl 0x797c26
mov eax, dword [esi]
mov eax, dword [eax + 0x13f0]
cdq
cmp edx, dword [ebp - 0x34]
jne 0x797c24
cmp eax, dword [ebp - 0x38]
ja 0x797c4d
jmp 0x797c26
jg 0x797c4d
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.007969ac
mov eax, dword [ebp - 4]
call fcn.00794de4
call fcn.00404628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797ce7
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x13f0]
cdq
sub eax, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
push edx
push eax
lea eax, [ebp - 0x64]
call fcn.0040b238
mov edx, dword [ebp - 0x64]
mov eax, 0x797da4
xor ecx, ecx
call fcn.00812a10
mov edx, dword [ebp - 0x60]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.007969ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x797cd3
cmp byte [ebp - 0x3e], 0
je 0x797ccb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x41c]
inc dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x41c]
cmp dword [eax + 0xc], 4
jl 0x797ccb
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
call fcn.00796ea8
mov eax, dword [ebp - 4]
call fcn.00796e08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x797d23
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.00404be0
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404be0
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404be0
ret