Function at 0x500630
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 0x500e15
cmp byte [ecx + 0x88], 0
jne 0x5006c3
mov eax, dword [ecx + 0x40]
mov edx, dword [eax + 0x17c]
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
je 0x50088d
cmp dword [eax + 0x14], 2
sete bl
cmp byte [ecx + 0x4d], bl
jne 0x500898
mov ebx, dword [ecx + 0x40]
mov edi, dword [ebx + 0x178]
test edi, edi
jne 0x500e48
cmp byte [ebx + 0x184], 1
je 0x500c39
lea edi, [ebx + 0x1f0]
mov eax, edi
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x500b0e
cmp dword [ebx + 0x1c4], 0
jne 0x500702
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 0x5007e3
cmp byte [edx + 0xa8], 1
jne 0x5007dc
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xb4]
test edi, edi
je 0x5007dc
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
js 0x500d54
cmp dword [edi + 0x1c], 1
jne 0x500d68
cmp dword [edi + 0x10], 0
jne 0x500f0c
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 0x500780
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + 0xb0]
mov esi, dword [edx + 0xb4]
cmp dword [edi + 0x10], 0
jne 0x500f40
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 0x500dab
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 0x500dc1
mov eax, dword [edx + 0xc]
cmp dword [edx + 8], eax
je 0x500d9c
mov eax, dword [eax - 4]
cmp byte [eax + 0xb], 1
je 0x500ac2
mov dword [esp + 0x84], 0x83
movzx eax, byte [0x6494cf]
test al, al
jne 0x500def
cmp byte [esp + 0x50], 1
jne 0x500875
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
call fcn.004f9760
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00565ea5
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 0x5006c3
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 0x500d07
mov esi, dword [0x6496b0]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x500d48
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 0x500a9b
test eax, eax
mov dword [esp + 0xc], esi
je 0x500a1a
mov ecx, dword [0x646080]
cmp ecx, 0x552d10
mov dword [esp + 0x1c], ebx
je 0x50093d
call dword [0x63e1cc]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x500991
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 0x501084
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.00586340
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 0x500f7e
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 0x500a9b
mov ecx, dword [0x646080]
cmp ecx, 0x552d10
jne 0x500aab
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 0x500ffa
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.00586340
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 0x5006c3
call dword [0x63e1cc]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x500a80
mov dword [esp + 0x84], 0x91
mov cl, byte [0x6494dd]
test cl, cl
jne 0x5011c2
add edx, 4
mov dword [esp + 0x84], 0x91
mov al, byte [0x6494dd]
test al, al
jne 0x501198
mov eax, dword [edx]
mov edi, dword [eax + 8]
mov ecx, edi
mov esi, edx
call dword [0x63e1cc]
mov ecx, esi
call edi
jmp 0x500846
cmp dword [eax + 8], 0
je 0x5006e9
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 0x500bdc
cmp dword [eax + 8], 0
je 0x500b2b
lea esi, [ebx + 0x20c]
mov dword [esp + 0x1c], esi
mov edx, dword [eax + 4]
cmp esi, eax
mov dword [esp + 0xc], edx
je 0x500b87
cmp edx, esi
je 0x500b87
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 0x501125
mov dword [eax + 8], 0
mov ecx, dword [esi + 4]
call dword [0x63e1cc]
push esi
call ecx
add esp, 4
lock dec dword [esi]
jne 0x500bbc
mov ecx, dword [esi + 8]
call dword [0x63e1cc]
push esi
call ecx
add esp, 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x500c19
mov esi, dword [esp + 0x1c]
cmp dword [ecx + 8], 0
je 0x501128
mov eax, ecx
cmp ecx, edi
jne 0x500b46
mov al, byte [esp + 0x14]
mov byte [ebx + 0x1fc], al
test al, al
mov ecx, dword [esp + 0x18]
jne 0x5006f4
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 0x5006f4
jmp 0x501184
mov esi, dword [esp + 0x1c]
jmp 0x500bd2
call dword [0x63e1cc]
lea esi, [esp + 0x60]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x500cbd
lea edi, [ebx - 4]
mov dword [esp + 0x84], 0x83
mov al, byte [0x6494cf]
test al, al
jne 0x501138
mov ecx, edi
call fcn.004452e0
mov eax, dword [ebx + 0x21c]
mov ecx, dword [fcn.0055f760]
cmp ecx, 0x552d10
jne 0x500c1f
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 0x5011fd
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.00586340
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 0x50115e
mov ecx, dword [esp + 0x18]
jmp 0x5006e1
push 0x6496b4
call fcn.00562c08
add esp, 4
cmp dword [0x6496b4], 0xffffffff
jne 0x5008bc
push 4
call fcn.00562bc5
add esp, 4
mov dword [eax], 0
mov dword [0x6496b0], eax
push 0x6496b4
call fcn.00562c57
add esp, 4
jmp 0x5008bc
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5008d1
mov ecx, dword [0x65509c]
call fcn.0058fad0
mov edx, dword [esp + 0x18]
jmp 0x500766
cmp byte [edx + 0xb8], 1
jne 0x500791
cmp dword [edi + 0x10], 0
jne 0x500fc6
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 0x500d8a
jmp 0x500791
push str....._third_partylibc_srcinclude_vector:622:_assertion__empty___failed:_back___called_on_an_empty_vector_n
push 0x622e92
call fcn.0058fdd0
lea eax, [esp + 0x30]
mov ecx, dword [eax + 0x18]
push eax
call fcn.004f9760
mov edx, dword [esp + 0x18]
jmp 0x5007f4
lea esi, [esp + 0x60]
lea ecx, [esp + 0x30]
push esi
call fcn.004fa990
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 0x50082d
mov eax, dword [edx + 4]
add edx, 4
jmp 0x500af8
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.0058fbc0
add esp, 0x10
jmp 0x500860
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.0058fbc0
mov ecx, dword [esp + 0x28]
add esp, 0x10
jmp 0x500695
mov byte [esp + 0x60], 0
xor eax, eax
jmp 0x500e81
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 0x500e3f
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 [0x63e1cc]
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 [0x63e1cc]
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 0x5006d4
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 0x500aff
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd esi, xmm0
call fcn.0058fc10
and esi, 0xff000000
or esi, edx
movd xmm0, esi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x50077a
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd dword [esp + 0xc], xmm0
call fcn.0058fc10
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 0x5007ab
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 0x5009fb
int3
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd esi, xmm0
call fcn.0058fc10
and esi, 0xff000000
or esi, edx
movd xmm0, esi
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x500d7f
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.00586340
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.00586340
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x10]
jmp 0x500a80
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.00586340
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.00586340
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x24]
jmp 0x500989
int3
mov ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x500bc8
jmp 0x500bd2
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.0058fbc0
add esp, 0x10
jmp 0x500c54
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.0058fbc0
add esp, 0x10
jmp 0x500cfe
lea ecx, [ebx + 0x200]
call fcn.00559d10
mov ecx, dword [esp + 0x18]
jmp 0x5006f4
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.0058fbc0
mov edx, esi
add esp, 0x10
jmp 0x500af6
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.005b29b0
mov edx, dword [esp + 0x40]
add esp, 0x28
jmp 0x500adb
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.00586340
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.00586340
add eax, dword [esp + 0xc]
adc edx, dword [esp + 0x10]
jmp 0x500cbd