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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 8], cx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.00405814
xor eax, eax
push ebp
push 0x6639b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2e0], 0
jne 0x663442
mov eax, dword [ebp - 4]
lea edx, [eax + 0x15]
lea eax, [ebp - 0x54]
call fcn.004039c4
mov edx, 0x6639cc
lea eax, [ebp - 0x54]
mov cl, 0x25
call fcn.00403994
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x2c]
call fcn.004055f8
mov eax, dword [ebp - 0x2c]
call fcn.0049fdd4
jmp 0x66398e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x31f], 0
jne 0x66345a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2a5], 0
je 0x6634b6
cmp dword [ebp + 8], 0
jbe 0x66348d
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x66398e
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.00662c2c
jmp 0x66398e
mov eax, dword [0x6c0840]
push eax
call sub.kernel32.dll_EnterCriticalSection
xor edi, edi
push ebp
push 0x663987
push dword fs:[edi]
mov dword fs:[edi], esp
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x3ec]
cmp eax, 0x1f4
jae 0x6634f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
cmp dword [eax + 8], 0
jne 0x6637f2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x3ec], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x24]
mov edx, ecx
mov eax, dword [select]
mov eax, dword [eax + 0x1b70]
sub edx, eax
mov ebx, dword [select]
add ecx, eax
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x28]
mov esi, ebx
mov edi, dword [select]
sub esi, eax
mov dword [ebp - 0x18], esi
mov esi, dword [select]
add ebx, eax
mov dword [ebp - 0x1c], ebx
sub ecx, edx
jl 0x6637e8
inc ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub edx, eax
jl 0x6637dc
inc edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00673738
test al, al
je 0x6637d0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
test eax, eax
je 0x6637d0
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x6637d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
call fcn.0041fbf0
mov ebx, eax
test ebx, ebx
je 0x6637c3
cmp byte [ebx], 1
jne 0x6637c3
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 5]
cmp eax, 0x2bf20
jb 0x66361a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
call fcn.0041fa94
mov edx, 0xa
mov eax, ebx
call fcn.00402fb0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
jg 0x6637c3
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.004114f8
jmp 0x6637d0
xor eax, eax
push ebp
push 0x663749
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebx + 1]
test ebx, ebx
je 0x66373f
cmp byte [ebx + 0x2e4], 0
jne 0x66373f
cmp byte [ebx + 0x22a], 0
jne 0x6636b0
cmp dword [ebp + 8], 0
jbe 0x663678
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x18]
jmp 0x66369b
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00662c2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov edx, ebx
call fcn.0041fa48
jmp 0x66373f
cmp byte [ebx + 0x2f8], 0
je 0x66373f
cmp word [ebp - 6], 0x9e
je 0x6636dd
cmp word [ebp - 6], 0xa6
je 0x6636dd
cmp word [ebp - 6], 0x9f
je 0x6636dd
cmp word [ebp - 6], 0xbc
jne 0x66373f
cmp dword [ebp + 8], 0
jbe 0x66370c
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x18]
jmp 0x66372f
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00662c2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov edx, ebx
call fcn.0041fa48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6637c3
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6635b0
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x663572
inc dword [ebp - 0x10]
dec dword [ebp - 0x24]
jne 0x66355d
call fcn.00404d90
jmp 0x66398e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x66396e
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov edx, esi
call fcn.0041fbf0
mov ebx, eax
test ebx, ebx
je 0x663964
cmp byte [ebx + 0x2e4], 0
jne 0x663964
mov eax, dword [ebx + 0x2e0]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x2e0]
jne 0x663964
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x24]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [select]
cmp eax, dword [edx + 0x1b70]
jg 0x663964
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x28]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [select]
cmp eax, dword [edx + 0x1b70]
jg 0x663964
cmp byte [ebx + 0x22a], 0
jne 0x6638e9
cmp dword [ebp + 8], 0
jbe 0x6638c4
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x663964
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00662c2c
jmp 0x663964
cmp byte [ebx + 0x2f8], 0
je 0x663964
cmp word [ebp - 6], 0x9e
je 0x663912
cmp word [ebp - 6], 0xa6
je 0x663912
cmp word [ebp - 6], 0x9f
je 0x663912
cmp word [ebp - 6], 0xbc
jne 0x663964
cmp dword [ebp + 8], 0
jbe 0x663941
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x663964
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00662c2c
inc esi
dec dword [ebp - 0x24]
jne 0x66380d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66398e
mov eax, dword [0x6c0840]
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6639c0
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004053b8
lea eax, [ebp - 0x2c]
call fcn.00405394
lea eax, [ebp + 0xc]
call fcn.00405394
ret