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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64817dc6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x64854008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebx + 8], 0
je 0x647f79d3
or esi, 0xffffffff
mov dword [ebp - 0x34], 0x7fffffff
mov dword [ebp - 0x30], esi
jmp 0x647f79ed
push 0
push 0x3e8
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.648076c0
mov esi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov esi, eax
movups xmmword [ebp - 0x28], xmm0
call fcn.647f77d0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
test edi, edi
setne al
test al, al
je 0x647f7b2b
nop dword [eax]
movups xmm0, xmmword [ebx + 8]
movd eax, xmm0
test al, al
jne 0x647f7a67
mov eax, dword [ebp - 0x3c]
sub eax, esi
cmp eax, dword [ebp - 0x30]
ja 0x647f7b43
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x50], 0
call fcn.6479b0d0
movups xmm0, xmmword [ebp - 0x50]
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov esi, dword [edx + 4]
mov ecx, esi
movups xmmword [eax], xmm0
call dword [0x6481d4a8]
mov ecx, edi
call esi
test al, al
je 0x647f7b43
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x647f7acb
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x647f7acb
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x6481d4a8]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x647f7acb
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6481d4a8]
mov ecx, edi
call esi
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x647f7af4
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x647f7af4
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6481d4a8]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov esi, eax
movups xmmword [ebp - 0x28], xmm0
call fcn.647f77d0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
test edi, edi
jne 0x647f7a30
lea ecx, [ebp - 0x50]
call fcn.647f6190
cmp byte [ebx + 8], 0
mov ecx, eax
je 0x647f7b49
mov al, byte [ecx]
test al, al
jne 0x647f7b6f
jmp 0x647f7b5e
mov byte [ebp - 0x29], 0
jmp 0x647f7b73
cmp byte [ecx], 0
jne 0x647f7b5e
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp dword [ebx + 0x10], eax
jne 0x647f7b5e
cmp dword [ebx + 0x14], ecx
je 0x647f7b6f
call fcn.647f7740
test eax, eax
je 0x647f7b6f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x29], 1
lea ecx, [ebp - 0x28]
call fcn.647f75a0
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.648031e0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret