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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, ecx
push 0xa
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1f53
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00401690
push eax
push ebp
call fcn.004016d0
mov eax, dword [ebp + 0x100]
add esp, 8
shl eax, 5
mov ecx, dword [eax + 0x41b410]
shr ecx, 0xe
and ecx, 0xff
lea eax, [ecx - 1]
mov ecx, 0x72
cmp eax, 0x1b
ja case.0x406c94.5
xor edx, edx
mov dl, byte [eax + 0x40736c]
jmp dword [edx*4 + 0x407358]
mov eax, dword [ebp + 0x154]
mov byte [ebp + 0xcac], 0x46
cmp eax, ecx
mov byte [ebp + 0xcad], 0xb9
jge 0x406eb4
push 1
push 0
mov ecx, ebp
call fcn.0040e110
add eax, 0x1ff
lea esi, [ebp + 0x650]
cdq
and edx, 0x1ff
push 8
add eax, edx
push esi
sar eax, 9
mov byte [ebp + 0x651], al
mov al, 0x33
mov ecx, ebp
mov byte [esi], 0x84
mov byte [ebp + 0x652], al
mov byte [ebp + 0x653], al
mov byte [ebp + 0x654], al
mov byte [ebp + 0x655], al
mov byte [ebp + 0x656], al
mov byte [ebp + 0x657], al
call fcn.00401ca0
push 0x61a8
jmp 0x407187
mov byte [ebp + 0xcac], 0x46
mov byte [ebp + 0xcad], 0xb9
cmp dword [ebp + 0x154], ecx
jge 0x406eb4
push 1
push 0
mov ecx, ebp
call fcn.0040e110
mov ecx, dword [ebp + 0x100]
lea esi, [ebp + 0x650]
shl ecx, 5
mov byte [esi], 0x84
mov byte [ebp + 0x651], 0
mov edx, dword [ecx + 0x41b41c]
lea ecx, [ecx + 0x41b41c]
cmp eax, edx
jae 0x406d88
shr edx, 0x10
mov byte [ebp + 0x652], dl
xor edx, edx
mov dl, byte [ecx + 1]
mov byte [ebp + 0x653], dl
mov al, byte [ecx]
mov byte [ebp + 0x654], al
jmp 0x406dbb
add eax, 0x1ff
mov byte [ebp + 0x654], 0
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov edx, eax
shl edx, 9
shr edx, 0x10
mov byte [ebp + 0x652], dl
shl eax, 9
xor edx, edx
mov dl, ah
mov byte [ebp + 0x653], dl
mov eax, dword [ecx]
xor edx, edx
shr eax, 0x10
mov byte [ebp + 0x655], al
mov dl, byte [ecx + 1]
mov byte [ebp + 0x656], dl
mov al, byte [ecx]
lea edx, [ebp + 0x658]
xor ecx, ecx
mov byte [ebp + 0x657], al
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov cl, 0x80
sub cl, al
mov byte [eax + ebp + 0x663], cl
inc eax
cmp eax, 0x73
jl 0x406def
push 0x86
jmp 0x40717a
cmp dword [ebp + 0x154], 0x71
jge case.0x406c94.5
push 1
push 0
mov ecx, ebp
call fcn.0040e110
mov edx, eax
xor ecx, ecx
shr edx, 0x10
mov byte [ebp + 0x652], dl
mov edx, dword [ebp + 0x100]
shl edx, 5
lea esi, [ebp + 0x650]
mov cl, ah
mov byte [ebp + 0x654], al
lea eax, [edx + 0x41b41c]
mov byte [esi], 0x84
mov byte [ebp + 0x651], 0xff
mov byte [ebp + 0x653], cl
mov ecx, dword [eax]
shr ecx, 0x10
xor edx, edx
mov byte [ebp + 0x655], cl
mov dl, byte [eax + 1]
xor ecx, ecx
mov byte [ebp + 0x656], dl
mov al, byte [eax]
lea edx, [ebp + 0x658]
mov byte [ebp + 0x657], al
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov cl, 0x80
sub cl, al
mov byte [eax + ebp + 0x663], cl
inc eax
cmp eax, 0x22
jl 0x406e90
push 0x35
jmp 0x40717a
cmp dword [ebp + 0x154], ecx
jl 0x407098
cmp dword [ebp + 0x178], 4
je 0x406fe2
mov dl, byte [ebp + 0xcac]
mov ecx, dword [ebp + 0xaa4]
mov al, byte [ebp + 0xcad]
mov byte [ebp + 0x653], dl
lea ebx, [ebp + 0x650]
mov edx, ecx
lea esi, [ebp + 0xaac]
lea edi, [ebp + 0x655]
shr ecx, 2
mov byte [ebx], 5
mov byte [ebp + 0x651], 0
mov byte [ebp + 0x652], 0
mov byte [ebp + 0x654], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xaa4]
mov ecx, ebp
add eax, 5
push eax
push ebx
call fcn.00401ca0
push 0x7d0
mov ecx, ebp
call fcn.004020d0
push 1
push 0
mov ecx, ebp
call fcn.00401e40
mov al, byte [ebp + 0x1b]
test al, al
je 0x4071c1
mov ecx, ebp
call fcn.004020f0
test al, al
jne 0x4071ce
lea ecx, [ebp + 0x250]
push 1
push ecx
mov ecx, ebp
call fcn.00401e40
test al, al
je 0x406f39
mov al, byte [ebp + 0x1d]
test al, al
je 0x406f85
mov eax, dword [ebp + 0x1a0]
test eax, eax
je 0x406f85
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov dl, byte [ebx]
mov al, byte [ebp + 0x250]
and dl, 0xf
cmp al, dl
je 0x406fda
cmp al, 0xe
jne 0x406fae
push 0x1f54
mov ecx, ebp
call fcn.00401690
push eax
push ebp
call fcn.004016d0
add esp, 8
cmp byte [ebp + 0x250], 0xf
jne 0x406fcd
push 0x1f55
mov ecx, ebp
call fcn.00401690
push eax
push ebp
call fcn.004016d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [ebp + 0xcad]
mov al, byte [ebp + 0xcac]
lea esi, [ebp + 0x650]
mov byte [ebp + 0x654], cl
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0x651], 0
mov byte [ebp + 0x652], 0
mov byte [ebp + 0x653], al
call fcn.0040e110
xor edx, edx
mov dh, byte [ebp + 0x154]
mov dl, byte [ebp + 0x158]
cmp dx, 0x7403
jae 0x407046
mov ecx, dword [ebp + 0x100]
shl ecx, 5
mov ecx, dword [ecx + 0x41b41c]
cmp eax, ecx
jle 0x407091
jmp 0x407081
mov cl, byte [ebp + 0x37]
test cl, cl
je 0x40706e
and eax, 0xfffe00
push 5
mov edx, eax
shr edx, 0x10
xor ecx, ecx
mov byte [ebp + 0x651], dl
mov cl, ah
mov byte [ebp + 0x652], cl
jmp 0x40717a
mov cl, byte [ebp + 0x1dc]
and ecx, 0xfe
shl ecx, 8
cmp eax, ecx
jle 0x407091
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0x651], al
push 5
jmp 0x40717a
cmp dword [ebp + 0x178], 4
je 0x40713a
lea esi, [ebp + 0x650]
push 1
push esi
mov ecx, ebp
mov byte [esi], 5
call fcn.00401ca0
push 0x7d0
mov ecx, ebp
call fcn.004020d0
push 1
push 0
mov ecx, ebp
call fcn.00401e40
mov al, byte [ebp + 0x1b]
test al, al
je 0x4071c1
mov ecx, ebp
call fcn.004020f0
test al, al
jne 0x4071ce
lea edx, [ebp + 0x250]
push 1
push edx
mov ecx, ebp
call fcn.00401e40
test al, al
je 0x4070cf
mov al, byte [ebp + 0x1d]
test al, al
je 0x40711b
mov eax, dword [ebp + 0x1a0]
test eax, eax
je 0x40711b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [esi]
mov cl, byte [ebp + 0x250]
and al, 0xf
cmp cl, al
je 0x407136
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call edi
lea esi, [ebp + 0x650]
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0x651], 0
call fcn.0040e110
mov ecx, dword [ebp + 0x100]
shl ecx, 5
mov ecx, dword [ecx + 0x41b41c]
cmp eax, ecx
jle 0x407178
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0x651], al
push 2
push esi
mov ecx, ebp
call fcn.00401ca0
push 0x3a98
mov ecx, ebp
call fcn.004020d0
push 1
push 0
mov ecx, ebp
call fcn.00401e40
mov al, byte [ebp + 0x1b]
test al, al
je 0x4071c1
mov ecx, ebp
call fcn.004020f0
test al, al
jne 0x4071ce
lea edx, [ebp + 0x250]
push 1
push edx
mov ecx, ebp
call fcn.00401e40
test al, al
jne 0x4071db
jmp 0x407199
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x1d]
test al, al
je 0x4071f9
mov eax, dword [ebp + 0x1a0]
test eax, eax
je 0x4071f9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
lea ebx, [ebp + 0xa50]
lea eax, [ebp + 0x251]
mov ecx, ebx
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
mov eax, dword [ebp + 0x154]
cmp eax, 0x62
jg 0x40723e
lea ecx, [ebp + 0x1eb]
mov edx, ebx
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ecx + 4]
mov word [edx + 4], ax
mov cl, byte [ecx + 6]
mov byte [edx + 6], cl
mov eax, dword [ebp + 0x178]
test eax, eax
jne 0x40725e
cmp byte [ebp + 0x250], 0x80
je 0x4072b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 3
jl 0x407299
mov dl, byte [esi]
mov al, byte [ebp + 0x250]
and dl, 0xf
cmp al, dl
jne 0x4072a3
mov al, byte [ebp + 0x2b]
test al, al
je 0x4072b0
mov ecx, 7
mov edi, ebx
lea esi, [ebp + 0xa73]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4072b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x250]
test al, al
je 0x4072b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
sub eax, edi
sub esp, 8
mov dword [esp + 0x18], eax
mov ecx, ebp
fild qword [esp + 0x18]
fmul dword [0x424044]
fstp qword [esp]
push 0x1f57
call fcn.00401690
push eax
push ebp
call fcn.004016d0
mov ecx, dword [ebp + 0x100]
add esp, 0x10
shl ecx, 5
mov eax, dword [ecx + 0x41b410]
and eax, 0x3fc000
cmp eax, 0x1c000
jbe 0x40734b
cmp eax, 0x118000
je 0x40734b
mov al, byte [ebx]
mov cl, byte [ebp + 0xa51]
cmp al, cl
jne 0x407344
cmp al, byte [ebp + 0xa52]
jne 0x407344
cmp al, byte [ebp + 0xa53]
jne 0x407344
cmp al, byte [ebp + 0xa54]
jne 0x407344
cmp al, byte [ebp + 0xa55]
jne 0x407344
cmp al, byte [ebp + 0xa56]
je 0x40734b
mov ecx, ebp
call fcn.00406990
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret