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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
test byte [0x11cd362c], 1
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [0x11d0c5b8]
push edi
mov dword [ebp - 0xc], esi
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0xf944]
mov dword [ebp - 4], eax
je 0x10102087
cmp dword [0x11cd3624], 0
jne 0x10102062
mov ecx, 0x11cd3610
call fcn.100f5b00
test al, al
je 0x10102087
mov edx, dword [0x11cd3618]
xor eax, eax
mov edi, dword [0x11cd3614]
test edx, edx
je 0x10102087
lea ecx, [edi + 4]
cmp dword [ecx], 0xdb3859
je 0x101020e4
inc eax
add ecx, 0x10
cmp eax, edx
jb 0x10102077
mov eax, 0xc
mov edx, dword [ebp - 4]
mov ecx, 0xc
cmp eax, ecx
cmova ecx, eax
lea eax, [edx - 1]
imul ecx, eax
mov eax, 0x48
imul ecx, edx
mov edx, 1
shr ecx, 1
cmp ecx, eax
cmova ecx, eax
mov dword [esi + 0x364], ecx
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0xd2cc]
test ecx, ecx
cmove ecx, edx
test byte [eax + 0xec30], dl
je 0x101020d7
cmp ecx, 2
je case.0x101020dd.3
dec ecx
cmp ecx, 3
ja case.0x101020dd.1
jmp dword [ecx*4 + 0x10102328]
add eax, eax
mov eax, dword [edi + eax*8 + 0xc]
jmp 0x1010208c
test dword [eax + 0x140], 0x18000000
je 0x10102203
mov byte [esi + 0x36c], dl
mov cl, dl
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x140]
shr eax, 0x1c
not al
and al, 1
jmp 0x1010215b
test dword [eax + 0x140], 0x8000000
je 0x10102203
mov al, dl
mov byte [esi + 0x36c], dl
mov cl, al
jmp 0x1010215b
test dword [eax + 0x140], 0x10000000
je 0x10102203
mov byte [esi + 0x36c], dl
xor al, al
mov cl, dl
jmp 0x1010215b
xor al, al
xor cl, cl
mov byte [esi + 0x36c], cl
mov byte [esi + 0x36d], al
cmp dword [0x11d0c728], 4
jge 0x1010220c
movzx edi, cl
xor edi, edx
inc edi
test cl, cl
je 0x10102186
mov ebx, 0x800a00
mov dword [ebp - 4], 0x440000
jmp 0x10102192
mov ebx, 0x800200
mov dword [ebp - 4], 0x480000
mov eax, dword [esi + 0x364]
lea ecx, [ebp - 0x1e8]
push 0x78100000
push edi
shl eax, 0x14
push 1
push eax
push eax
call fcn.10025350
mov eax, dword [ebp - 0x188]
and eax, 0xffffff
or byte [ebp - 0x17a], 4
shl edi, 0x18
or edi, eax
mov eax, dword [0x11d0c5b8]
mov dword [ebp - 0x188], edi
mov edi, dword [ebp - 8]
push 0
push 1
mov eax, dword [edi + eax*4]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 8]
add ecx, 0x7a80
push ecx
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1e8]
push ebx
push eax
call fcn.100569d0
mov dword [esi], eax
test eax, eax
jne 0x1010220f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
xor ebx, ebx
cmp dword [esi + 0x364], ebx
jbe 0x1010231d
mov eax, dword [0x11d0c5b8]
mov eax, dword [edi + eax*4]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
nop dword [eax + eax]
mov eax, dword [eax + 0x10]
xorps xmm0, xmm0
mov dword [edi], eax
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 1
mov esi, dword [eax + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x101022e2
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d0]
lea ecx, [ebp - 0x60]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov dword [ebp - 8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x14]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
mov eax, dword [ebp - 8]
jmp 0x101022fd
mov eax, dword [esi + 0x10d0]
lea ecx, [ebp - 0x60]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
test eax, eax
jne 0x10102307
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
inc ebx
add edi, 0xc
cmp ebx, dword [eax + 0x364]
mov eax, dword [ebp - 4]
jb 0x10102230
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret