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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.100195c0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x10016642
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jl 0x10016676
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x1c]
mov al, byte [edx + 0x28]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x10016674
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2bc
mov dword [0x1004d900], eax
jmp 0x10016676
jmp 0x10016639
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0xc], eax
jmp 0x1001668a
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jl 0x10016a67
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018c70
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018c70
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018c70
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov al, byte [edx + 0x28]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018c70
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018c70
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018c70
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x10016921
cvtsi2sd xmm0, dword [ebp - 0x18]
addsd xmm0, qword [0x1003a1d8]
cvttsd2si edx, xmm0
mov dword [ebp - 0x40], edx
mov dword [ebp - 8], 0
jmp 0x1001674f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x24]
jge 0x1001691c
push 0x14
push 0x52
imul edx, dword [ebp - 8], 0x14
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 0x1004de84
call fcn.10019d20
movzx ecx, al
test ecx, ecx
je 0x10016812
mov ecx, 0x1004d910
call fcn.10018e20
movzx edx, al
test edx, edx
jne 0x1001679d
push 2
mov ecx, 0x1004d910
call fcn.10018ce0
mov eax, dword [ebp - 0x24]
sub eax, 1
cmp dword [ebp - 8], eax
jne 0x100167b1
mov dword [ebp - 0x38], 1
jmp 0x100167b8
mov dword [ebp - 0x38], 0
push 0xff
push 0x27
push 0x12
push 0x18
mov ecx, 0x14
sub ecx, dword [ebp - 0x38]
push ecx
push 0x51
imul edx, dword [ebp - 8], 0x14
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, 0x1004dfdc
call fcn.10005f30
mov ecx, 0x1004de84
call fcn.10018de0
movzx ecx, al
test ecx, ecx
je 0x10016810
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + eax*4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov byte [ecx + 0x28], 0
jmp 0x10016877
mov edx, dword [ebp - 0x24]
sub edx, 1
cmp dword [ebp - 8], edx
jne 0x10016826
mov dword [ebp - 0x3c], 1
jmp 0x1001682d
mov dword [ebp - 0x3c], 0
push 0xff
push 0x18
push 0x18
push 0x18
mov eax, 0x14
sub eax, dword [ebp - 0x3c]
push eax
push 0x51
imul ecx, dword [ebp - 8], 0x14
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
mov ecx, 0x1004dfdc
call fcn.10005f30
mov ecx, 0x1004de84
call fcn.10018de0
movzx eax, al
test eax, eax
je 0x10016877
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov byte [ecx + 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
movss xmm0, dword [edx]
ucomiss xmm0, dword [ecx + eax*4]
lahf
test ah, 0x44
jp 0x100168d3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4]
push ecx
push 0xff
push 0xff
push 0xff
push 0xff
imul edx, dword [ebp - 8], 0x14
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 3]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
mov eax, dword [0x1004dfec]
push eax
push 0x1004dfdc
call fcn.10005de0
add esp, 0x28
jmp 0x10016917
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*4]
push eax
push 0xff
push 0xff
push 0xff
push 0xff
imul ecx, dword [ebp - 8], 0x14
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 3]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
mov edx, dword [0x1004dfec]
push edx
push 0x1004dfdc
call fcn.10005de0
add esp, 0x28
jmp 0x10016746
jmp 0x10016a62
push 0x14
push 0x52
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, 0x1004de84
call fcn.10019d20
movzx edx, al
test edx, edx
je 0x100169b0
mov ecx, 0x1004d910
call fcn.10018e20
movzx eax, al
test eax, eax
jne 0x1001695b
push 2
mov ecx, 0x1004d910
call fcn.10018ce0
push 0xff
push 0x27
push 0x12
push 0x18
push 0x14
push 0x52
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
mov ecx, 0x1004dfdc
call fcn.10005f30
mov ecx, 0x1004de84
call fcn.10018de0
movzx eax, al
test eax, eax
je 0x100169ae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1004d900], eax
jb 0x100169a4
cmp dword [ebp - 0x44], 0xffffffff
jne 0x100169ae
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov byte [ecx + 0x28], 1
jmp 0x100169d4
push 0xff
push 0x18
push 0x18
push 0x18
push 0x14
push 0x52
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, 0x1004dfdc
call fcn.10005f30
cvtsi2sd xmm0, dword [ebp - 0x18]
addsd xmm0, qword [0x1003a1d8]
cvttsd2si ecx, xmm0
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], 0
jmp 0x10016a00
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x24]
jge 0x10016a62
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
movss xmm0, dword [edx]
ucomiss xmm0, dword [ecx + eax*4]
lahf
test ah, 0x44
jp 0x10016a60
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4]
push ecx
push 0xff
push 0xff
push 0xff
push 0xff
mov edx, dword [ebp - 0x48]
add edx, 3
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 1
mov ecx, dword [0x1004dfec]
push ecx
push 0x1004dfdc
call fcn.10005de0
add esp, 0x28
jmp 0x10016a62
jmp 0x100169f7
jmp 0x10016681
mov ecx, dword [ebp - 0x10]
call fcn.10018d00
mov esp, ebp
pop ebp
ret