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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [0x1001f78c], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 0x14], esi
je 0x10002f6e
call esi
sub eax, dword [0x1001f78c]
cmp eax, 0x3e8
jb 0x10003466
cmp dword [0x1001f7d4], 0
je 0x10002f8a
call esi
sub eax, dword [0x1001f7d4]
cmp eax, 0x1f4
jb 0x10003466
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], ebx
xor eax, eax
lea ecx, [edx + edx*4]
add ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ecx
nop word [eax + eax]
add eax, ecx
mov ecx, dword [eax*4 + 0x1001f938]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x100032fd
mov eax, dword [eax*4 + 0x1001f7f8]
mov esi, dword [0x1001facc]
push 4
push esi
cvttss2si edi, dword [eax + 0x8c]
mov dword [ebp - 0x10], eax
call ebx
test eax, eax
jne 0x10002fe9
mov ecx, dword [esi]
jmp 0x10002feb
xor ecx, ecx
mov esi, dword [0x1001fa78]
add esi, ecx
push 4
push esi
call ebx
test eax, eax
jne 0x10003000
mov eax, dword [esi]
jmp 0x10003002
xor eax, eax
cmp eax, edi
jb 0x100032fa
mov ecx, dword [ebp - 0x10]
movss xmm0, dword [ecx + 0xac]
comiss xmm0, dword [0x10018b3c]
jbe 0x10003053
cmp byte [0x1001f781], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x10003036
test edx, edx
jne 0x10003036
cmp eax, 1
je 0x10003053
cmp byte [0x1001f782], 0
jne 0x100032fd
test edx, edx
jne 0x100032fd
test eax, eax
jne 0x100032fd
mov esi, dword [0x1001facc]
mov edi, dword [ecx + 0x80]
push 4
push esi
call ebx
test eax, eax
jne 0x1000306c
mov ecx, dword [esi]
jmp 0x1000306e
xor ecx, ecx
mov eax, dword [0x1001fac8]
push 4
add eax, ecx
push eax
call ebx
cmp byte [0x1001f780], 0
mov edx, dword [ebp - 8]
jne 0x100032fd
test edx, edx
jne 0x100030a5
mov eax, dword [ebp - 0xc]
cmp eax, 2
jge 0x100030a5
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.10001a10
jmp 0x100032fa
cmp edi, 1
jne 0x100031a0
mov esi, dword [ebp - 0x14]
call esi
sub eax, dword [0x1001f778]
cmp eax, 0x1f4
jb 0x100032fa
cmp dword [ebp - 0x18], 0x77a10
jae 0x10003363
mov dword [ebp - 0x20], edi
mov esi, dword [0x1001fac0]
push 4
push esi
call ebx
test eax, eax
jne 0x100030e7
mov eax, dword [esi]
jmp 0x100030e9
xor eax, eax
lea esi, [eax + 0x21c]
push 4
push esi
call ebx
test eax, eax
jne 0x100030fc
mov eax, dword [esi]
jmp 0x100030fe
xor eax, eax
lea esi, [eax + 4]
push 4
push esi
call ebx
test eax, eax
jne 0x1000310e
mov eax, dword [esi]
jmp 0x10003110
xor eax, eax
lea esi, [eax + 0x14c]
push 4
push esi
call ebx
test eax, eax
jne 0x10003123
mov esi, dword [esi]
jmp 0x10003125
xor esi, esi
test edi, edi
jle 0x10003147
nop dword [eax]
push 4
push esi
call ebx
test eax, eax
jne 0x1000313d
mov esi, dword [esi]
jmp 0x1000313f
xor esi, esi
sub edi, 1
jne 0x10003130
mov edi, dword [ebp - 0x20]
push 4
add esi, 8
push esi
call ebx
test eax, eax
jne 0x10003166
mov esi, dword [esi]
test esi, esi
je 0x10003166
push 4
push esi
call ebx
test eax, eax
jne 0x10003166
mov eax, dword [esi]
jmp 0x10003168
xor eax, eax
cmp eax, dword [ebp - 0x18]
je 0x100032fa
inc edi
mov dword [ebp - 0x20], edi
cmp edi, 0xc
jl 0x100030d4
call dword [ebp - 0x14]
mov esi, dword [0x1001facc]
push 4
push esi
mov dword [0x1001f778], eax
call ebx
test eax, eax
jne 0x10003324
mov ecx, dword [esi]
jmp 0x10003326
cmp edi, 7
jne 0x100032fd
cmp dword [0x1001fa00], 0
je 0x100031b7
call fcn.10002be0
mov esi, dword [0x1001facc]
push 4
push esi
call ebx
test eax, eax
jne 0x100031ca
mov ecx, dword [esi]
jmp 0x100031cc
xor ecx, ecx
mov esi, dword [0x1001fac4]
push 4
add esi, ecx
push esi
call ebx
test eax, eax
jne 0x100031e1
mov esi, dword [esi]
jmp 0x100031e3
xor esi, esi
mov ecx, esi
call fcn.10001600
mov edi, eax
test edi, edi
jne 0x100031f9
mov ecx, esi
call fcn.100015c0
mov edi, eax
mov eax, dword [0x1001facc]
mov ecx, dword [eax]
mov eax, dword [0x1001fa9c]
movss xmm0, dword [ecx + eax]
mov eax, dword [0x1001fa98]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ecx + eax]
lea esi, [eax + edi]
movss dword [ebp - 0x2c], xmm0
test esi, esi
je 0x1000323c
push 8
push esi
call ebx
test eax, eax
jne 0x1000323c
movss xmm0, dword [esi]
movss dword [ebp - 0x18], xmm0
xorps xmm0, xmm0
jmp 0x10003244
xorps xmm0, xmm0
movss dword [ebp - 0x18], xmm0
mov esi, dword [0x1001fa9c]
add esi, edi
je 0x10003260
push 8
push esi
call ebx
test eax, eax
jne 0x1000325d
movss xmm0, dword [esi]
jmp 0x10003260
xorps xmm0, xmm0
subss xmm0, dword [ebp - 0x20]
movsd xmm1, qword [0x10018b40]
cvtps2pd xmm0, xmm0
call fcn.10011180
movsd xmm1, qword [0x10018b40]
movsd qword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x18]
subss xmm0, dword [ebp - 0x2c]
cvtps2pd xmm0, xmm0
call fcn.10011180
addsd xmm0, qword [ebp - 0x28]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x100032a8
sqrtsd xmm0, xmm0
jmp 0x100032ad
call fcn.10011cd0
mov byte [ebp - 1], 0
cvttsd2si eax, xmm0
mov dword [ebp - 0x20], eax
test edi, edi
je 0x100032fa
mov dword [ebp - 0x2c], edi
mov ecx, dword [0x1001facc]
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x2c]
push esi
call dword [0x1001fabc]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
sete al
test al, al
jne 0x100032fa
mov esi, dword [0x1001fa7c]
push 4
add esi, edi
push esi
call ebx
test eax, eax
jne 0x100032fa
cmp dword [esi], eax
je 0x100032fa
cmp dword [ebp - 0x20], 8
jl 0x1000336a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 8
jl 0x10002fb0
inc edx
mov dword [ebp - 8], edx
cmp edx, 2
jl 0x10002f98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov esi, dword [0x1001fac8]
add esi, ecx
push 4
push esi
call ebx
test eax, eax
jne 0x1000334d
mov edx, dword [esi]
mov ecx, dword [ebp - 0x10]
push 1
call fcn.100016d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor edx, edx
push 1
call fcn.100016d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
jmp 0x10003181
mov esi, dword [0x1001facc]
push 4
push esi
call ebx
test eax, eax
jne 0x1000337d
mov ecx, dword [esi]
jmp 0x1000337f
xor ecx, ecx
mov esi, dword [0x1001fac4]
add esi, ecx
push 4
push esi
call ebx
test eax, eax
jne 0x10003394
mov esi, dword [esi]
jmp 0x10003396
xor esi, esi
lea eax, [ebp - 0x30]
mov dword [0x1001e92c], esi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], esi
push eax
call fcn.10004420
mov edx, dword [ebp - 0x20]
cmp byte [edx + 0xd], 0
jne 0x100033be
mov byte [ebp - 1], 1
cmp esi, dword [edx + 0x10]
jae 0x100033c2
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
mov eax, dword [0x1001fad0]
cmovne eax, edx
cmp eax, dword [0x1001fad0]
jne 0x10003413
call dword [ebp - 0x14]
mov ecx, dword [0x1001e92c]
mov esi, eax
call fcn.100015c0
mov ebx, dword [0x1001e92c]
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
call fcn.10003c40
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov ebx, dword [ebp - 0x34]
call dword [ebp - 0x14]
mov esi, dword [0x1001facc]
push 4
push esi
mov dword [0x1001f7e4], eax
call ebx
test eax, eax
jne 0x1000342e
mov ecx, dword [esi]
jmp 0x10003430
xor ecx, ecx
mov esi, dword [0x1001fac4]
add esi, ecx
push 4
push esi
call ebx
test eax, eax
jne 0x10003457
mov edx, dword [esi]
mov ecx, dword [ebp - 0x10]
push 7
call fcn.100016d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor edx, edx
push 7
call fcn.100016d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret