Function at 0x407020
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 0x32db
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00401720
push eax
push ebp
call fcn.00401760
mov eax, dword [ebp + 0x11c]
add esp, 8
shl eax, 5
mov ecx, dword [eax + 0x41b448]
shr ecx, 0xf
and ecx, 0xff
lea eax, [ecx - 1]
mov ecx, 0x72
cmp eax, 0x1b
ja case.0x407084.5
xor edx, edx
mov dl, byte [eax + 0x40775c]
jmp dword [edx*4 + 0x407748]
mov eax, dword [ebp + 0x178]
mov byte [ebp + 0x1808], 0x46
cmp eax, ecx
mov byte [ebp + 0x1809], 0xb9
jge 0x4072a4
push 1
push 0
mov ecx, ebp
call fcn.0040e740
add eax, 0x1ff
lea esi, [ebp + 0xaaa]
cdq
and edx, 0x1ff
push 8
add eax, edx
push esi
sar eax, 9
mov byte [ebp + 0xaab], al
mov al, 0x33
mov ecx, ebp
mov byte [esi], 0x84
mov byte [ebp + 0xaac], al
mov byte [ebp + 0xaad], al
mov byte [ebp + 0xaae], al
mov byte [ebp + 0xaaf], al
mov byte [ebp + 0xab0], al
mov byte [ebp + 0xab1], al
call fcn.00401db0
push 0x61a8
jmp 0x407587
mov byte [ebp + 0x1808], 0x46
mov byte [ebp + 0x1809], 0xb9
cmp dword [ebp + 0x178], ecx
jge 0x4072a4
push 1
push 0
mov ecx, ebp
call fcn.0040e740
mov ecx, dword [ebp + 0x11c]
lea esi, [ebp + 0xaaa]
shl ecx, 5
mov byte [esi], 0x84
mov byte [ebp + 0xaab], 0
mov edx, dword [ecx + 0x41b454]
lea ecx, [ecx + 0x41b454]
cmp eax, edx
jae 0x407178
shr edx, 0x10
mov byte [ebp + 0xaac], dl
xor edx, edx
mov dl, byte [ecx + 1]
mov byte [ebp + 0xaad], dl
mov al, byte [ecx]
mov byte [ebp + 0xaae], al
jmp 0x4071ab
add eax, 0x1ff
mov byte [ebp + 0xaae], 0
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov edx, eax
shl edx, 9
shr edx, 0x10
mov byte [ebp + 0xaac], dl
shl eax, 9
xor edx, edx
mov dl, ah
mov byte [ebp + 0xaad], dl
mov eax, dword [ecx]
xor edx, edx
shr eax, 0x10
mov byte [ebp + 0xaaf], al
mov dl, byte [ecx + 1]
mov byte [ebp + 0xab0], dl
mov al, byte [ecx]
lea edx, [ebp + 0xab2]
xor ecx, ecx
mov byte [ebp + 0xab1], 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 + 0xabd], cl
inc eax
cmp eax, 0x73
jl 0x4071df
push 0x86
jmp 0x40757a
cmp dword [ebp + 0x178], 0x71
jge case.0x407084.5
push 1
push 0
mov ecx, ebp
call fcn.0040e740
mov edx, eax
xor ecx, ecx
shr edx, 0x10
mov byte [ebp + 0xaac], dl
mov edx, dword [ebp + 0x11c]
shl edx, 5
lea esi, [ebp + 0xaaa]
mov cl, ah
mov byte [ebp + 0xaae], al
lea eax, [edx + 0x41b454]
mov byte [esi], 0x84
mov byte [ebp + 0xaab], 0xff
mov byte [ebp + 0xaad], cl
mov ecx, dword [eax]
shr ecx, 0x10
xor edx, edx
mov byte [ebp + 0xaaf], cl
mov dl, byte [eax + 1]
xor ecx, ecx
mov byte [ebp + 0xab0], dl
mov al, byte [eax]
lea edx, [ebp + 0xab2]
mov byte [ebp + 0xab1], 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 + 0xabd], cl
inc eax
cmp eax, 0x22
jl 0x407280
push 0x35
jmp 0x40757a
cmp dword [ebp + 0x178], ecx
jl 0x407497
cmp dword [ebp + 0x1a0], 4
je 0x4073d2
mov dl, byte [ebp + 0x1808]
mov ecx, dword [ebp + 0x1600]
mov al, byte [ebp + 0x1809]
mov byte [ebp + 0xaad], dl
lea ebx, [ebp + 0xaaa]
mov edx, ecx
lea esi, [ebp + 0x1608]
lea edi, [ebp + 0xaaf]
shr ecx, 2
mov byte [ebx], 5
mov byte [ebp + 0xaab], 0
mov byte [ebp + 0xaac], 0
mov byte [ebp + 0xaae], 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 + 0x1600]
mov ecx, ebp
add eax, 5
push eax
push ebx
call fcn.00401db0
push 0x7d0
mov ecx, ebp
call fcn.004021c0
push 1
push 0
mov ecx, ebp
call fcn.00401f50
mov al, byte [ebp + 0x23]
test al, al
je 0x4075c1
mov ecx, ebp
call fcn.004021e0
test al, al
jne 0x4075ce
lea ecx, [ebp + 0x6aa]
push 1
push ecx
mov ecx, ebp
call fcn.00401f50
test al, al
je 0x407329
mov al, byte [ebp + 0x25]
test al, al
je 0x407375
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x407375
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov dl, byte [ebx]
mov al, byte [ebp + 0x6aa]
and dl, 0xf
cmp al, dl
je 0x4073ca
cmp al, 0xe
jne 0x40739e
push 0x32dc
mov ecx, ebp
call fcn.00401720
push eax
push ebp
call fcn.00401760
add esp, 8
cmp byte [ebp + 0x6aa], 0xf
jne 0x4073bd
push 0x32dd
mov ecx, ebp
call fcn.00401720
push eax
push ebp
call fcn.00401760
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 + 0x1809]
mov al, byte [ebp + 0x1808]
lea esi, [ebp + 0xaaa]
mov byte [ebp + 0xaae], cl
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xaab], 0
mov byte [ebp + 0xaac], 0
mov byte [ebp + 0xaad], al
call fcn.0040e740
mov ecx, dword [ebp + 0x178]
cmp ecx, 0x73
jl 0x40746d
jne 0x407422
cmp dword [ebp + 0x17c], 0xd
jl 0x40746d
cmp ecx, 0x74
jne 0x407430
cmp dword [ebp + 0x17c], 3
jl 0x40746d
mov cl, byte [ebp + 0x3f]
test cl, cl
je 0x407458
and eax, 0xfffe00
push 5
mov edx, eax
shr edx, 0x10
xor ecx, ecx
mov byte [ebp + 0xaab], dl
mov cl, ah
mov byte [ebp + 0xaac], cl
jmp 0x40757a
mov cl, byte [ebp + 0x628]
and ecx, 0xfe
shl ecx, 8
cmp eax, ecx
jle 0x407490
jmp 0x407480
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x41b454]
cmp eax, ecx
jle 0x407490
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xaab], al
push 5
jmp 0x40757a
cmp dword [ebp + 0x1a0], 4
je 0x40753a
lea esi, [ebp + 0xaaa]
push 1
push esi
mov ecx, ebp
mov byte [esi], 5
call fcn.00401db0
push 0x7d0
mov ecx, ebp
call fcn.004021c0
push 1
push 0
mov ecx, ebp
call fcn.00401f50
mov al, byte [ebp + 0x23]
test al, al
je 0x4075c1
mov ecx, ebp
call fcn.004021e0
test al, al
jne 0x4075ce
lea eax, [ebp + 0x6aa]
push 1
push eax
mov ecx, ebp
call fcn.00401f50
test al, al
je 0x4074ce
mov al, byte [ebp + 0x25]
test al, al
je 0x40751a
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x40751a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi]
mov al, byte [ebp + 0x6aa]
and cl, 0xf
cmp al, cl
je 0x407536
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call edi
lea esi, [ebp + 0xaaa]
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xaab], 0
call fcn.0040e740
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x41b454]
cmp eax, ecx
jle 0x407578
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xaab], al
push 2
push esi
mov ecx, ebp
call fcn.00401db0
push 0x3a98
mov ecx, ebp
call fcn.004021c0
push 1
push 0
mov ecx, ebp
call fcn.00401f50
mov al, byte [ebp + 0x23]
test al, al
je 0x4075c1
mov ecx, ebp
call fcn.004021e0
test al, al
jne 0x4075ce
lea eax, [ebp + 0x6aa]
push 1
push eax
mov ecx, ebp
call fcn.00401f50
test al, al
jne 0x4075db
jmp 0x407599
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 0x4075f9
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x4075f9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
lea edi, [ebp + 0xeaa]
lea ecx, [ebp + 0x6ab]
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 0x40763e
lea edx, [ebp + 0x637]
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 0x40765e
cmp byte [ebp + 0x6aa], 0x80
je 0x4076a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 3
jl 0x407689
mov al, byte [esi]
mov cl, byte [ebp + 0x6aa]
and al, 0xf
cmp cl, al
jne 0x407693
mov ecx, ebp
call fcn.00406d20
test eax, eax
je 0x4076a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x6aa]
test al, al
je 0x4076a0
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 [0x4244e0]
fstp qword [esp]
push 0x32df
call fcn.00401720
push eax
push ebp
call fcn.00401760
mov ecx, dword [ebp + 0x11c]
add esp, 0x10
shl ecx, 5
mov eax, dword [ecx + 0x41b448]
and eax, 0x7f8000
cmp eax, 0x38000
jbe 0x40773b
cmp eax, 0x230000
je 0x40773b
mov al, byte [edi]
mov cl, byte [ebp + 0xeab]
cmp al, cl
jne 0x407734
cmp al, byte [ebp + 0xeac]
jne 0x407734
cmp al, byte [ebp + 0xead]
jne 0x407734
cmp al, byte [ebp + 0xeae]
jne 0x407734
cmp al, byte [ebp + 0xeaf]
jne 0x407734
cmp al, byte [ebp + 0xeb0]
je 0x40773b
mov ecx, ebp
call fcn.00406d80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret