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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6653c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2e0], 0
jne 0x664df3
mov eax, 0x6653e4
call fcn.0049fdd4
jmp 0x6653ae
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
je 0x664e55
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
call fcn.00675758
test al, al
jne 0x664e55
mov eax, dword [ebp - 4]
cmp byte [eax + 0x263], 0
jne 0x664e55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x2c]
movzx edx, word [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.006633cc
jmp 0x6653ae
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x24]
push ebp
push 0x665325
push dword fs:[0]
mov dword fs:[0], esp
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
call fcn.00673738
xor esi, esi
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 4]
mov byte [edx + 0xbbc], 3
mov dword [ebp - 0x18], 2
mov byte [ebp - 0x25], 0
test al, al
je 0x664fb9
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x664fb9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x664fb9
inc edi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.0041fbf0
test eax, eax
je 0x664fb1
movzx edx, byte [eax]
cmp dl, 4
jne 0x664f08
mov esi, dword [eax + 1]
jmp 0x664fb1
cmp dl, 3
jne 0x664f22
mov edx, dword [eax + 1]
cmp dword [edx + 0x30], 0
je 0x664fb1
mov dword [ebp - 0x14], edx
jmp 0x664fb1
cmp dl, 0x14
jne 0x664f37
mov eax, dword [ebp - 4]
mov byte [eax + 0xbbc], 1
mov byte [ebp - 0x25], 1
jmp 0x664fb1
cmp dl, 0x15
jne 0x664f48
mov eax, dword [ebp - 4]
mov byte [eax + 0xbbc], 2
jmp 0x664fb1
cmp dl, 0x16
jne 0x664f53
mov byte [ebp - 0x25], 1
jmp 0x664fb1
cmp byte [eax], 0xe
jne 0x664f78
cmp dword [ebp - 8], 0x98
jne 0x664f78
mov edx, dword [select]
cmp byte [edx + 0x6bfd], 0
je 0x664f78
mov eax, dword [eax + 1]
mov dword [ebp - 0x1c], eax
jmp 0x664fb1
cmp byte [eax], 0xf
jne 0x664f9d
cmp dword [ebp - 8], 0x99
jne 0x664f9d
mov edx, dword [select]
cmp byte [edx + 0x6bfe], 0
je 0x664f9d
mov eax, dword [eax + 1]
mov dword [ebp - 0x1c], eax
jmp 0x664fb1
cmp byte [eax], 0x10
jne 0x664fb1
cmp dword [ebp - 8], 0xd3
jne 0x664fb1
mov eax, dword [eax + 1]
mov dword [ebp - 0x1c], eax
inc ebx
dec edi
jne 0x664ee3
mov dword [ebp - 0x18], 3
cmp byte [ebp - 0x25], 0
je 0x664ffc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x263], 0
je 0x664ffc
mov byte [ebp - 9], 0
push 0
push 0
push 0
push 0
push 0
mov cx, 0xe6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.00662c2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6653ae
cmp dword [ebp - 0x14], 0
je 0x6650df
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x6650df
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 5
jne 0x6650b0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0xb84]
jbe 0x6650df
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
test al, al
je 0x6650df
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
jne 0x665073
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [select]
add eax, dword [edx + 0x6c14]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb84], eax
jmp 0x66508d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [select]
add eax, dword [edx + 0x6c18]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb84], eax
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x30]
mov cx, 0xa2
mov eax, dword [ebp - 4]
call fcn.00662c2c
jmp 0x6650df
mov eax, ebx
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
test al, al
je 0x6650df
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x30]
mov cx, 0xa2
mov eax, dword [ebp - 4]
call fcn.00662c2c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
je 0x66511f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x2c]
movzx edx, word [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.006633cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6653ae
mov dword [ebp - 0x18], 4
cmp byte [ebp - 9], 0
je 0x665263
test esi, esi
je 0x665263
cmp dword [esi + 4], 0
je 0x665263
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
jne 0x665318
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
call fcn.006753b4
test al, al
je 0x66525a
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x2e0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
push eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [ebp - 4]
call fcn.006653fc
test al, al
je 0x665318
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
mov eax, dword [eax + 8]
test eax, eax
jle 0x665318
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x665318
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
mov edx, ebx
call fcn.0041fbf0
mov ecx, eax
cmp byte [ecx + 0x2ec], 0
jne 0x6651f8
cmp byte [ecx + 0x2e4], 0
jne 0x6651f8
mov eax, dword [ecx + 0x278]
cmp eax, dword [ebp - 4]
je 0x66520a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
mov edx, ebx
call fcn.0041fa94
jmp 0x66524b
cmp byte [ecx + 0x22a], 0x1f
jne 0x66524b
cmp edi, dword [ecx + 0x2e0]
jne 0x66524b
mov eax, dword [ebp - 0x20]
sub eax, dword [ecx + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jge 0x66524b
mov eax, dword [ebp - 0x24]
sub eax, dword [ecx + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jge 0x66524b
mov eax, dword [esi + 0xc]
push eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
xchg ecx, eax
call fcn.006653fc
dec ebx
cmp ebx, 0xffffffff
jne 0x6651c9
jmp 0x665318
mov byte [ebp - 9], 0
jmp 0x665318
mov dword [ebp - 0x18], 5
cmp byte [ebp - 9], 0
je 0x665318
mov dword [ebp - 0x18], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x2c]
movzx edx, word [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.006633cc
cmp dword [ebp - 0x1c], 0
je 0x665318
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
jne 0x665318
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x16]
cmp ebx, 1
jle 0x6652ca
mov eax, ebx
call fcn.00403484
test eax, eax
jne 0x665318
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x6652e9
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0065f404
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + 4]
cmp eax, edx
jne 0x665318
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x15], 0
je 0x6652fe
mov eax, dword [ebp - 4]
cmp dword [eax + 0x268], 0
je 0x665318
push 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x43]
mov edx, dword [0x6c1294]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00661578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6653ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6653d0
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004053b8
ret