Function at 0x100164b0
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.100194d0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x100164e2
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jl 0x10016516
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 0x10016514
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2bc
mov dword [0x1005094c], eax
jmp 0x10016516
jmp 0x100164d9
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0xc], eax
jmp 0x1001652a
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jl 0x1001690a
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10018d00
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.10018d00
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.10018d00
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.10018d00
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.10018d00
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.10018d00
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x100167c4
cvtsi2sd xmm0, dword [ebp - 0x18]
addsd xmm0, qword [0x1003c1a0]
cvttsd2si edx, xmm0
mov dword [ebp - 0x40], edx
mov dword [ebp - 8], 0
jmp 0x100165ef
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x24]
jge 0x100167bf
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, 0x10050ec4
call fcn.10019c30
movzx ecx, al
test ecx, ecx
je 0x100166b5
mov ecx, 0x10050950
call fcn.10018eb0
movzx edx, al
test edx, edx
jne 0x1001663d
push 2
mov ecx, 0x10050950
call fcn.10018d70
mov eax, dword [ebp - 0x24]
sub eax, 1
cmp dword [ebp - 8], eax
jne 0x10016651
mov dword [ebp - 0x38], 1
jmp 0x10016658
mov dword [ebp - 0x38], 0
push 0xff
push 0xf2
push 0x66
push 0x3d
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, 0x10051020
call fcn.100059e0
mov ecx, 0x10050ec4
call fcn.10018e70
movzx ecx, al
test ecx, ecx
je 0x100166b3
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 0x1001671a
mov edx, dword [ebp - 0x24]
sub edx, 1
cmp dword [ebp - 8], edx
jne 0x100166c9
mov dword [ebp - 0x3c], 1
jmp 0x100166d0
mov dword [ebp - 0x3c], 0
push 0xff
push 0x2d
push 0x2d
push 0x2d
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, 0x10051020
call fcn.100059e0
mov ecx, 0x10050ec4
call fcn.10018e70
movzx eax, al
test eax, eax
je 0x1001671a
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 0x10016776
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 [0x10051030]
push eax
push 0x10051020
call fcn.10005890
add esp, 0x28
jmp 0x100167ba
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 [0x10051030]
push edx
push 0x10051020
call fcn.10005890
add esp, 0x28
jmp 0x100165e6
jmp 0x10016905
push 0x14
push 0x52
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, 0x10050ec4
call fcn.10019c30
movzx edx, al
test edx, edx
je 0x10016853
mov ecx, 0x10050950
call fcn.10018eb0
movzx eax, al
test eax, eax
jne 0x100167fe
push 2
mov ecx, 0x10050950
call fcn.10018d70
push 0xff
push 0x24
push 0x24
push 0x24
push 0x14
push 0x52
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
mov ecx, 0x10051020
call fcn.100059e0
mov ecx, 0x10050ec4
call fcn.10018e70
movzx eax, al
test eax, eax
je 0x10016851
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1005094c], eax
jb 0x10016847
cmp dword [ebp - 0x44], 0xffffffff
jne 0x10016851
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov byte [ecx + 0x28], 1
jmp 0x10016877
push 0xff
push 0x1e
push 0x1e
push 0x1e
push 0x14
push 0x52
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
mov ecx, 0x10051020
call fcn.100059e0
cvtsi2sd xmm0, dword [ebp - 0x18]
addsd xmm0, qword [0x1003c1a0]
cvttsd2si ecx, xmm0
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], 0
jmp 0x100168a3
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x24]
jge 0x10016905
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 0x10016903
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 [0x10051030]
push ecx
push 0x10051020
call fcn.10005890
add esp, 0x28
jmp 0x10016905
jmp 0x1001689a
jmp 0x10016521
mov ecx, dword [ebp - 0x10]
call fcn.10018d90
mov esp, ebp
pop ebp
ret