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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583dab
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5ebe74]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x230], edi
mov edx, dword [eax]
mov eax, dword [0x5f6438]
cmp eax, dword [edx + 4]
jle 0x4129ec
push 0x5f6438
call fcn.005619b8
add esp, 4
cmp dword [0x5f6438], 0xffffffff
jne 0x4129ec
push 0x100
xorps xmm0, xmm0
mov dword [0x5f6644], 0xab
push str.D:SM_AHRS_20210404AHRS_UIAHRS_UIobject_access.cpp
push 0x5f6440
mov dword [0x5f6648], 0
movups xmmword [0x5f6650], xmm0
call fcn.0056a490
add esp, 0xc
mov byte [0x5f6540], 0
push 0x100
push str.CObjectAccess::GetObjectXXX
push 0x5f6541
call fcn.0056a490
add esp, 0xc
mov byte [0x5f6641], 0
push 0x592d70
call fcn.00561689
add esp, 4
push 0x5f6438
call fcn.0056196e
add esp, 4
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x244], 0x5f6440
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea esi, [ebx + 0x14]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x238], 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 - 0x22c], eax
test edx, edx
je 0x412a60
mov ecx, eax
sub ecx, edx
cmp ecx, 0x3e8
jbe 0x412b3b
mov ecx, dword [ebx + 0xc]
mov dword [ebx], 0
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x412a7b
sub eax, ecx
cmp eax, 0x3e8
jbe 0x412b3b
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [ebp - 0x22c], eax
test eax, eax
jle 0x412ab9
mov esi, eax
nop
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x224]
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 0x412a90
mov edi, dword [ebp - 0x230]
lea esi, [ebx + 0x14]
mov al, byte [ebx + 0x10]
mov byte [ebp - 0x22], al
mov al, byte [ebp + 8]
or al, 0x30
mov word [ebp - 0x24], 0x902
mov byte [ebp - 0x21], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x20], al
shr eax, 8
mov byte [ebp - 0x1f], al
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x1e], al
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x22]
push 9
push eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 3
call fcn.00412dd0
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x24]
mov byte [ebp - 0x19], al
push 0xd
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
js 0x412b32
push dword [ebx + 8]
lea eax, [ebp - 0x124]
push ecx
push eax
mov ecx, ebx
call fcn.00412eb0
mov ecx, eax
mov dword [ebp - 0x230], ecx
test ecx, ecx
jns 0x412bf7
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebx], eax
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x248]
sbb edx, dword [ebp - 0x250]
call fcn.00582e00
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
movsd qword [ebp - 0x23c], xmm0
call fcn.00582e00
movsd xmm1, qword [ebp - 0x23c]
mov al, bl
divsd xmm1, xmm0
mov ecx, dword [ebp - 0x244]
movsd xmm0, qword [ecx + 0x218]
mulsd xmm1, qword [0x5cbdb0]
maxsd xmm0, xmm1
movsd qword [ecx + 0x218], xmm0
mov ecx, dword [ebp - 0x244]
inc dword [ecx + 0x208]
mov ecx, dword [ebp - 0x244]
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 - 0x14]
xor ecx, ebp
call fcn.00561419
mov esp, ebp
pop ebp
ret 0x14
jne 0x412c08
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebx + 4], eax
jmp 0x412b3b
cmp ecx, 0xd
jl 0x412b3b
lea eax, [ecx - 0xd]
and eax, 0x80000003
jns 0x412c22
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x412b3b
cmp byte [ebp - 0x124], 2
jne 0x412b3b
mov al, cl
sub al, 4
cmp byte [ebp - 0x123], al
jne 0x412b3b
mov al, byte [ebp - 0x121]
mov byte [ebp - 0x225], al
and al, 0xf0
cmp al, 0x80
je 0x412b3b
cmp al, 0x40
jne 0x412b3b
mov eax, dword [ebp + 0xc]
cmp word [ebp - 0x120], ax
jne 0x412b3b
mov al, byte [ebp + 0x10]
cmp byte [ebp - 0x11e], al
jne 0x412b3b
lea eax, [ecx - 4]
push eax
lea eax, [ebp - 0x122]
push eax
call fcn.00412dd0
mov ecx, dword [ebp - 0x230]
cmp byte [ebp + ecx - 0x126], al
jne 0x412b3b
cmp byte [ebp + ecx - 0x125], 3
jne 0x412b3b
lea eax, [ecx - 9]
mov dword [ebx], 0
mov ecx, dword [ebp + 0x18]
cdq
and edx, 3
mov dword [ebx + 4], 0
add eax, edx
sar eax, 2
cmp ecx, eax
cmovge ecx, eax
mov al, byte [ebp - 0x225]
and al, 0xf
test ecx, ecx
jle 0x412d81
movsx edx, byte [ebp + 8]
lea esi, [ebp - 0x11d]
movzx ebx, al
sub esi, edi
xorps xmm0, xmm0
cmp ebx, 0xc
ja case.0x412d02.1
movzx eax, byte [ebx + 0x412d9c]
jmp dword [eax*4 + 0x412d88]
movsx eax, byte [esi + edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
jmp case.0x412d02.1
movsx eax, word [esi + edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
jmp case.0x412d02.1
movd xmm0, dword [esi + edi]
cvtdq2pd xmm0, xmm0
jmp case.0x412d02.1
movss xmm0, dword [esi + edi]
cvtps2pd xmm0, xmm0
cmp edx, 0xc
ja case.0x412d44.1
movzx eax, byte [edx + 0x412dc0]
jmp dword [eax*4 + 0x412dac]
cvttsd2si eax, xmm0
movsx eax, al
mov dword [edi], eax
jmp case.0x412d44.1
cvttsd2si eax, xmm0
cwde
mov dword [edi], eax
jmp case.0x412d44.1
cvttsd2si eax, xmm0
mov dword [edi], eax
jmp case.0x412d44.1
cvtpd2ps xmm0, xmm0
movss dword [edi], xmm0
add edi, 4
sub ecx, 1
jne 0x412cf3
mov esi, dword [ebp - 0x238]
mov bl, 1
jmp 0x412b3d