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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x77a545
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x823bcc], 0
je 0x77a527
mov eax, dword [0x824a08]
mov eax, dword [eax]
cdq
push edx
push eax
mov eax, dword [ebx + 0x30]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x77a14b
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x77a153
jmp 0x77a527
pop edx
pop eax
jg 0x77a527
mov eax, dword [0x824a08]
mov eax, dword [eax]
add eax, 0x64
mov dword [ebx + 0x30], eax
mov eax, dword [0x824a50]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x824a50]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [0x82452c]
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x823f24]
mov eax, dword [eax]
call fcn.0076f7dc
movzx eax, byte [eax + 0xb2]
add al, 0xfe
sub al, 2
jb 0x77a527
mov eax, dword [0x823f24]
mov eax, dword [eax]
mov edx, dword [ebx + 0xc]
call fcn.0076f7dc
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x77a1cd
cmp byte [eax + 8], 0
je 0x77a1cd
cmp byte [eax + 0xb2], 3
jne 0x77a2cb
mov eax, dword [0x823f24]
mov eax, dword [eax]
call fcn.0076f61c
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x77a2a9
mov eax, dword [0x8249ac]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x77a293
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x2c]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x77a21e
cmp eax, 0x1f4
jae 0x77a224
jmp 0x77a527
jl 0x77a527
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x2c], eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00779d44
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x14]
je 0x77a25d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
je 0x77a25d
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x8249ac]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0073a778
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x77a560
call fcn.004260bc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00779c9c
jmp 0x77a527
mov edx, 0x77a588
mov eax, ebx
call fcn.00779c9c
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x77a527
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx + 0xc]
je 0x77a2cd
mov byte [ebx + 8], 0
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [0x8249ac]
mov eax, dword [eax]
xor edx, edx
call fcn.0073aca4
jmp 0x77a2cd
mov esi, eax
movzx eax, byte [ebx + 8]
sub al, 1
jb 0x77a2e8
je 0x77a465
dec al
je 0x77a4b9
jmp 0x77a527
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0x20]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x77a320
mov eax, dword [ebp - 0x18]
sub eax, dword [esi + 0x24]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x77a320
mov byte [ebx + 8], 1
mov eax, ebx
call fcn.00779fb0
mov edx, 0x77a5b0
mov eax, ebx
call fcn.00779c9c
jmp 0x77a527
movzx eax, word [esi + 0x20]
mov word [ebp - 4], ax
movzx eax, word [esi + 0x24]
mov word [ebp - 6], ax
movzx eax, word [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x14]
movzx edx, word [ebp - 6]
movzx eax, word [ebp - 4]
call fcn.006fa414
mov word [ebp - 2], ax
lea ecx, [ebp - 6]
lea edx, [ebp - 4]
movzx eax, word [ebp - 2]
call fcn.006fa3b8
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 4]
mov eax, ebx
call fcn.00779d30
test al, al
jne 0x77a3aa
xor edi, edi
movzx eax, word [esi + 0x20]
mov word [ebp - 4], ax
movzx eax, word [esi + 0x24]
mov word [ebp - 6], ax
lea ecx, [ebp - 6]
lea edx, [ebp - 4]
mov eax, edi
call fcn.006fa3b8
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 4]
mov eax, ebx
call fcn.00779d30
test al, al
je 0x77a3a4
mov word [ebp - 2], di
jmp 0x77a3aa
inc edi
cmp edi, 8
jne 0x77a36e
cmp word [ebp - 2], 8
jne 0x77a3ba
xor edx, edx
mov eax, esi
call fcn.00772884
mov eax, dword [esi + 0x20]
cmp eax, dword [ebx + 0x10]
jne 0x77a3dc
mov edx, dword [ebx + 0x14]
cmp edx, dword [esi + 0x24]
jne 0x77a3dc
mov edx, dword [0x8249ac]
mov edx, dword [edx]
cmp dword [edx + 4], 0
jne 0x77a527
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x14], eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
mov eax, dword [0x8249ac]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0073a778
mov eax, dword [0x8249ac]
mov eax, dword [eax]
cmp dword [eax + 4], 0
je 0x77a423
mov byte [ebx + 8], 2
mov edx, 0x77a5d4
mov eax, ebx
call fcn.00779c9c
jmp 0x77a527
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x77a5f4
call fcn.004260bc
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00779c9c
xor edx, edx
mov eax, esi
call fcn.00772884
jmp 0x77a527
mov eax, dword [esi + 0x20]
cmp eax, dword [ebx + 0x10]
jne 0x77a475
mov eax, dword [esi + 0x24]
cmp eax, dword [ebx + 0x14]
jge 0x77a47e
mov byte [ebx + 8], 0
jmp 0x77a527
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0x20]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x77a4b3
mov eax, dword [ebp - 0x18]
sub eax, dword [esi + 0x24]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x77a4b3
mov byte [ebx + 8], 1
mov eax, ebx
call fcn.00779fb0
mov edx, 0x77a614
mov eax, ebx
call fcn.00779c9c
jmp 0x77a527
mov byte [ebx + 8], 0
jmp 0x77a527
mov eax, dword [0x8249ac]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x77a4cc
mov byte [ebx + 8], 0
jmp 0x77a527
mov eax, dword [esi + 0x20]
cmp eax, dword [ebx + 0x10]
jne 0x77a4dc
mov eax, dword [esi + 0x24]
cmp eax, dword [ebx + 0x14]
jge 0x77a4ee
mov byte [ebx + 8], 0
mov edx, 0x77a638
mov eax, ebx
call fcn.00779c9c
jmp 0x77a527
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0x20]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x77a523
mov eax, dword [ebp - 0x18]
sub eax, dword [esi + 0x24]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x77a523
mov byte [ebx + 8], 1
mov eax, ebx
call fcn.00779fb0
mov edx, 0x77a65c
mov eax, ebx
call fcn.00779c9c
jmp 0x77a527
mov byte [ebx + 8], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x77a54c
lea eax, [ebp - 0x30]
call fcn.0040a470
lea eax, [ebp - 0x1c]
call fcn.0040a470
ret