Function at 0x412400
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5ebe74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x228], edi
mov edx, dword [eax]
mov eax, dword [0x5f6214]
cmp eax, dword [edx + 4]
jle 0x4124dc
push 0x5f6214
call fcn.005619b8
add esp, 4
cmp dword [0x5f6214], 0xffffffff
jne 0x4124dc
push 0x100
xorps xmm0, xmm0
mov dword [0x5f641c], 0x27
push str.D:SM_AHRS_20210404AHRS_UIAHRS_UIobject_access.cpp
push 0x5f6218
mov dword [0x5f6420], 0
movups xmmword [0x5f6428], xmm0
call fcn.0056a490
add esp, 0xc
mov byte [0x5f6318], 0
push 0x100
push str.CObjectAccess::SetObjectXXX
push 0x5f6319
call fcn.0056a490
add esp, 0xc
mov byte [0x5f6419], 0
push 0x592ce0
call fcn.00561689
add esp, 4
push 0x5f6214
call fcn.0056196e
add esp, 4
lea eax, [ebp - 0x248]
mov dword [ebp - 0x230], 0x5f6218
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea esi, [ebx + 0x14]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x24c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx]
mov dword [ebp - 0x224], eax
test edx, edx
je 0x412550
mov ecx, eax
sub ecx, edx
cmp ecx, 0x3e8
jbe 0x41264b
mov ecx, dword [ebx + 0xc]
mov dword [ebx], 0
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41256b
sub eax, ecx
cmp eax, 0x3e8
jbe 0x41264b
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [ebp - 0x224], eax
test eax, eax
jle 0x4125a9
mov esi, eax
nop
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x220]
mov edi, 0x100
cmp esi, edi
mov eax, dword [ecx]
cmovb edi, esi
push edi
push edx
call dword [eax + 0x10]
sub esi, edi
test esi, esi
jg 0x412580
mov edi, dword [ebp - 0x228]
lea esi, [ebx + 0x14]
mov al, byte [ebx + 0x10]
mov byte [ebp - 0x1e], al
mov al, byte [ebp + 8]
or al, 0x10
mov word [ebp - 0x20], 0x902
mov byte [ebp - 0x1d], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x1c], al
shr eax, 8
mov byte [ebp - 0x1b], al
movsx eax, byte [ebp + 8]
mov dword [ebp - 0x1a], 0
mov word [ebp - 0x16], 0
mov byte [ebp - 0x14], 3
mov dword [ebp - 0x224], eax
cmp eax, 0xc
ja case.0x4125f0.1
movzx eax, byte [eax + 0x4128b4]
jmp dword [eax*4 + 0x4128a0]
mov al, byte [edi]
mov byte [ebp - 0x19], al
jmp case.0x4125f0.1
mov ax, word [edi]
mov word [ebp - 0x19], ax
jmp case.0x4125f0.1
mov eax, dword [edi]
mov dword [ebp - 0x19], eax
jmp case.0x4125f0.1
movss xmm0, dword [edi]
movss dword [ebp - 0x19], xmm0
push 9
lea eax, [ebp - 0x1e]
push eax
call fcn.00412dd0
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x20]
mov byte [ebp - 0x15], al
push 0xe
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jns 0x412707
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov ecx, dword [ebx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx]
call dword [eax]
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x238]
sub ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x234]
sbb edx, dword [ebp - 0x23c]
call fcn.00582e00
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x248]
movsd qword [ebp - 0x250], xmm0
call fcn.00582e00
movsd xmm1, qword [ebp - 0x250]
mov al, bl
divsd xmm1, xmm0
mov ecx, dword [ebp - 0x230]
movsd xmm0, qword [ecx + 0x218]
mulsd xmm1, qword [0x5cbdb0]
maxsd xmm0, xmm1
movsd qword [ecx + 0x218], xmm0
mov ecx, dword [ebp - 0x230]
inc dword [ecx + 0x208]
mov ecx, dword [ebp - 0x230]
addsd xmm1, qword [ecx + 0x210]
movsd qword [ecx + 0x210], xmm1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00561419
mov esp, ebp
pop ebp
ret 0x10
push dword [ebx + 8]
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, ebx
call fcn.00412eb0
mov ecx, eax
mov dword [ebp - 0x228], ecx
test ecx, ecx
jns 0x412733
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebx], eax
jmp 0x41264b
jne 0x412744
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebx + 4], eax
jmp 0x41264b
cmp ecx, 0xd
jl 0x41264b
lea eax, [ecx - 0xd]
and eax, 0x80000003
jns 0x41275e
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x41264b
cmp byte [ebp - 0x120], 2
jne 0x41264b
movsx eax, byte [ebp - 0x11f]
add ecx, 0xfffffffc
cmp eax, ecx
jne 0x41264b
mov al, byte [ebp - 0x11d]
and al, 0xf0
cmp al, 0x80
je 0x41264b
cmp al, 0x20
jne 0x41264b
mov eax, dword [ebp + 0xc]
cmp word [ebp - 0x11c], ax
jne 0x41264b
cmp byte [ebp - 0x11a], 0
jne 0x41264b
push ecx
lea eax, [ebp - 0x11e]
push eax
call fcn.00412dd0
mov ecx, dword [ebp - 0x228]
cmp byte [ebp + ecx - 0x122], al
jne 0x41264b
cmp byte [ebp + ecx - 0x121], 3
jne 0x41264b
movsx eax, byte [ebp - 0x11d]
xorps xmm0, xmm0
and eax, 0xf
mov dword [ebx], 0
mov dword [ebx + 4], 0
cmp eax, 0xc
ja case.0x41280c.1
movzx eax, byte [eax + 0x4128d8]
jmp dword [eax*4 + 0x4128c4]
movsx eax, byte [ebp - 0x119]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
jmp case.0x41280c.1
movsx eax, word [ebp - 0x119]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
jmp case.0x41280c.1
movd xmm0, dword [ebp - 0x119]
cvtdq2pd xmm0, xmm0
jmp case.0x41280c.1
movss xmm0, dword [ebp - 0x119]
cvtps2pd xmm0, xmm0
mov eax, dword [ebp - 0x224]
cmp eax, 0xc
ja case.0x412860.1
movzx eax, byte [eax + 0x4128fc]
jmp dword [eax*4 + 0x4128e8]
cvttsd2si eax, xmm0
mov bl, 1
mov byte [edi], al
jmp 0x41264d
cvttsd2si eax, xmm0
mov bl, 1
mov word [edi], ax
jmp 0x41264d
cvttsd2si eax, xmm0
mov bl, 1
mov dword [edi], eax
jmp 0x41264d
cvtpd2ps xmm0, xmm0
movss dword [edi], xmm0
mov bl, 1
jmp 0x41264d