Function at 0x10088db0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and byte [ebp - 0x4c], 0xfe
lea eax, [ebp - 0x44]
push ebx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push edi
mov ebx, ecx
movlpd qword [ebp - 0x2c], xmm0
push eax
mov dword [ebp - 8], ebx
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
or byte [ebp - 0x4c], 1
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0xa0]
mov ecx, ebx
inc dword [eax + 0x147c]
add eax, 0x1434
mov dword [ebx + 0x26c], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10088e72
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x10088e48
nop
mov esi, dword [eax + 0xa4]
lea ecx, [ebx + 0xa8]
push eax
call fcn.10063500
mov eax, esi
test esi, esi
jne 0x10088e30
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xac], 0
and byte [ebx + 0x258], 0xfe
jmp 0x10089306
cmp byte [ebp + 0x18], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x1c], edi
jne 0x10088e98
mov eax, dword [ebx + 0x28]
and dword [edi], eax
mov eax, dword [ebx + 0x2c]
and dword [edi + 4], eax
mov eax, dword [ebx + 0x30]
and dword [edi + 8], eax
mov eax, dword [ebx + 0x34]
and dword [edi + 0xc], eax
mov eax, dword [ebx + 0x370]
push 0x10
push 0x368
mov dword [ebp - 0x24], eax
call fcn.10434a32
add esp, 8
test eax, eax
je 0x100892c5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
mov ecx, eax
call fcn.10084d90
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100892c5
mov edx, dword [0x11d0c5b8]
mov ecx, dword fs:[0x2c]
mov dword [ebx + 0x370], eax
mov dword [eax + 0x2f8], esi
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 0x10]
test dword [eax + 0x190], 0x3fff00
je 0x10088f0a
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x64]
mov eax, dword [ebx + 0x14]
lea esi, [ebx + 0x14]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x10089019
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x10089019
mov eax, dword [ebx + 0xa4]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10089019
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x90]
call eax
mov esi, dword [esi]
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call dword [esi + 0x8c]
mov ecx, dword [ebp + 0x14]
mov esi, eax
cmp dword [ecx + 0x6a10], 0
jne 0x10088fad
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x6a20]
cmp esi, 0x100
jb 0x10088f8a
test al, 2
jmp 0x10088f8c
test al, 1
je 0x10088fad
push dword [edx + 0x30684]
mov edx, dword [edx + 0x1540]
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.100cfa50
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x10088fb6
xor eax, eax
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10089016
push dword [ebx + 0xa4]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
push dword [ebx + 0xa0]
mov esi, dword [ebx + 0x370]
call dword [eax + 0x70]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, esi
push ebx
push dword [ebx + 0xa0]
call fcn.10085020
test al, al
je 0x10089016
lea eax, [ebx + 0x54]
push eax
push ecx
mov ecx, dword [ebx + 0x370]
call fcn.100854d0
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 0xa8]
mov eax, dword [ebx + 0x370]
mov dword [ebp + 0x14], 1
mov dword [ecx + 8], eax
jmp 0x10089112
lea esi, [ebx + 0x14]
mov eax, dword [ebx + 0xa0]
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [eax + 0x32c], xmm0
movups xmmword [eax + 0x33c], xmm0
movups xmmword [eax + 0x34c], xmm0
mov dword [eax + 0x520], 0
add eax, 0x9c
movzx edi, word [ebx + 0x39a]
mov dword [ebx + 0x39c], eax
mov ebx, dword [ebx + 0x68]
mov dword [ebp + 0x14], eax
mov eax, dword [esi]
call dword [eax + 0x90]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
push dword [ecx + 0xa4]
push dword [ecx + 0xa0]
mov ecx, esi
call dword [eax + 0x70]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x8c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push edi
push dword [ebp + 0x14]
add ecx, 0xa8
mov dword [ebp - 0x18], ecx
lea ecx, [edx + 0x28]
mov edi, dword [ebp - 0x18]
push ecx
push ebx
mov ebx, dword [ebp - 8]
sub esp, 8
push esi
mov esi, dword [ebp - 0x20]
push ecx
push eax
lea eax, [edx + 0x10]
mov ecx, esi
push eax
push edx
push edi
push ebx
push dword [ebx + 0xa4]
push dword [ebx + 0xa0]
call fcn.100855a0
mov ecx, eax
mov dword [ebp + 0x14], ecx
cmp ecx, 3
ja case.0x100890d3.16
jmp dword [ecx*4 + 0x10089330]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], esi
jmp 0x10089108
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], esi
mov eax, dword [esi + 0x300]
mov dword [ecx], eax
jmp 0x10089108
xor eax, eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov ecx, esi
mov dword [ebx + 0x370], eax
mov eax, dword [esi]
push 1
call dword [eax]
mov dword [ebx + 0x39c], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x10089134
nop dword [eax]
mov esi, dword [eax + 0xa4]
mov ecx, edi
push eax
call fcn.10063500
mov eax, esi
test esi, esi
jne 0x10089120
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 0xa0]
add dword [eax + 0x147c], 0xffffffff
jne 0x10089162
mov dword [eax + 0x1478], 0
lea eax, [ebp - 0x34]
mov dword [ebx + 0x26c], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test byte [ebp - 0x4c], 1
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
je 0x10089198
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
sbb ecx, dword [ebp - 0x38]
add esi, eax
mov dword [ebp - 0x2c], esi
adc edx, ecx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, 2
jne 0x10089256
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x44]
mov edi, dword [eax + 0x10]
mov eax, ebx
je 0x10089207
or eax, dword [ebp - 0x40]
je 0x100891e9
mov ecx, esi
call fcn.10451200
mov edx, dword [ebp - 0x40]
mov ecx, ebx
cvtsd2ss xmm0, xmm0
movss dword [ebp + 0xc], xmm0
call fcn.10451200
movss xmm1, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
jmp 0x100891ec
xorps xmm1, xmm1
addss xmm1, dword [edi + 0x7c88]
mov eax, ecx
movss dword [edi + 0x7c88], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
or eax, dword [ebp - 0x40]
je 0x10089238
mov ecx, esi
call fcn.10451200
mov edx, dword [ebp - 0x40]
mov ecx, ebx
cvtsd2ss xmm0, xmm0
movss dword [ebp + 0xc], xmm0
call fcn.10451200
movss xmm1, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
jmp 0x1008923b
xorps xmm1, xmm1
addss xmm1, dword [edi + 0x7c84]
mov eax, ecx
movss dword [edi + 0x7c84], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp ecx, 1
jne 0x100892ba
mov edi, dword [ebp - 0x44]
mov eax, edi
mov ebx, dword [ebp - 0x40]
or eax, ebx
je 0x10089292
mov ecx, esi
call fcn.10451200
cvtsd2ss xmm0, xmm0
mov edx, ebx
mov ecx, edi
movss dword [ebp + 0xc], xmm0
call fcn.10451200
movss xmm1, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
jmp 0x10089295
xorps xmm1, xmm1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
addss xmm1, dword [eax + 0x7c80]
movss dword [eax + 0x7c80], xmm1
mov eax, dword [edx + 0x10]
inc dword [eax + 0x7c8c]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x100892e8
nop
mov esi, dword [eax + 0xa4]
lea ecx, [ebx + 0xa8]
push eax
call fcn.10063500
mov eax, esi
test esi, esi
jne 0x100892d0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xac], 0
mov eax, dword [ebx + 0xa0]
add dword [eax + 0x147c], 0xffffffff
jne 0x1008931f
mov dword [eax + 0x1478], 0
pop edi
xor eax, eax
pop esi
mov dword [ebx + 0x26c], eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14