Function at 0x5009d0
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 [0x644040]
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 [0x6494cf]
test al, al
mov dword [esp + 0x18], ecx
jne 0x5011b5
cmp byte [ecx + 0x88], 0
jne 0x500a63
mov eax, dword [ecx + 0x40]
mov edx, dword [eax + 0x17c]
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
je 0x500c2d
cmp dword [eax + 0x14], 2
sete bl
cmp byte [ecx + 0x4d], bl
jne 0x500c38
mov ebx, dword [ecx + 0x40]
mov edi, dword [ebx + 0x178]
test edi, edi
jne 0x5011e8
cmp byte [ebx + 0x184], 1
je 0x500fd9
lea edi, [ebx + 0x1f0]
mov eax, edi
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x500eae
cmp dword [ebx + 0x1c4], 0
jne 0x500aa2
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 0x500b83
cmp byte [edx + 0xa8], 1
jne 0x500b7c
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xb4]
test edi, edi
je 0x500b7c
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
js 0x5010f4
cmp dword [edi + 0x1c], 1
jne 0x501108
cmp dword [edi + 0x10], 0
jne 0x5012ac
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 0x500b20
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + 0xb0]
mov esi, dword [edx + 0xb4]
cmp dword [edi + 0x10], 0
jne 0x5012e0
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 0x50114b
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 0x501161
mov eax, dword [edx + 0xc]
cmp dword [edx + 8], eax
je 0x50113c
mov eax, dword [eax - 4]
cmp byte [eax + 0xb], 1
je 0x500e62
mov dword [esp + 0x84], 0x83
movzx eax, byte [0x6494cf]
test al, al
jne 0x50118f
cmp byte [esp + 0x50], 1
jne 0x500c15
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
call fcn.004f9b00
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00566245
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 0x500a63
mov byte [ecx + 0x4d], bl
mov eax, dword [0x6496b4]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5010a7
mov esi, dword [0x6496b0]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5010e8
movzx edi, bl
dec edi
or edi, 1
xor ecx, ecx
inc ecx
test byte [0x649660], 1
mov eax, 8
cmovne eax, ecx
xor ebx, ebx
add edi, dword [0x649664]
mov dword [0x649664], edi
cmovne ebx, eax
mov eax, dword [0x649668]
cmp ebx, eax
je 0x500e3b
test eax, eax
mov dword [esp + 0xc], esi
je 0x500dba
mov ecx, dword [0x646080]
cmp ecx, 0x5536d0
mov dword [esp + 0x1c], ebx
je 0x500cdd
call dword [0x63e19c]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x500d31
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 0x501424
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.005866e0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
sub eax, dword [0x6496b8]
sbb edx, dword [0x6496bc]
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 [0x649674]
mov esi, dword [0x649670]
jb 0x50131e
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 [0x649670], eax
mov dword [0x649674], ecx
push dword [0x649668]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [0x649668], ebx
test edi, edi
je 0x500e3b
mov ecx, dword [0x646080]
cmp ecx, 0x5536d0
jne 0x500e4b
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 0x50139a
mov ecx, 0xf4240
mov eax, edi
mul ecx
imul ecx, ebx, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.005866e0
mov esi, dword [esp + 0xc]
mov dword [0x6496b8], eax
mov dword [0x6496bc], edx
push dword [0x649668]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x18]
jmp 0x500a63
call dword [0x63e19c]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x500e20
mov dword [esp + 0x84], 0x91
mov cl, byte [0x6494dd]
test cl, cl
jne 0x501562
add edx, 4
mov dword [esp + 0x84], 0x91
mov al, byte [0x6494dd]
test al, al
jne 0x501538
mov eax, dword [edx]
mov edi, dword [eax + 8]
mov ecx, edi
mov esi, edx
call dword [0x63e19c]
mov ecx, esi
call edi
jmp 0x500be6
cmp dword [eax + 8], 0
je 0x500a89
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 0x500f7c
cmp dword [eax + 8], 0
je 0x500ecb
lea esi, [ebx + 0x20c]
mov dword [esp + 0x1c], esi
mov edx, dword [eax + 4]
cmp esi, eax
mov dword [esp + 0xc], edx
je 0x500f27
cmp edx, esi
je 0x500f27
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 0x5014c5
mov dword [eax + 8], 0
mov ecx, dword [esi + 4]
call dword [0x63e19c]
push esi
call ecx
add esp, 4
lock dec dword [esi]
jne 0x500f5c
mov ecx, dword [esi + 8]
call dword [0x63e19c]
push esi
call ecx
add esp, 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x500fb9
mov esi, dword [esp + 0x1c]
cmp dword [ecx + 8], 0
je 0x5014c8
mov eax, ecx
cmp ecx, edi
jne 0x500ee6
mov al, byte [esp + 0x14]
mov byte [ebx + 0x1fc], al
test al, al
mov ecx, dword [esp + 0x18]
jne 0x500a94
sub esp, 4
mov al, byte [esp + 0x64]
mov byte [esp], al
mov ecx, edi
call fcn.00401dc0
mov ecx, dword [esp + 0x18]
cmp dword [ebx + 0x200], 0
je 0x500a94
jmp 0x501524
mov esi, dword [esp + 0x1c]
jmp 0x500f72
call dword [0x63e19c]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x50105d
lea edi, [ebx - 4]
mov dword [esp + 0x84], 0x83
mov al, byte [0x6494cf]
test al, al
jne 0x5014d8
mov ecx, edi
call fcn.00445ae0
mov eax, dword [ebx + 0x21c]
mov ecx, dword [fcn.0055fb00]
cmp ecx, 0x5536d0
jne 0x500fbf
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 0x50159d
mov ecx, 0xf4240
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.005866e0
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 [0x6494cf]
test al, al
jne 0x5014fe
mov ecx, dword [esp + 0x18]
jmp 0x500a81
push 0x6496b4
call fcn.00562fa8
add esp, 4
cmp dword [0x6496b4], 0xffffffff
jne 0x500c5c
push 4
call fcn.00562f65
add esp, 4
mov dword [eax], 0
mov dword [0x6496b0], eax
push 0x6496b4
call fcn.00562ff7
add esp, 4
jmp 0x500c5c
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x500c71
mov ecx, dword [0x65509c]
call fcn.0058fe70
mov edx, dword [esp + 0x18]
jmp 0x500b06
cmp byte [edx + 0xb8], 1
jne 0x500b31
cmp dword [edi + 0x10], 0
jne 0x501366
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 0x50112a
jmp 0x500b31
push str....._third_partylibc_srcinclude_vector:622:_assertion__empty___failed:_back___called_on_an_empty_vector_n
push 0x622e92
call fcn.00590170
lea eax, [esp + 0x30]
mov ecx, dword [eax + 0x18]
push eax
call fcn.004f9b00
mov edx, dword [esp + 0x18]
jmp 0x500b94
lea esi, [esp + 0x60]
lea ecx, [esp + 0x30]
push esi
call fcn.004fad30
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 0x500bcd
mov eax, dword [edx + 4]
add edx, 4
jmp 0x500e98
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.0058ff60
add esp, 0x10
jmp 0x500c00
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.0058ff60
mov ecx, dword [esp + 0x28]
add esp, 0x10
jmp 0x500a35
mov byte [esp + 0x60], 0
xor eax, eax
jmp 0x501221
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 0x5011df
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 [0x63e19c]
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 [0x63e19c]
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 0x500a74
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 0x500e9f
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd esi, xmm0
call fcn.0058ffb0
and esi, 0xff000000
or esi, edx
movd xmm0, esi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x500b1a
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd dword [esp + 0xc], xmm0
call fcn.0058ffb0
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 0x500b4b
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 0x500d9b
int3
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd esi, xmm0
call fcn.0058ffb0
and esi, 0xff000000
or esi, edx
movd xmm0, esi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x50111f
mov esi, dword [0x6496c8]
mov dword [esp + 0x24], esi
mov eax, dword [0x6496cc]
mov dword [esp + 0x1c], eax
push eax
push esi
push ebx
push edi
call fcn.005866e0
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.005866e0
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x10]
jmp 0x500e20
mov ecx, dword [0x6496c8]
mov dword [esp + 0x14], ecx
mov edx, dword [0x6496cc]
mov dword [esp + 0x20], edx
push edx
push ecx
push esi
push eax
mov dword [esp + 0x34], eax
call fcn.005866e0
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.005866e0
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x24]
jmp 0x500d29
int3
mov ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x500f68
jmp 0x500f72
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.0058ff60
add esp, 0x10
jmp 0x500ff4
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.0058ff60
add esp, 0x10
jmp 0x50109e
lea ecx, [ebx + 0x200]
call fcn.0055a0b0
mov ecx, dword [esp + 0x18]
jmp 0x500a94
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.0058ff60
mov edx, esi
add esp, 0x10
jmp 0x500e96
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 0x625718
push 1
push edx
push edi
push ecx
call fcn.005b2d30
mov edx, dword [esp + 0x40]
add esp, 0x28
jmp 0x500e7b
mov eax, dword [0x6496c8]
mov dword [esp + 0x14], eax
mov ecx, dword [0x6496cc]
mov dword [esp + 0x1c], ecx
push ecx
push eax
push esi
push edi
call fcn.005866e0
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.005866e0
add eax, dword [esp + 0xc]
adc edx, dword [esp + 0x10]
jmp 0x50105d