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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0x68], eax
push edi
mov dword [ebp - 0x58], esi
mov edi, dword [esi + 0xdc]
mov eax, dword [edi + 0x12e4]
cmp eax, 0xffffffff
jne 0x10241414
mov eax, dword [edi + 0x1338]
cmp eax, 0xffffffff
jne 0x10241414
xor edx, edx
jmp 0x1024141b
mov edx, dword [edi + eax*4 + 0x11dc]
mov eax, dword [esi + 0x124]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x4c], 0x4e564441
mov dword [ebp - 0x48], 0x10002
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], 0x4e564458
mov dword [ebp - 0x3c], 0x2000041
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x78], ecx
mov eax, dword [edi + 0x11cc]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0x40
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x10b4]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10241537
mov eax, dword [edi]
test eax, eax
je 0x10241537
mov edx, dword [eax + 0xbe28]
test edx, edx
je 0x10241537
mov edx, dword [edx + 0x14]
test edx, edx
je 0x10241537
cmp dword [eax + 0xd45c], 1
jne 0x10241524
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [edi + 0x1428]
push eax
call esi
mov ecx, dword [edi + 0x10b4]
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov dword [ebp - 0x50], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x64]
movlpd qword [ebp - 0x64], xmm0
push eax
call esi
mov ecx, dword [ebp - 0x64]
sub ecx, dword [edi + 0x1428]
mov eax, dword [ebp - 0x60]
sbb eax, dword [edi + 0x142c]
add dword [edi + 0x1420], ecx
mov esi, dword [ebp - 0x58]
adc dword [edi + 0x1424], eax
mov eax, dword [ebp - 0x50]
jmp 0x1024152c
lea eax, [ebp - 0x7c]
push eax
push edx
call dword [ebp - 0x50]
test eax, eax
js 0x102415e6
mov ecx, dword [ebp - 0x10]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x14]
cvtsi2sd xmm0, ecx
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1122e340]
mov ecx, dword [ebp - 0x18]
divsd xmm0, qword [0x1122d4e8]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x50], xmm0
call fcn.104511a0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [ebp - 0x64], xmm0
call fcn.104511a0
movaps xmm2, xmm0
movss xmm0, dword [ebp - 0x50]
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm2, xmm1
movlpd qword [ebp - 0x5c], xmm0
movsd xmm0, qword [0x1122d530]
addsd xmm2, qword [ebp - 0x64]
comisd xmm2, xmm0
jb 0x102415bb
subsd xmm2, xmm0
comisd xmm0, xmm2
jbe 0x102415bb
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
add esi, 0
adc edi, 0x80000000
jmp 0x102415c1
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
movaps xmm0, xmm2
call fcn.104510f0
mov ecx, dword [ebp - 0x68]
add eax, esi
adc edx, edi
test ecx, ecx
je 0x102415dd
movss xmm0, dword [ebp - 0x50]
movss dword [ecx], xmm0
test ebx, ebx
je 0x102415e6
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0xc