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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x40], xmm0
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
mov byte [esp + 0x30], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x84], 0x83
movzx eax, byte [0x64b4cf]
test al, al
mov dword [esp + 0x18], ecx
jne 0x4f67cc
cmp byte [ecx + 0x88], 0
jne 0x4f6073
mov eax, dword [ecx + 0x40]
mov edx, dword [eax + 0x17c]
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
je 0x4f623d
cmp dword [eax + 0x14], 2
sete bl
cmp byte [ecx + 0x4d], bl
jne 0x4f6248
mov ebx, dword [ecx + 0x40]
mov edi, dword [ebx + 0x178]
test edi, edi
jne 0x4f67ff
cmp byte [ebx + 0x184], 1
je 0x4f65f0
lea edi, [ebx + 0x1f0]
mov eax, edi
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x4f64c5
cmp dword [ebx + 0x1c4], 0
jne 0x4f60b2
lock or dword [ebx + 0x44], 2
mov eax, dword [ecx + 0x90]
mov ecx, dword [eax]
lea edx, [ecx + 1]
cmp edx, 1
mov edx, dword [esp + 0x18]
adc ecx, 1
mov dword [eax], ecx
cmp byte [edx + 0xc0], 1
jne 0x4f6193
cmp byte [edx + 0xa8], 1
jne 0x4f618c
mov eax, dword [0x64984c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xb4]
test edi, edi
je 0x4f618c
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
js 0x4f674e
cmp dword [edi + 0x1c], 1
jne 0x4f670b
cmp dword [edi + 0x10], 0
jne 0x4f68c3
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, edx
and ecx, 0xbfffffff
mov ebx, eax
lock cmpxchg8b qword [edi + 8]
jne 0x4f6130
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + 0xb0]
mov esi, dword [edx + 0xb4]
cmp dword [edi + 0x10], 0
jne 0x4f68f7
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
mov ecx, 0x40000000
and eax, ecx
and esi, 0xffffff
or esi, eax
movd xmm0, esi
movd xmm1, ebx
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
dec dword [edi + 0x1c]
mov byte [edx + 0xc0], 0
lea esi, [edx - 0xa0]
cmp byte [esp + 0x50], 1
je 0x4f6762
mov eax, dword [edx - 0xac]
mov byte [esp + 0x30], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], esi
mov byte [esp + 0x50], 1
mov eax, 0x80000000
dec eax
xor eax, dword [edx + 0x64]
mov ecx, 1
or ecx, 0xfffffffe
xor ecx, dword [edx + 0x60]
or ecx, eax
jne 0x4f6778
mov eax, dword [edx + 0xc]
cmp dword [edx + 8], eax
je 0x4f673f
mov eax, dword [eax - 4]
cmp byte [eax + 0xb], 1
je 0x4f6479
mov dword [esp + 0x84], 0x83
movzx eax, byte [0x64b4cf]
test al, al
jne 0x4f67a6
cmp byte [esp + 0x50], 1
jne 0x4f6225
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
call fcn.004f6c50
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00567335
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp byte [ecx + 0x4d], bl
je 0x4f6073
mov byte [ecx + 0x4d], bl
mov eax, dword [0x64b6b4]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4f66be
mov esi, dword [0x64b6b0]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4f66ff
movzx edi, bl
dec edi
or edi, 1
xor ecx, ecx
inc ecx
test byte [0x64b660], 1
mov eax, 8
cmovne eax, ecx
xor ebx, ebx
add edi, dword [0x64b664]
mov dword [0x64b664], edi
cmovne ebx, eax
mov eax, dword [0x64b668]
cmp ebx, eax
je 0x4f6438
test eax, eax
mov dword [esp + 0xc], esi
je 0x4f63b7
mov ecx, dword [0x648080]
cmp ecx, 0x5531a0
mov dword [esp + 0x1c], ebx
jne 0x4f645f
xor eax, eax
lea esi, [esp + 0x60]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov esi, dword [esi + 4]
cmp eax, 0x7bd05af7
mov ecx, esi
sbb ecx, 0x863
jge 0x4f6a3b
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x64b6cc]
push dword [0x64b6c8]
push ecx
push eax
call fcn.005877d0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
sub eax, dword [0x64b6b8]
sbb edx, dword [0x64b6bc]
seto bl
mov ecx, edx
sar ecx, 0x1f
test bl, bl
cmovne eax, ecx
add ecx, 0x80000000
test bl, bl
cmove ecx, edx
mov edx, eax
mov esi, 1
add edx, esi
mov esi, ecx
mov ebx, 0x80000000
adc esi, ebx
cmp edx, 2
sbb esi, 0
mov edx, dword [0x64b674]
mov esi, dword [0x64b670]
jb 0x4f6935
add esi, eax
adc edx, ecx
seto bl
mov eax, edx
sar eax, 0x1f
lea ecx, [eax - 0x80000000]
test bl, bl
cmove eax, esi
test bl, bl
cmove ecx, edx
mov dword [0x64b670], eax
mov dword [0x64b674], ecx
push dword [0x64b668]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [0x64b668], ebx
test edi, edi
je 0x4f6438
mov ecx, dword [0x648080]
cmp ecx, 0x5531a0
jne 0x4f6448
xor eax, eax
lea esi, [esp + 0x60]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
cmp edi, 0x7bd05af7
mov eax, ebx
sbb eax, 0x863
jge 0x4f69b1
mov ecx, 0xf4240
mov eax, edi
mul ecx
imul ecx, ebx, 0xf4240
add ecx, edx
push dword [0x64b6cc]
push dword [0x64b6c8]
push ecx
push eax
call fcn.005877d0
mov esi, dword [esp + 0xc]
mov dword [0x64b6b8], eax
mov dword [0x64b6bc], edx
push dword [0x64b668]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x18]
jmp 0x4f6073
call dword [0x6401dc]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4f641d
call dword [0x6401dc]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4f632e
mov dword [esp + 0x84], 0x91
mov cl, byte [0x64b4dd]
test cl, cl
jne 0x4f6b79
add edx, 4
mov dword [esp + 0x84], 0x91
mov al, byte [0x64b4dd]
test al, al
jne 0x4f6b4f
mov eax, dword [edx]
mov edi, dword [eax + 8]
mov ecx, edi
mov esi, edx
call dword [0x6401dc]
mov ecx, esi
call edi
jmp 0x4f61f6
cmp dword [eax + 8], 0
je 0x4f6099
mov al, byte [ebx + 0x1fc]
mov byte [esp + 0x14], al
mov byte [ebx + 0x1fc], 1
mov eax, edi
mov eax, dword [eax + 4]
cmp eax, edi
je 0x4f6593
cmp dword [eax + 8], 0
je 0x4f64e2
lea esi, [ebx + 0x20c]
mov dword [esp + 0x1c], esi
mov edx, dword [eax + 4]
cmp esi, eax
mov dword [esp + 0xc], edx
je 0x4f653e
cmp edx, esi
je 0x4f653e
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov ecx, dword [ebx + 0x20c]
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x20c]
mov dword [eax], ecx
mov dword [ebx + 0x20c], eax
mov dword [eax + 4], esi
dec dword [ebx + 0x1f8]
inc dword [ebx + 0x214]
mov esi, dword [eax + 8]
test esi, esi
je 0x4f6adc
mov dword [eax + 8], 0
mov ecx, dword [esi + 4]
call dword [0x6401dc]
push esi
call ecx
add esp, 4
lock dec dword [esi]
jne 0x4f6573
mov ecx, dword [esi + 8]
call dword [0x6401dc]
push esi
call ecx
add esp, 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x4f65d0
mov esi, dword [esp + 0x1c]
cmp dword [ecx + 8], 0
je 0x4f6adf
mov eax, ecx
cmp ecx, edi
jne 0x4f64fd
mov al, byte [esp + 0x14]
mov byte [ebx + 0x1fc], al
test al, al
mov ecx, dword [esp + 0x18]
jne 0x4f60a4
sub esp, 4
mov al, byte [esp + 0x64]
mov byte [esp], al
mov ecx, edi
call fcn.00402790
mov ecx, dword [esp + 0x18]
cmp dword [ebx + 0x200], 0
je 0x4f60a4
jmp 0x4f6b3b
mov esi, dword [esp + 0x1c]
jmp 0x4f6589
call dword [0x6401dc]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4f6674
lea edi, [ebx - 4]
mov dword [esp + 0x84], 0x83
mov al, byte [0x64b4cf]
test al, al
jne 0x4f6aef
mov ecx, edi
call fcn.00444160
mov eax, dword [ebx + 0x21c]
mov ecx, dword [fcn.005608f0]
cmp ecx, 0x5531a0
jne 0x4f65d6
xor eax, eax
lea esi, [esp + 0x60]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esi]
mov esi, dword [esi + 4]
cmp edi, 0x7bd05af7
mov eax, esi
sbb eax, 0x863
jge 0x4f6bb4
mov ecx, 0xf4240
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x64b6cc]
push dword [0x64b6c8]
push ecx
push eax
call fcn.005877d0
xor ecx, ecx
dec ecx
add eax, 0x1c9c380
adc edx, 0
mov esi, 0x7fffffff
cmovno esi, edx
cmovo eax, ecx
mov dword [ebx + 0x190], esi
mov dword [ebx + 0x18c], eax
mov byte [ebx + 0x184], 0
mov dword [esp + 0x84], 0x83
mov al, byte [0x64b4cf]
test al, al
jne 0x4f6b15
mov ecx, dword [esp + 0x18]
jmp 0x4f6091
push 0x64b6b4
call fcn.00565714
add esp, 4
cmp dword [0x64b6b4], 0xffffffff
jne 0x4f626c
push 4
call fcn.00564055
add esp, 4
mov dword [eax], 0
mov dword [0x64b6b0], eax
push 0x64b6b4
call fcn.00565763
add esp, 4
jmp 0x4f626c
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x4f6281
cmp byte [edx + 0xb8], 1
jne 0x4f6141
cmp dword [edi + 0x10], 0
jne 0x4f697d
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov esi, 0x40000000
mov ecx, edx
or ecx, esi
mov ebx, eax
lock cmpxchg8b qword [edi + 8]
jne 0x4f672d
jmp 0x4f6141
push str....._third_partylibc_srcinclude_vector:622:_assertion__empty___failed:_back___called_on_an_empty_vector_n
push 0x624e92
call fcn.005912b0
mov ecx, dword [0x65709c]
call fcn.00591120
mov edx, dword [esp + 0x18]
jmp 0x4f6116
lea eax, [esp + 0x30]
mov ecx, dword [eax + 0x18]
push eax
call fcn.004f6c50
mov edx, dword [esp + 0x18]
jmp 0x4f61a4
lea esi, [esp + 0x60]
lea ecx, [esp + 0x30]
push esi
call fcn.004fde40
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
cmp eax, dword [edx + 0x60]
mov eax, dword [esi + 4]
sbb eax, dword [edx + 0x64]
jl 0x4f61dd
mov eax, dword [edx + 4]
add edx, 4
jmp 0x4f64af
movzx eax, al
lea ecx, [esp + 0x60]
mov dword [ecx], 0
lea edx, [esp + 0x84]
push 2
push ecx
push edx
push eax
call fcn.00591070
add esp, 0x10
jmp 0x4f6210
movzx eax, al
lea ecx, [esp + 0x60]
mov dword [ecx], str.SequenceManager::DoIdleWork
lea edx, [esp + 0x84]
push 1
push ecx
push edx
push eax
call fcn.00591070
mov ecx, dword [esp + 0x28]
add esp, 0x10
jmp 0x4f6045
mov byte [esp + 0x60], 0
xor eax, eax
jmp 0x4f6838
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov ecx, dword [ebx + 0x17c]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x4f67f6
movdqu xmm0, xmmword [eax]
mov eax, dword [eax + 0x14]
movdqa xmmword [esp + 0x60], xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov al, 1
mov byte [esp + 0x78], al
mov esi, dword [ebx + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0xc], ecx
call dword [0x6401dc]
mov ecx, esi
call dword [esp + 0xc]
mov byte [esp + 0xc], al
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x6401dc]
sub esp, 0x24
movdqa xmm0, xmmword [esp + 0x84]
movdqa xmm1, xmmword [esp + 0x94]
movdqu xmmword [esp + 0x10], xmm1
movdqu xmmword [esp], xmm0
movzx eax, byte [esp + 0x30]
mov dword [esp + 0x20], eax
mov ecx, edi
call esi
test al, al
mov ecx, dword [esp + 0x18]
je 0x4f6084
mov eax, dword [ecx + 0x90]
mov esi, dword [eax]
lea edx, [esi + 1]
cmp edx, 1
adc esi, 1
mov dword [eax], esi
mov esi, dword [ecx + 0xc8]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
jmp 0x4f64b6
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd esi, xmm0
call fcn.005910c0
and esi, 0xff000000
or esi, edx
movd xmm0, esi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x4f612a
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd dword [esp + 0xc], xmm0
call fcn.005910c0
mov ecx, dword [esp + 0xc]
and ecx, 0xff000000
or ecx, edx
mov edx, dword [esp + 0x18]
movd xmm0, ecx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x4f615b
mov dword [esp + 0x14], esi
mov ebx, 1
add dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov ebx, 0x80000000
adc dword [esp + 0x10], ebx
mov dword [esp + 0x20], 0
xor ebx, ebx
inc ebx
cmp ebx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
sbb ebx, dword [esp + 0x10]
setb bl
xor esi, eax
xor edx, ecx
or edx, esi
sete dl
or dl, bl
jne 0x4f6398
int3
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd esi, xmm0
call fcn.005910c0
and esi, 0xff000000
or esi, edx
movd xmm0, esi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x4f6722
mov esi, dword [0x64b6c8]
mov dword [esp + 0x24], esi
mov eax, dword [0x64b6cc]
mov dword [esp + 0x1c], eax
push eax
push esi
push ebx
push edi
call fcn.005877d0
mov dword [esp + 0x14], eax
mov ecx, edx
mov eax, dword [esp + 0x14]
mul esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov esi, eax
imul esi, dword [esp + 0x1c]
add edx, esi
imul esi, ecx, 0xf4240
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
imul ecx, esi
add ecx, edx
sub edi, dword [esp + 0x20]
sbb ebx, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 0x14], eax
add edx, dword [esp + 0x10]
mov dword [esp + 0x10], 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.005877d0
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x10]
jmp 0x4f641d
mov ecx, dword [0x64b6c8]
mov dword [esp + 0x14], ecx
mov edx, dword [0x64b6cc]
mov dword [esp + 0x20], edx
push edx
push ecx
push esi
push eax
mov dword [esp + 0x34], eax
call fcn.005877d0
mov dword [esp + 0x10], eax
mov ecx, edx
mov eax, dword [esp + 0x10]
mul dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, esi
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x20]
add edx, esi
imul esi, ecx, 0xf4240
mov dword [esp + 0x2c], esi
imul ecx, dword [esp + 0x14]
add ecx, edx
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x28]
sbb eax, ecx
mov ecx, eax
mov edx, 0xf4240
mov eax, dword [esp + 0x10]
mul edx
mov dword [esp + 0x10], eax
add edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov eax, esi
mov edx, 0xf4240
mul edx
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esp + 0x20]
push dword [esp + 0x18]
push edx
push eax
call fcn.005877d0
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x24]
jmp 0x4f6326
int3
mov ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x4f657f
jmp 0x4f6589
movzx eax, al
lea ecx, [esp + 0x60]
mov dword [ecx], str.SequenceManagerImpl::MaybeReclaimMemory
lea edx, [esp + 0x84]
push 1
push ecx
push edx
push eax
call fcn.00591070
add esp, 0x10
jmp 0x4f660b
movzx eax, al
lea ecx, [esp + 0x60]
mov dword [ecx], 0
lea edx, [esp + 0x84]
push 2
push ecx
push edx
push eax
call fcn.00591070
add esp, 0x10
jmp 0x4f66b5
lea ecx, [ebx + 0x200]
call fcn.0055ae40
mov ecx, dword [esp + 0x18]
jmp 0x4f60a4
movzx eax, al
lea ecx, [esp + 0x60]
mov dword [ecx], 0
mov esi, edx
lea edx, [esp + 0x84]
push 2
push ecx
push edx
push eax
call fcn.00591070
mov edx, esi
add esp, 0x10
jmp 0x4f64ad
movzx ecx, cl
lea edx, [esp + 0x60]
mov dword [edx], str.RunLoop_ExitedOnIdle
xor esi, esi
lea edi, [esp + 0x84]
push esi
push eax
push esi
push 0x80
push 0x42
push 0x627728
push 1
push edx
push edi
push ecx
call fcn.005b41c0
mov edx, dword [esp + 0x40]
add esp, 0x28
jmp 0x4f6492
mov eax, dword [0x64b6c8]
mov dword [esp + 0x14], eax
mov ecx, dword [0x64b6cc]
mov dword [esp + 0x1c], ecx
push ecx
push eax
push esi
push edi
call fcn.005877d0
mov dword [esp + 0xc], eax
mov ecx, edx
mov eax, dword [esp + 0xc]
mul dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, esi
mov esi, dword [esp + 0xc]
imul esi, dword [esp + 0x1c]
add edx, esi
imul esi, ecx, 0xf4240
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
imul ecx, esi
add ecx, edx
sub edi, dword [esp + 0x20]
sbb eax, ecx
mov ecx, eax
mov edx, 0xf4240
mov eax, dword [esp + 0xc]
mul edx
mov dword [esp + 0xc], eax
add edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov eax, edi
mov edx, 0xf4240
mul edx
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esp + 0x1c]
push esi
push edx
push eax
call fcn.005877d0
add eax, dword [esp + 0xc]
adc edx, dword [esp + 0x10]
jmp 0x4f6674