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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0xc8], eax
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x14], edx
neg edx
sbb eax, edi
jge 0x55f8d5
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0xa4], 0xffffffff
mov byte [esp + 0x70], 0
mov byte [esp + 0xa0], 0
cmp byte [ecx + 4], 0
mov dword [esp + 0xc], ecx
je 0x55f2e6
mov eax, dword [esp + 0x14]
not eax
mov ecx, edi
xor ecx, 0x7fffffff
or ecx, eax
mov dword [esp + 0x18], edi
je 0x55f29b
mov ecx, dword [0x64c080]
cmp ecx, 0x56aca0
jne 0x55f2c9
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
cmp edi, 0x7bd05af7
mov eax, esi
sbb eax, 0x863
jge 0x55f9d7
mov ecx, 0xf4240
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x64f6a4]
push dword [0x64f6a0]
push ecx
push eax
call fcn.005a13d0
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, ecx
adc edx, edi
seto cl
mov esi, edx
sar esi, 0x1f
lea ebx, [esi - 0x80000000]
test cl, cl
cmove esi, eax
mov dword [esp + 8], esi
test cl, cl
cmove ebx, edx
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esp + 0x14]
mov eax, esi
mov ecx, 0xffffffff
xor eax, ecx
mov ecx, edi
mov edx, 0x7fffffff
xor ecx, edx
or ecx, eax
je 0x55f290
push 0
push 0x3e8
push edi
push esi
call fcn.0059d670
mov ecx, eax
mov dword [esp + 0x1c], edi
mov edi, edx
mov edx, 0x3e8
mul edx
imul ebx, edi, 0x3e8
add ebx, edx
cmp eax, esi
sbb ebx, dword [esp + 0x1c]
adc ecx, 0
adc edi, 0
jne 0x55f662
mov esi, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push dword [esi]
call ebx
test eax, eax
jne 0x55f33f
mov bl, 1
cmp byte [esi + 4], 0
je 0x55f2b0
cmp byte [esp + 0xa0], 0
jne 0x55f413
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, 0xffffffff
mov esi, dword [esp + 0xc]
jmp 0x55f253
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
jmp 0x55f1f2
mov dword [esp + 0xc4], 0x1a8
mov al, byte [0x64f5cc]
test al, al
je 0x55f268
jmp 0x55f995
call dword [0x6445dc]
lea esi, [esp + 0xb8]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x55f1ca
lea esi, [esp + 0x60]
push 0x24
push str.waitable_event.cc
push str.TimedWait
push esi
call fcn.0051dbb0
add esp, 0x10
cmp byte [esp + 0xa0], 0
jne 0x55f8f1
lea ecx, [esp + 0x70]
push 1
push 0
call fcn.00536a30
mov dword [esp + 0xb4], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x55f92f
mov byte [esp + 0xa0], 1
jmp 0x55f140
cmp eax, 0x102
jne 0x55f905
mov ecx, dword [0x64c080]
cmp ecx, 0x56aca0
jne 0x55f3f9
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
cmp edi, 0x7bd05af7
mov eax, ebx
sbb eax, 0x863
jge 0x55fa76
mov eax, edi
mov ecx, 0xf4240
mul ecx
imul ecx, ebx, 0xf4240
add ecx, edx
push dword [0x64f6a4]
push dword [0x64f6a0]
push ecx
push eax
call fcn.005a13d0
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 8]
sub ecx, eax
mov edi, dword [esp + 0x10]
sbb edi, edx
seto bl
mov esi, edi
sar esi, 0x1f
test bl, bl
lea eax, [esi - 0x80000000]
cmove esi, ecx
test bl, bl
cmove eax, edi
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 8]
sbb edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
jl 0x55f1fc
xor ebx, ebx
jmp 0x55f268
call dword [0x6445dc]
lea eax, [esp + 0x60]
push eax
call ecx
add esp, 4
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
jmp 0x55f3b0
mov dword [esp + 0xb8], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x55f95e
call fcn.0057dc60
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.0057dc60
xor edi, edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x70]
test edi, edi
je 0x55f4c1
cmp dword [esp + 0x74], 0
jne 0x55f4c1
cmp byte [edi + 0x11], 0
je 0x55f4c1
mov eax, dword [edi + 0x20]
add eax, 0x50
mov dword [esp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x55f66a
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
cmp byte [edi + 0x2b], 0
jne 0x55f4b1
cmp byte [edi + 0x29], 0
mov eax, dword [edi + 0x20]
jne 0x55f679
dec dword [eax + 0xb4]
cmp byte [edi + 0x11], 0
je 0x55f986
cmp byte [edi + 0x10], 0
je 0x55f548
mov word [edi + 0x29], 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0057dc60
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
cmp byte [esp + 0x98], 0
je 0x55f4e8
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x55f560
mov eax, dword [esp + 0x78]
test eax, eax
je 0x55f4f6
mov ecx, dword [esp + 0x7c]
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x55f893
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x70]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jae 0x55f276
push eax
call fcn.00506f30
add esp, 4
jmp 0x55f276
cmp byte [edi + 0x2a], 0
mov eax, dword [edi + 0x20]
jne 0x55f8a1
dec dword [eax + 0xb8]
jmp 0x55f4b1
mov dword [esp + 0x14], eax
mov ecx, dword [fcn.0056d830]
cmp ecx, 0x56aca0
mov dword [esp + 0x1c], ebx
jne 0x55f645
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
cmp esi, 0x7bd05af7
mov eax, edi
sbb eax, 0x863
jge 0x55fb00
mov ecx, 0xf4240
mov eax, esi
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x64f6a4]
push dword [0x64f6a0]
push ecx
push eax
call fcn.005a13d0
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
sub eax, ecx
mov dword [esp + 8], edx
mov ecx, edx
sbb ecx, esi
seto bl
mov edi, ecx
sar edi, 0x1f
test bl, bl
cmovne eax, edi
add edi, 0x80000000
test bl, bl
cmove edi, ecx
cmp eax, 0xf4240
mov ecx, edi
sbb ecx, 0
jge 0x55f6ae
mov esi, dword [esp + 0x90]
test esi, esi
mov ebx, dword [esp + 0x1c]
je 0x55f4e8
lock dec dword [esi]
jne 0x55f4e8
jmp 0x55fa61
call dword [0x6445dc]
lea esi, [esp + 0xb8]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x55f5dc
xor ecx, ecx
dec ecx
jmp 0x55f249
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x55f47c
mov ecx, dword [eax + 0x5c]
mov edx, dword [eax + 0xa4]
dec edx
mov dword [eax + 0xa4], edx
cmp ecx, dword [eax + 0x60]
je 0x55f696
cmp dword [eax + 0xac], edx
jae 0x55f6a1
mov word [eax + 0x78], 0
jmp 0x55f49d
movzx ecx, word [ecx + 8]
mov word [eax + 0x78], cx
jmp 0x55f49d
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
xor eax, eax
dec eax
mov ebx, 0x3938700
mov ecx, dword [esp + 0x14]
add ebx, dword [ecx + 0xf8]
mov ecx, dword [ecx + 0xfc]
adc ecx, 0
mov edx, 0x7fffffff
cmovno edx, ecx
cmovo ebx, eax
cmp dword [esp + 0x18], ebx
mov ecx, dword [esp + 8]
sbb ecx, edx
jge 0x55fbee
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xf8]
mov esi, dword [eax + 0xfc]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
sub edx, ecx
mov ebx, dword [esp + 0x10]
sbb ebx, esi
seto cl
mov eax, ebx
sar eax, 0x1f
test cl, cl
cmovne edx, eax
add eax, 0x80000000
test cl, cl
cmove eax, ebx
mov ecx, 0xffffffff
add ecx, edx
mov ebx, 0x7fffffff
adc ebx, eax
add ecx, 2
adc ebx, 0
cmp ecx, 2
sbb ebx, 0
jb 0x55fbce
movd xmm0, edx
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [esp + 0x58], xmm0
fild qword [esp + 0x58]
fstp qword [esp + 0x50]
movsd xmm0, qword [esp + 0x50]
divsd xmm0, qword [0x634a90]
sub esp, 8
movsd qword [esp], xmm0
call fcn.005aa8b0
add esp, 8
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
movsd xmm1, qword [0x6350b0]
ucomisd xmm1, xmm0
jb 0x55fba0
maxsd xmm0, qword [0x6350b8]
cvttsd2si ebx, xmm0
mov ecx, 0xffffffff
mov edx, dword [esp + 0x20]
add ecx, edx
mov eax, 0x7fffffff
adc eax, edi
add ecx, 2
adc eax, 0
movd xmm0, edx
movd xmm1, edi
cmp ecx, 2
sbb eax, 0
punpckldq xmm0, xmm1
movq qword [esp + 0x40], xmm0
fild qword [esp + 0x40]
fstp qword [esp + 0x38]
jae 0x55f7e7
movsd xmm0, qword [0x6350c0]
jmp 0x55f7f5
movsd xmm0, qword [esp + 0x38]
divsd xmm0, qword [0x634a90]
sub esp, 8
movsd qword [esp], xmm0
call fcn.005aa9ad
add esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [0x6350b0]
ucomisd xmm1, xmm0
jb 0x55fbb7
maxsd xmm0, qword [0x6350b8]
cvttsd2si esi, xmm0
add esi, ebx
cmp esi, 0x3c
mov edi, 0x3c
cmovl edi, esi
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x55fb91
cmp ebx, edi
jge 0x55f865
mov eax, dword [esp + 0x14]
inc dword [eax + ebx*4 + 8]
inc ebx
cmp edi, ebx
jne 0x55f858
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp esi, 0x3d
jl 0x55f624
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x100]
sub esi, edi
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x55f82d
jmp 0x55f624
push eax
call fcn.00506f30
add esp, 4
jmp 0x55f514
dec dword [eax + 0xa8]
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [eax + 0x60]
je 0x55f8bd
mov edx, dword [eax + 0xac]
cmp edx, dword [eax + 0xa4]
jae 0x55f8c8
mov word [eax + 0x78], 0
jmp 0x55f4b1
movzx ecx, word [ecx + 8]
mov word [eax + 0x78], cx
jmp 0x55f4b1
call fcn.0057ba50
mov ebx, eax
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
jmp 0x55f286
lea ebx, [esp + 0x70]
mov ecx, ebx
call fcn.0054a630
mov byte [ebx + 0x30], 0
jmp 0x55f30d
mov ecx, dword [esp + 0x14]
mov edx, 0xffffffff
xor ecx, edx
mov edx, dword [esp + 0x18]
mov esi, 0x7fffffff
xor edx, esi
or edx, ecx
jne 0x55f34a
mov ecx, eax
call fcn.005e65e0
jmp 0x55f34a
movzx ecx, al
lea eax, [esp + 0xb8]
mov dword [eax], esi
lea esi, [esp + 0xc4]
mov dword [esi], str.ScopedBlockingCallWithBaseSyncPrimitives
lea edx, [esp + 0xb4]
push eax
push esi
call fcn.005da640
add esp, 8
jmp 0x55f332
movzx eax, al
mov dword [esp + 0x60], 0
lea ecx, [esp + 0xb8]
push 2
lea edx, [esp + 0x64]
push edx
push ecx
push eax
call fcn.005beed0
add esp, 0x10
jmp 0x55f42b
push str....._third_partylibc_srcincludeoptional:801:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x62a183
call fcn.005aacb0
movzx eax, al
mov ecx, dword [0x64e76c]
xor esi, dword [0x64e768]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], esi
lea ecx, [esp + 0xb8]
mov dword [ecx], str.WaitableEvent::Wait_Complete
lea edx, [esp + 0xc4]
lea esi, [esp + 0x60]
push esi
push 3
push ecx
push edx
push eax
call fcn.005e6670
add esp, 0x14
jmp 0x55f268
mov ebx, dword [0x64f6a0]
mov dword [esp + 0x24], ebx
mov eax, dword [0x64f6a4]
mov dword [esp + 0x1c], eax
push eax
push ebx
push esi
push edi
call fcn.005a13d0
mov dword [esp + 8], eax
mov ecx, edx
mov eax, dword [esp + 8]
mul ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov ebx, eax
imul ebx, dword [esp + 0x1c]
add edx, ebx
imul ebx, ecx, 0xf4240
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
imul ecx, ebx
add ecx, edx
sub edi, dword [esp + 0x20]
sbb esi, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 8], eax
add edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add edx, ecx
push dword [esp + 0x1c]
push ebx
push edx
push eax
call fcn.005a13d0
add eax, dword [esp + 8]
adc edx, dword [esp + 0x10]
jmp 0x55f1c6
mov ecx, esi
call fcn.00503060
push esi
call fcn.0057dc2b
add esp, 4
jmp 0x55f4e8
mov esi, dword [0x64f6a0]
mov dword [esp + 0x28], esi
mov eax, dword [0x64f6a4]
mov dword [esp + 0x1c], eax
push eax
push esi
push ebx
push edi
call fcn.005a13d0
mov dword [esp + 0x20], eax
mov ecx, edx
mov eax, dword [esp + 0x20]
mul esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov esi, eax
imul esi, dword [esp + 0x1c]
add edx, esi
imul esi, ecx, 0xf4240
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x28]
imul ecx, esi
add ecx, edx
sub edi, dword [esp + 0x2c]
sbb ebx, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 0x20], eax
add edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
mov eax, edi
mul ecx
imul ecx, ebx, 0xf4240
add edx, ecx
push dword [esp + 0x1c]
push esi
push edx
push eax
call fcn.005a13d0
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
jmp 0x55f3b0
mov eax, dword [0x64f6a0]
mov dword [esp + 0xc], eax
mov ecx, dword [0x64f6a4]
mov dword [esp + 0x18], ecx
push ecx
push eax
push edi
push esi
call fcn.005a13d0
mov dword [esp + 8], eax
mov dword [esp + 0x24], edx
mul dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 8]
imul ecx, dword [esp + 0x18]
add edx, ecx
mov eax, dword [esp + 0x24]
imul ecx, eax, 0xf4240
mov dword [esp + 0x10], ecx
imul eax, dword [esp + 0xc]
add eax, edx
sub esi, dword [esp + 0x20]
sbb edi, eax
mov ecx, 0xf4240
mov eax, dword [esp + 8]
mul ecx
mov dword [esp + 8], eax
add edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov eax, esi
mul ecx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esp + 0x18]
push dword [esp + 0x10]
push edx
push eax
call fcn.005a13d0
add eax, dword [esp + 8]
adc edx, dword [esp + 0x10]
jmp 0x55f5ce
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x55f854
xor eax, eax
ucomisd xmm0, qword [0x6350b8]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x55f7a3
xor eax, eax
ucomisd xmm0, qword [0x6350b8]
mov esi, 0x7fffffff
cmovb esi, eax
jmp 0x55f82d
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
sbb dword [esp + 0x10], esi
setl al
movzx eax, al
movsd xmm0, qword [eax*8 + 0x6350a0]
jmp 0x55f763
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
sub esp, 0xc
movq xmm0, qword [esp + 0x6c]
movq qword [esp + 4], xmm0
lea ebx, [esp + 0xd0]
mov dword [esp], ebx
call fcn.00502f80
add esp, 0xc
mov esi, dword [ebx]
test esi, esi
je 0x55f6ec
lock dec dword [esi]
jne 0x55f6ec
mov ecx, esi
call fcn.00503060
push esi
call fcn.0057dc2b
add esp, 4
jmp 0x55f6ec