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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov esi, esp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], esp
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x8c], 0x705840
mov dword [esi + 0x2c], ecx
lea eax, [esi + 0x88]
mov dword [esi + 0x1c], edx
mov ecx, dword fs:[0]
mov dword [esi + 0x88], ecx
mov dword fs:[0], eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x90], 0
call fcn.005fb560
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
jne 0x5fa521
lea ecx, [esi + 0x30]
call fcn.005faee0
mov eax, dword [esi + 0x48]
movsd xmm0, qword [esi + 0x40]
movsd xmm2, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x38]
mov dword [esi + 0x78], eax
lea eax, [esi + 0x60]
movsd qword [esi + 0x70], xmm0
movsd qword [esi + 0x68], xmm1
movsd qword [esi + 0x60], xmm2
mov dword [esi + 0x14], eax
imul eax, dword [esi + 0x2c], 0x9e3779b9
mov dword [esi + 4], eax
nop dword [eax + eax]
mov eax, dword [0x91977c]
test eax, eax
jne 0x5fa548
mov dword [esi + 0x90], 0
call fcn.0071b450
mov edi, dword [esi + 4]
mov edx, dword [eax + 4]
xor ecx, ecx
sub cl, byte [eax + 8]
shr edi, cl
cmp edi, edx
jae 0x5fabf0
mov ebx, dword [eax]
mov dword [esi + 8], eax
shl edi, 6
xor eax, eax
mov edx, 1
lock cmpxchg dword [ebx + edi + 0x18], edx
lea ecx, [ebx + edi + 0x18]
je 0x5fa599
mov dword [esi + 0x90], 0
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], ebx
call fcn.0071b6c0
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov eax, dword [0x91977c]
cmp dword [esi + 8], eax
je 0x5fa5d2
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 4
jb 0x5fa530
and eax, 2
jne 0x5fa530
mov dword [esi + 0x90], 0
call fcn.0071b810
jmp 0x5fa530
mov edx, dword [esi + 0x2c]
mov eax, dword [edx]
test eax, eax
je 0x5fa627
cmp eax, dword [esi + 0x1c]
je 0x5fa62c
mov eax, 0xffffffff
lock xadd dword [ecx], eax
mov dword [esi + 8], 0
cmp eax, 4
jb 0x5fa61e
and eax, 2
mov edx, 0
mov ebx, 0
jne 0x5fab8d
mov dword [esi + 0x90], 0
call fcn.0071b810
mov dword [esi + 8], 0
xor edx, edx
xor ebx, ebx
jmp 0x5fab8d
mov eax, dword [esi + 0x1c]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0x3b9aca00
mov eax, dword [esi + 0x14]
setne byte [eax + 0x18]
mov dword [eax + 0xc], 0
mov dword [eax + 8], edx
mov dword [eax + 0x14], 0
mov dword [eax + 4], 1
cmp dword [ebx + edi + 0x1c], 0
je 0x5fa662
mov eax, dword [ebx + edi + 0x20]
add eax, 0xc
jmp 0x5fa666
lea eax, [ebx + edi + 0x1c]
mov edx, dword [esi + 0x14]
mov dword [eax], edx
mov dword [ebx + edi + 0x20], edx
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 4
jb 0x5fa691
and eax, 2
jne 0x5fa691
mov dword [esi + 0x90], 0
call fcn.0071b810
mov edx, dword [esi + 0x1c]
xor ecx, ecx
mov al, 1
lock cmpxchg byte [edx], cl
je 0x5fa6b0
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x90], 0
call fcn.0071ade0
mov eax, dword [esi + 0x14]
cmp dword [ebp + 0x10], 0x3b9aca00
lea edx, [eax + 4]
mov eax, dword [eax]
mov dword [esi + 8], edx
mov ecx, dword [eax]
jne 0x5fa6eb
test ecx, ecx
je 0x5fa8bf
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x90], 0
push 0
push 0
push edx
push eax
call ecx
jmp 0x5fab7e
test ecx, ecx
je 0x5fa903
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x10], eax
lea eax, [esi + 0x20]
mov dword [esi + 4], ecx
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x5fad6a
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esi + 0x90], 0
call fcn.006b86a0
mov edi, edx
mov edx, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
cmp edx, eax
sbb ecx, edi
jb 0x5fa764
mov ecx, eax
xor ecx, edx
mov edx, edi
xor edx, dword [ebp + 0xc]
or edx, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
jne 0x5faa96
cmp ebx, dword [ebp + 0x10]
jb 0x5faa96
mov ecx, dword [esi + 8]
mov eax, 2
xchg dword [ecx], eax
test eax, eax
je 0x5faa84
nop word cs:[eax + eax]
mov edi, dword [0x91977c]
test edi, edi
jne 0x5fa79b
mov dword [esi + 0x90], 0
call fcn.0071b450
mov edi, eax
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov eax, dword [eax + 8]
mov edx, dword [edi + 4]
sub cl, byte [edi + 8]
imul ebx, eax, 0x9e3779b9
mov dword [esi + 8], eax
shr ebx, cl
cmp ebx, edx
jae 0x5facf5
mov edx, dword [edi]
mov dword [esi + 4], edi
shl ebx, 6
mov edi, 1
xor eax, eax
mov dword [esi + 0x18], edx
lea ecx, [edx + ebx + 0x18]
lock cmpxchg dword [edx + ebx + 0x18], edi
mov edx, dword [esi + 8]
je 0x5fa7fb
mov dword [esi + 0x90], 0
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ebx
call fcn.0071b6c0
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov eax, dword [0x91977c]
cmp dword [esi + 4], eax
jne 0x5fa80f
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
cmp eax, edx
je 0x5fa83e
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 4
jb 0x5fa780
and eax, 2
jne 0x5fa780
mov dword [esi + 0x90], 0
call fcn.0071b810
jmp 0x5fa780
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ebx
mov edx, dword [eax]
mov edi, dword [eax + 4]
xor eax, eax
test edi, edi
setne al
xor ebx, ebx
cmp edi, 2
sete bl
cmp dword [edx], 0
cmove ebx, eax
cmp bl, 1
jne 0x5faa52
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
mov ebx, dword [edx + eax + 0x1c]
test ebx, ebx
je 0x5facac
cmp ebx, dword [esi + 0x14]
je 0x5fac0e
mov al, 1
xor edx, edx
nop dword [eax]
mov edi, dword [ebx + 8]
mov dword [esi + 4], ebx
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x5facac
cmp edi, dword [esi + 8]
movzx eax, al
cmove eax, edx
cmp ebx, dword [esi + 0x14]
jne 0x5fa890
mov edx, dword [esi + 4]
and al, 1
lea edi, [edx + 0xc]
mov edx, dword [esi + 0x18]
jmp 0x5fac1e
mov ecx, dword [edx]
test ecx, ecx
je 0x5fab7e
mov eax, dword [eax + 4]
mov dword [esi + 0x90], 0
mov dword [esi + 4], eax
nop dword [eax]
mov dword [esi + 0x30], 1
push 0xffffffffffffffff
push 4
lea eax, [esi + 0x30]
push eax
push dword [esi + 8]
call dword [esi + 4]
mov eax, dword [esi + 8]
mov eax, dword [eax]
test eax, eax
jne 0x5fa8e0
jmp 0x5fab7e
mov ecx, dword [edx]
test ecx, ecx
je 0x5fab7e
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
nop word cs:[eax + eax]
nop dword [eax]
lea eax, [esi + 0x20]
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x5fad2f
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esi + 0x90], 0
call fcn.006b86a0
mov ebx, ecx
cmp dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
mov edi, edx
sbb ecx, edx
jb 0x5fa780
mov ecx, eax
mov edx, edi
xor ecx, dword [ebp + 8]
xor edx, dword [ebp + 0xc]
or edx, ecx
jne 0x5fa97e
cmp ebx, dword [ebp + 0x10]
jae 0x5fa780
mov ecx, dword [ebp + 8]
mov edx, eax
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
push ebx
push edi
call fcn.006b8840
add esp, 8
mov edi, eax
cmp ecx, 0x3b9aca00
mov eax, 0
cmove edx, eax
cmove edi, eax
mov eax, edx
mov edx, 0x3e8
mul edx
mov edx, 0x3e8
mov ebx, eax
mov eax, edi
seto byte [esi + 0xc]
mov edi, dword [esi + 4]
mul edx
add edx, ebx
setb bl
or bl, byte [esi + 0xc]
cmove edi, edx
mov dword [esi + 4], edi
mov edi, dword [esi + 0x10]
cmove edi, eax
mov dword [esi + 0x10], edi
jne 0x5faa22
cmp ecx, 0x3b9aca00
mov eax, 0
cmove ecx, eax
xor eax, eax
add ecx, 0xf423f
setb al
push 0
push 0xf4240
push eax
push ecx
call fcn.007082d0
add eax, edi
mov ecx, 0
adc edx, dword [esi + 4]
setb bl
neg edx
sbb ecx, ecx
test bl, bl
je 0x5faa29
mov ecx, 0xffffffff
jmp 0x5faa2b
or ecx, eax
mov eax, dword [esi + 8]
mov dword [esi + 0x30], 1
push ecx
push 4
lea ecx, [esi + 0x30]
push ecx
push eax
call dword [esi + 0x18]
mov eax, dword [esi + 8]
mov eax, dword [eax]
test eax, eax
jne 0x5fa920
jmp 0x5fab7e
mov ecx, dword [esi + 0x10]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 4
jb 0x5fab7e
and eax, 2
jne 0x5fab7e
mov dword [esi + 0x90], 0
call fcn.0071b810
jmp 0x5fab7e
push 0
push 0
push dword [esi + 8]
push dword [esi + 0x10]
call dword [esi + 4]
jmp 0x5fab7e
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x30], edx
mov edx, eax
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
push ebx
push edi
call fcn.006b8840
add esp, 8
mov ebx, eax
xor eax, eax
cmp ecx, 0x3b9aca00
mov edi, edx
mov dword [esi + 0x50], ecx
mov ecx, 0xff676980
cmove ebx, eax
cmove edi, eax
mov eax, ebx
mov dword [esi + 0x5c], ebx
mul ecx
mov dword [esi + 0x54], eax
mov eax, edi
mov dword [esi + 0xc], edx
mul ecx
add eax, dword [esi + 0xc]
mov ecx, edx
mov edx, 0xffffffff
mov dword [esi + 0xc], eax
mov eax, ebx
adc ecx, 0
mul edx
add dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov ebx, edx
mov eax, edi
adc ecx, edx
mov edx, 0xffffffff
setb byte [esi + 0x4c]
mul edx
add eax, ecx
mov ecx, 0xff676980
mov dword [esi + 0x58], eax
movzx eax, byte [esi + 0x4c]
adc edx, eax
sub ebx, dword [esi + 0x5c]
mov dword [esi + 0x4c], edx
sub ebx, edi
sar edi, 0x1f
mov eax, edi
mov edi, dword [esi + 0xc]
imul ecx
add eax, dword [esi + 0x18]
mov ecx, edi
adc edx, ebx
add eax, dword [esi + 0x58]
adc edx, dword [esi + 0x4c]
sar ecx, 0x1f
xor edx, ecx
xor ecx, eax
or ecx, edx
jne 0x5fab71
mov eax, dword [esi + 0x50]
mov ecx, 0
cmp eax, 0x3b9aca00
cmovne ecx, eax
xor eax, eax
add ecx, 0x63
setb al
push 0
push 0x64
push eax
push ecx
call fcn.007082d0
mov ecx, dword [esi + 0x54]
sub ecx, eax
sbb edi, edx
jno 0x5fac4a
push 0
push 0
push dword [esi + 8]
push dword [esi + 0x10]
call dword [esi + 4]
mov eax, dword [esi + 0x14]
mov cl, 1
xor edx, edx
mov bl, 1
mov dword [esi + 8], ecx
mov eax, dword [eax + 0x10]
cmp dword [esi + 0x60], 0
je 0x5fab9a
lock dec dword [0x919778]
cmp byte [esi + 8], 0
je 0x5fad1e
cmp eax, 1
sete al
test bl, al
jne 0x5fabbf
mov edi, edx
mov edx, dword [esi + 0x1c]
mov cl, 1
xor eax, eax
lock cmpxchg byte [edx], cl
mov edx, edi
jne 0x5fabda
mov eax, dword [esi + 0x88]
or bl, dl
xor bl, 1
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x90], 0xffffffff
call fcn.0071aab0
mov edx, edi
jmp 0x5fabbf
mov dword [esi + 0x90], 0
mov ecx, edi
push 0x8bb6e8
call fcn.00709fa0
add esp, 4
jmp 0x5fada3
mov eax, dword [esi + 0xc]
mov dword [esi + 4], 0
lea edi, [edx + eax + 0x1c]
mov al, 1
mov ecx, dword [esi + 0x14]
mov ebx, dword [ecx + 0xc]
mov dword [edi], ebx
mov edi, dword [esi + 0xc]
cmp dword [edx + edi + 0x20], ecx
je 0x5fac89
mov edi, dword [esi + 8]
test ebx, ebx
je 0x5fac95
mov edx, dword [ebx + 8]
cmp edx, edi
je 0x5fad13
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x5fac36
jmp 0x5fac95
lea eax, [esi + 0x30]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edi
push eax
push 0
push dword [esi + 8]
push dword [esi + 0x10]
call dword [esi + 4]
test eax, eax
je 0x5fab7e
mov ecx, dword [esi + 8]
mov eax, 2
xchg dword [ecx], eax
test eax, eax
jne 0x5fa780
push 0
push 0
push ecx
push dword [esi + 0x10]
call dword [esi + 4]
jmp 0x5fab7e
lea edx, [edx + edi + 0x20]
mov edi, dword [esi + 4]
mov dword [edx], edi
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x2c]
cmp edi, edx
setne bl
mov dword [esi + 4], ebx
jne 0x5facb3
test al, al
je 0x5facb3
mov dword [edx], 0
mov dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
mov eax, 0xffffffff
xor ebx, ebx
lock xadd dword [ecx], eax
mov edx, ecx
mov cl, 1
mov dword [esi + 8], ecx
cmp eax, 4
jb 0x5faced
and eax, 2
jne 0x5faced
mov ecx, edx
mov dword [esi + 0x90], 0
call fcn.0071b810
mov edx, dword [esi + 4]
xor ebx, ebx
jmp 0x5fab8d
mov edx, dword [esi + 4]
jmp 0x5fab8d
mov dword [esi + 0x90], 0
mov ecx, ebx
push 0x8bb61c
call fcn.00709fa0
add esp, 4
jmp 0x5fada3
cmp edi, dword [esi + 0x2c]
setne al
mov dword [esi + 4], eax
jmp 0x5facb3
mov dword [esi + 0x90], 0xffffffff
call fcn.0071b210
ud2
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x90], 1
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x8c9fc8
push 0x8c7c18
lea eax, [esi + 0x30]
push eax
call fcn.0070a360
add esp, 0xc
jmp 0x5fada3
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x90], 2
lea eax, [esi + 0x30]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x8c9fc8
push 0x8c7c18
push eax
call fcn.0070a360
add esp, 0xc
ud2