Function at 0x4087a0
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 0x521b
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00402e90
push eax
push ebp
call fcn.00402ed0
mov eax, dword [ebp + 0x11c]
add esp, 8
shl eax, 5
mov ecx, dword [eax + 0x4216e8]
shr ecx, 0xf
and ecx, 0xff
lea eax, [ecx - 1]
mov ecx, 0x72
cmp eax, 0x1b
ja case.0x408804.5
xor edx, edx
mov dl, byte [eax + 0x408edc]
jmp dword [edx*4 + 0x408ec8]
mov eax, dword [ebp + 0x178]
mov byte [ebp + 0x1110], 0x46
cmp eax, ecx
mov byte [ebp + 0x1111], 0xb9
jge 0x408a24
push 1
push 0
mov ecx, ebp
call fcn.00410080
add eax, 0x1ff
lea esi, [ebp + 0xaae]
cdq
and edx, 0x1ff
push 8
add eax, edx
push esi
sar eax, 9
mov byte [ebp + 0xaaf], al
mov al, 0x33
mov ecx, ebp
mov byte [esi], 0x84
mov byte [ebp + 0xab0], al
mov byte [ebp + 0xab1], al
mov byte [ebp + 0xab2], al
mov byte [ebp + 0xab3], al
mov byte [ebp + 0xab4], al
mov byte [ebp + 0xab5], al
call fcn.00403520
push 0x61a8
jmp 0x408d07
mov byte [ebp + 0x1110], 0x46
mov byte [ebp + 0x1111], 0xb9
cmp dword [ebp + 0x178], ecx
jge 0x408a24
push 1
push 0
mov ecx, ebp
call fcn.00410080
mov ecx, dword [ebp + 0x11c]
lea esi, [ebp + 0xaae]
shl ecx, 5
mov byte [esi], 0x84
mov byte [ebp + 0xaaf], 0
mov edx, dword [ecx + 0x4216f4]
lea ecx, [ecx + 0x4216f4]
cmp eax, edx
jae 0x4088f8
shr edx, 0x10
mov byte [ebp + 0xab0], dl
xor edx, edx
mov dl, byte [ecx + 1]
mov byte [ebp + 0xab1], dl
mov al, byte [ecx]
mov byte [ebp + 0xab2], al
jmp 0x40892b
add eax, 0x1ff
mov byte [ebp + 0xab2], 0
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov edx, eax
shl edx, 9
shr edx, 0x10
mov byte [ebp + 0xab0], dl
shl eax, 9
xor edx, edx
mov dl, ah
mov byte [ebp + 0xab1], dl
mov eax, dword [ecx]
xor edx, edx
shr eax, 0x10
mov byte [ebp + 0xab3], al
mov dl, byte [ecx + 1]
mov byte [ebp + 0xab4], dl
mov al, byte [ecx]
lea edx, [ebp + 0xab6]
xor ecx, ecx
mov byte [ebp + 0xab5], 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 + 0xac1], cl
inc eax
cmp eax, 0x73
jl 0x40895f
push 0x86
jmp 0x408cfa
cmp dword [ebp + 0x178], 0x71
jge case.0x408804.5
push 1
push 0
mov ecx, ebp
call fcn.00410080
mov edx, eax
xor ecx, ecx
shr edx, 0x10
mov byte [ebp + 0xab0], dl
mov edx, dword [ebp + 0x11c]
shl edx, 5
lea esi, [ebp + 0xaae]
mov cl, ah
mov byte [ebp + 0xab2], al
lea eax, [edx + 0x4216f4]
mov byte [esi], 0x84
mov byte [ebp + 0xaaf], 0xff
mov byte [ebp + 0xab1], cl
mov ecx, dword [eax]
shr ecx, 0x10
xor edx, edx
mov byte [ebp + 0xab3], cl
mov dl, byte [eax + 1]
xor ecx, ecx
mov byte [ebp + 0xab4], dl
mov al, byte [eax]
lea edx, [ebp + 0xab6]
mov byte [ebp + 0xab5], 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 + 0xac1], cl
inc eax
cmp eax, 0x22
jl 0x408a00
push 0x35
jmp 0x408cfa
cmp dword [ebp + 0x178], ecx
jl 0x408c17
cmp dword [ebp + 0x1a0], 4
je 0x408b52
mov dl, byte [ebp + 0x1110]
mov ecx, dword [ebp + 0xf08]
mov al, byte [ebp + 0x1111]
mov byte [ebp + 0xab1], dl
lea ebx, [ebp + 0xaae]
mov edx, ecx
lea esi, [ebp + 0xf10]
lea edi, [ebp + 0xab3]
shr ecx, 2
mov byte [ebx], 5
mov byte [ebp + 0xaaf], 0
mov byte [ebp + 0xab0], 0
mov byte [ebp + 0xab2], 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 + 0xf08]
mov ecx, ebp
add eax, 5
push eax
push ebx
call fcn.00403520
push 0x7d0
mov ecx, ebp
call fcn.00403930
push 1
push 0
mov ecx, ebp
call fcn.004036c0
mov al, byte [ebp + 0x23]
test al, al
je 0x408d41
mov ecx, ebp
call fcn.00403950
test al, al
jne 0x408d4e
lea ecx, [ebp + 0x6ae]
push 1
push ecx
mov ecx, ebp
call fcn.004036c0
test al, al
je 0x408aa9
mov al, byte [ebp + 0x25]
test al, al
je 0x408af5
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x408af5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov dl, byte [ebx]
mov al, byte [ebp + 0x6ae]
and dl, 0xf
cmp al, dl
je 0x408b4a
cmp al, 0xe
jne 0x408b1e
push 0x521c
mov ecx, ebp
call fcn.00402e90
push eax
push ebp
call fcn.00402ed0
add esp, 8
cmp byte [ebp + 0x6ae], 0xf
jne 0x408b3d
push 0x521d
mov ecx, ebp
call fcn.00402e90
push eax
push ebp
call fcn.00402ed0
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 + 0x1111]
mov al, byte [ebp + 0x1110]
lea esi, [ebp + 0xaae]
mov byte [ebp + 0xab2], cl
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xaaf], 0
mov byte [ebp + 0xab0], 0
mov byte [ebp + 0xab1], al
call fcn.00410080
mov ecx, dword [ebp + 0x178]
cmp ecx, 0x73
jl 0x408bed
jne 0x408ba2
cmp dword [ebp + 0x17c], 0xd
jl 0x408bed
cmp ecx, 0x74
jne 0x408bb0
cmp dword [ebp + 0x17c], 3
jl 0x408bed
mov cl, byte [ebp + 0x3f]
test cl, cl
je 0x408bd8
and eax, 0xfffe00
push 5
mov edx, eax
shr edx, 0x10
xor ecx, ecx
mov byte [ebp + 0xaaf], dl
mov cl, ah
mov byte [ebp + 0xab0], cl
jmp 0x408cfa
mov cl, byte [ebp + 0x62c]
and ecx, 0xfe
shl ecx, 8
cmp eax, ecx
jle 0x408c10
jmp 0x408c00
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x4216f4]
cmp eax, ecx
jle 0x408c10
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xaaf], al
push 5
jmp 0x408cfa
cmp dword [ebp + 0x1a0], 4
je 0x408cba
lea esi, [ebp + 0xaae]
push 1
push esi
mov ecx, ebp
mov byte [esi], 5
call fcn.00403520
push 0x7d0
mov ecx, ebp
call fcn.00403930
push 1
push 0
mov ecx, ebp
call fcn.004036c0
mov al, byte [ebp + 0x23]
test al, al
je 0x408d41
mov ecx, ebp
call fcn.00403950
test al, al
jne 0x408d4e
lea eax, [ebp + 0x6ae]
push 1
push eax
mov ecx, ebp
call fcn.004036c0
test al, al
je 0x408c4e
mov al, byte [ebp + 0x25]
test al, al
je 0x408c9a
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x408c9a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi]
mov al, byte [ebp + 0x6ae]
and cl, 0xf
cmp al, cl
je 0x408cb6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call edi
lea esi, [ebp + 0xaae]
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xaaf], 0
call fcn.00410080
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x4216f4]
cmp eax, ecx
jle 0x408cf8
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xaaf], al
push 2
push esi
mov ecx, ebp
call fcn.00403520
push 0x3a98
mov ecx, ebp
call fcn.00403930
push 1
push 0
mov ecx, ebp
call fcn.004036c0
mov al, byte [ebp + 0x23]
test al, al
je 0x408d41
mov ecx, ebp
call fcn.00403950
test al, al
jne 0x408d4e
lea eax, [ebp + 0x6ae]
push 1
push eax
mov ecx, ebp
call fcn.004036c0
test al, al
jne 0x408d5b
jmp 0x408d19
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 + 0x25]
test al, al
je 0x408d79
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x408d79
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
lea edi, [ebp + 0xeae]
lea ecx, [ebp + 0x6af]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ecx + 4]
mov word [edx + 4], ax
mov eax, dword [ebp + 0x178]
mov cl, byte [ecx + 6]
cmp eax, 0x62
mov byte [edx + 6], cl
jg 0x408dbe
lea edx, [ebp + 0x63b]
mov eax, edi
mov ecx, dword [edx]
mov dword [eax], ecx
mov cx, word [edx + 4]
mov word [eax + 4], cx
mov dl, byte [edx + 6]
mov byte [eax + 6], dl
mov eax, dword [ebp + 0x1a0]
test eax, eax
jne 0x408dde
cmp byte [ebp + 0x6ae], 0x80
je 0x408e20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 3
jl 0x408e09
mov al, byte [esi]
mov cl, byte [ebp + 0x6ae]
and al, 0xf
cmp cl, al
jne 0x408e13
mov ecx, ebp
call fcn.004084a0
test eax, eax
je 0x408e20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x6ae]
test al, al
je 0x408e20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
sub eax, ebx
sub esp, 8
mov dword [esp + 0x18], eax
mov ecx, ebp
fild qword [esp + 0x18]
fmul dword [0x42a8a0]
fstp qword [esp]
push 0x521f
call fcn.00402e90
push eax
push ebp
call fcn.00402ed0
mov ecx, dword [ebp + 0x11c]
add esp, 0x10
shl ecx, 5
mov eax, dword [ecx + 0x4216e8]
and eax, 0x7f8000
cmp eax, 0x38000
jbe 0x408ebb
cmp eax, 0x230000
je 0x408ebb
mov al, byte [edi]
mov cl, byte [ebp + 0xeaf]
cmp al, cl
jne 0x408eb4
cmp al, byte [ebp + 0xeb0]
jne 0x408eb4
cmp al, byte [ebp + 0xeb1]
jne 0x408eb4
cmp al, byte [ebp + 0xeb2]
jne 0x408eb4
cmp al, byte [ebp + 0xeb3]
jne 0x408eb4
cmp al, byte [ebp + 0xeb4]
je 0x408ebb
mov ecx, ebp
call fcn.00408500
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret