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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x1c], 1
and dword [ebp - 0x34], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x14], ax
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x30], 0
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x416226
mov eax, dword [ebp - 0x30]
and eax, 0x7fff
mov dword [0x47afc8], eax
jmp 0x416270
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x47afcc]
cmp eax, 0xa
jbe 0x416270
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x47afc8], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 6]
add eax, dword [0x47afc8]
mov dword [0x47afc8], eax
mov eax, dword [0x47afc8]
and eax, 0x7fff
mov dword [0x47afc8], eax
mov eax, dword [0x47afc8]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x20], 0
jmp 0x416288
mov eax, dword [ebp - 0x38]
dec eax
and eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x416297
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41627e
push dword [ebp - 0x20]
push dword [0x47afc8]
push 0
call fcn.004160d4
add esp, 0xc
mov dword [0x47afc8], eax
push dword [0x47afc8]
call fcn.00449ab1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x47afcc], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
jns 0x4162db
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
neg eax
mov dword [ebp - 0x3c], eax
jmp 0x4162e4
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7fff
jge 0x41631f
mov eax, 0x7fff
cdq
idiv dword [ebp - 0x24]
cmp eax, 1
jge 0x41630b
mov dword [ebp - 0x40], 1
jmp 0x416317
mov eax, 0x7fff
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x416355
cmp dword [ebp - 0x24], 0x7fff
jl 0x416355
mov eax, dword [ebp - 0x24]
cdq
mov ecx, 0x7fff
idiv ecx
cmp eax, 1
jge 0x416341
mov dword [ebp - 0x44], 1
jmp 0x41634f
mov eax, dword [ebp - 0x24]
cdq
mov ecx, 0x7fff
idiv ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
call fcn.00449ac3
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [0x47afc8], eax
cmp dword [ebp - 0x24], 0x7fff
jge 0x41637a
mov eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x416384
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jge 0x416355
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jge 0x41639c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
jmp 0x4163a2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x34]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448080
leave
ret