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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
mov dword [ebp - 0x18], 1
and dword [ebp - 0x2c], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x10], ax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x28], 0
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x414ef5
mov eax, dword [ebp - 0x28]
and eax, 0x7fff
mov dword [0x476140], eax
jmp 0x414f3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x476144]
cmp eax, 0xa
jbe 0x414f3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [0x476140], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 2]
add eax, dword [0x476140]
mov dword [0x476140], eax
mov eax, dword [0x476140]
and eax, 0x7fff
mov dword [0x476140], eax
mov eax, dword [0x476140]
mov dword [ebp - 0x30], eax
and dword [ebp - 0x1c], 0
jmp 0x414f57
mov eax, dword [ebp - 0x30]
dec eax
and eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x414f66
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x414f4d
push dword [ebp - 0x1c]
push dword [0x476140]
push 0
call fcn.00414dad
add esp, 0xc
mov dword [0x476140], eax
push dword [0x476140]
call fcn.00447f65
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x476144], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
jns 0x414faa
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
neg eax
mov dword [ebp - 0x34], eax
jmp 0x414fb3
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7fff
jge 0x414fee
mov eax, 0x7fff
cdq
idiv dword [ebp - 0x20]
cmp eax, 1
jge 0x414fda
mov dword [ebp - 0x38], 1
jmp 0x414fe6
mov eax, 0x7fff
cdq
idiv dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
jmp 0x415024
cmp dword [ebp - 0x20], 0x7fff
jl 0x415024
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 0x7fff
idiv ecx
cmp eax, 1
jge 0x415010
mov dword [ebp - 0x3c], 1
jmp 0x41501e
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 0x7fff
idiv ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
call fcn.00447f77
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x476140], eax
cmp dword [ebp - 0x20], 0x7fff
jge 0x415049
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x415053
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x20]
jge 0x415024
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jge 0x41506b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
jmp 0x415071
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x2c]
pop edi
leave
ret