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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x3f0
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x3e8], eax
cmp dword [ecx + 0x18], 0
je 0x50a979
mov esi, ecx
lea eax, [esp + 0x48]
push 0x388
push 0xff
push eax
call fcn.00582870
add esp, 0xc
mov dword [esp + 0x48], 0
mov dword [esp + 8], esi
cmp dword [esi + 8], 0
je 0x50a979
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [ecx + 0x10]
inc eax
cmp eax, edx
mov esi, eax
mov edi, 0
cmove esi, edi
cmp edx, esi
jbe 0x50aa3f
mov edi, dword [ecx + 0xc]
imul esi, esi, 0x70
mov ebx, dword [edi + esi + 0x50]
test ebx, ebx
je 0x50a51e
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x57b700
je 0x50a4c1
call dword [0x6445dc]
push 0
push ebx
call ecx
add esp, 8
test al, al
jne 0x50a512
add edi, esi
cmp dword [edi + 0x6c], 0
jne 0x50a503
mov eax, dword [esp + 0x48]
cmp eax, 2
jae 0x50a697
cmp eax, 2
setae bl
test eax, eax
jne 0x50a4f8
mov ecx, dword [esp + 0x3e8]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x48]
call fcn.0050ae50
jmp 0x50a4e0
mov eax, dword [edi + 0x68]
test eax, eax
je 0x50a512
movzx eax, byte [eax + 4]
test al, al
je 0x50a4c9
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [ecx + 0x10]
inc eax
cmp eax, edx
mov esi, 0
cmove eax, esi
cmp edx, eax
jbe 0x50aa42
mov edx, dword [esp + 0x48]
mov esi, 8
test dl, 1
je 0x50a542
mov esi, dword [esp + 0x54]
imul eax, eax, 0x70
add eax, dword [ecx + 0xc]
mov ecx, edx
shr ecx, 1
cmp ecx, esi
mov ebx, dword [esp + 8]
je 0x50a66e
lea esi, [esp + 0x50]
test dl, 1
je 0x50a565
mov esi, dword [esp + 0x50]
imul ecx, ecx, 0x70
add ecx, esi
je 0x50aa48
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax + 0x20]
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [eax + 0x39]
movups xmmword [ecx + 0x39], xmm0
mov edx, dword [eax + 0x50]
mov dword [ecx + 0x50], edx
mov dword [eax + 0x50], 0
movzx edx, byte [eax + 0x5a]
mov byte [ecx + 0x5a], dl
movzx edx, word [eax + 0x58]
mov word [ecx + 0x58], dx
mov edx, dword [eax + 0x5c]
mov dword [ecx + 0x5c], edx
mov dword [eax + 0x5c], 0
movsd xmm0, qword [eax + 0x60]
movsd qword [ecx + 0x60], xmm0
mov edx, dword [eax + 0x68]
mov dword [ecx + 0x68], edx
mov dword [eax + 0x68], 0
mov eax, dword [eax + 0x6c]
mov dword [ecx + 0x6c], eax
add dword [esp + 0x48], 2
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
inc ecx
cmp ecx, edx
mov esi, 0
cmove ecx, esi
mov dword [eax], ecx
cmp edx, ecx
jbe 0x50aa45
mov edi, dword [eax + 0xc]
imul esi, ecx, 0x70
mov eax, dword [edi + esi + 0x68]
test eax, eax
jne 0x50a648
add edi, esi
mov esi, dword [edi + 0x5c]
test esi, esi
jne 0x50a63d
mov esi, dword [edi + 0x50]
test esi, esi
jne 0x50a658
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax]
jne 0x50a62f
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x50a945
dec dword [ebx + 8]
jne 0x50a476
jmp 0x50a4c9
lock dec dword [esi + 4]
jne 0x50a614
jmp 0x50a912
lock dec dword [eax]
jne 0x50a60b
push eax
call fcn.0057dc2b
add esp, 4
jmp 0x50a60b
lock dec dword [esi]
jne 0x50a61b
mov ecx, dword [esi + 8]
call dword [0x6445dc]
push esi
call ecx
add esp, 4
jmp 0x50a61b
lea ecx, [esp + 0x48]
push eax
call fcn.0050b6f0
jmp 0x50a5e1
call dword [0x6445dc]
lea esi, [esp + 0x20]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x50a731
mov edi, dword [esp + 8]
cmp dword [edi + 8], 0
jne 0x50a8d3
cmp dword [edi + 0x50], 0
jne 0x50a812
mov ebx, dword [edi + 0x1c]
cmp dword [edi + 4], 0
je 0x50a773
xor eax, eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov ecx, dword [0x64c080]
cmp ecx, 0x56aca0
jne 0x50a67d
xor eax, eax
lea esi, [esp + 0x3d0]
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]
mov eax, 0x7bd05af7
cmp edi, eax
mov eax, esi
mov ecx, 0x863
sbb eax, ecx
jge 0x50ad48
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 dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 8]
cmp eax, dword [ecx + 0x10]
sbb edx, dword [ecx + 0x14]
jl 0x50a773
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0xc]
inc ecx
cmp ecx, 5
mov eax, 4
cmovae eax, ecx
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], edx
test ecx, ecx
je 0x50a773
lea edx, [eax + 0x10]
xor esi, esi
add esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x50a761
cmp edx, esi
jb 0x50a9fa
lea edi, [ebx + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x50a96d
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov ecx, dword [ebx + 0x18]
mov dword [edx], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 4], ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 8]
mov ecx, dword [ebx + 0x20]
mov dword [edx + 8], ecx
mov dword [ebx + 0x20], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [ebx + 0x24]
mov dword [edx + 0xc], ecx
mov dword [ebx + 0x24], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
movsd xmm0, qword [ebx + 0x28]
movsd qword [edx + 0x10], xmm0
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x28], eax
cmp byte [ebx + 0xd0], 0
jne 0x50ab6e
mov eax, dword [ebx + 0x64]
cmp dword [eax + 8], 0
sete byte [ebx + 0x30]
mov al, byte [ebx + 0xa4]
mov byte [ebx + 0x33], al
cmp dword [ebx + 0x5c], 0
jne 0x50a804
test al, al
je 0x50a980
mov al, byte [ebx + 0xc0]
xor al, 1
mov byte [ebx + 0x31], al
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [esp + 8]
cmp dword [edi + 4], 0
je 0x50a8d3
xor eax, eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov ecx, dword [0x64c080]
cmp ecx, 0x56aca0
jne 0x50a8fb
xor eax, eax
lea esi, [esp + 0x3d0]
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]
mov eax, 0x7bd05af7
cmp edi, eax
mov eax, ebx
mov ecx, 0x863
sbb eax, ecx
jge 0x50acbe
mov ecx, 0xf4240
mov eax, edi
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 + 0x20], eax
mov dword [esp + 0x24], edx
mov edi, dword [esp + 8]
cmp eax, dword [edi + 0x10]
sbb edx, dword [edi + 0x14]
jl 0x50a8d3
mov ecx, dword [edi + 0xc]
inc ecx
cmp ecx, 5
mov eax, 4
cmovae eax, ecx
mov ecx, dword [edi]
mov edx, dword [edi + 8]
mov dword [edi + 0xc], edx
test ecx, ecx
je 0x50a8d3
lea edx, [eax + 0x10]
xor esi, esi
add esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x50a8c1
cmp edx, esi
jb 0x50a9c7
cmp dword [edi + 0x24], 0xffffffff
je 0x50a8e2
mov ecx, dword [edi + 0x18]
push edi
call fcn.0050af90
mov edi, dword [edi + 0x1c]
mov al, byte [0x64f546]
test al, al
jne 0x50abd8
mov eax, dword [esp + 0x48]
jmp 0x50a4d6
call dword [0x6445dc]
lea esi, [esp + 0x20]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x50a899
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
cmp dword [ecx + 8], 0x5b5540
test eax, eax
je 0x50a92b
lock dec dword [eax]
je 0x50aa31
mov eax, dword [esi + 8]
test eax, eax
je 0x50a937
lock dec dword [eax]
je 0x50a987
push esi
call fcn.0057dc2b
add esp, 4
jmp 0x50a614
mov dword [eax + 0x14], 0
mov esi, dword [ebx]
mov dword [ebx], ecx
test esi, esi
je 0x50a62f
mov ecx, esi
call fcn.00527860
push esi
call fcn.0057dc2b
add esp, 4
jmp 0x50a62f
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x50a785
xor ebx, ebx
jmp 0x50a4e0
xor eax, eax
jmp 0x50a804
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x50addf
mov dword [ebx + 0x10], 0
lea ecx, [ebx + 4]
call fcn.00406d90
push ebx
call fcn.0057dc2b
add esp, 4
mov ebx, dword [esp + 8]
jmp 0x50a937
mov ecx, edi
push eax
call fcn.005289c0
mov eax, dword [esp + 0x24]
mov ecx, 0x4c4b40
add ecx, dword [esp + 0x20]
adc eax, 0
mov edx, 0x7fffffff
cmovno edx, eax
mov eax, 0xffffffff
cmovo ecx, eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
jmp 0x50a8d3
mov esi, dword [esp + 8]
mov ecx, esi
push eax
call fcn.005289c0
mov eax, dword [esp + 0x24]
mov ecx, 0x4c4b40
add ecx, dword [esp + 0x20]
adc eax, 0
mov edx, 0x7fffffff
cmovno edx, eax
mov eax, 0xffffffff
cmovo ecx, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x50a773
push eax
call fcn.0057dc2b
add esp, 4
jmp 0x50a92b
int3
int3
int3
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x62a183
call fcn.005aacb0
add ecx, eax
mov byte [ebx + 0xd0], 0
lea esi, [esp + 0x20]
push esi
call fcn.005469e0
lea ecx, [esp + 0x3d0]
push esi
call fcn.005044a0
lea ecx, [ebx + 0xa8]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x3d0]
push eax
call fcn.005f0c80
cmp byte [ebx + 0xc0], 0
je 0x50ae32
mov dword [esp + 0xc], esp
mov esi, dword [ebx + 0x64]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3e0], eax
movups xmm0, xmmword [ecx]
movaps xmmword [esp + 0x3d0], xmm0
mov ecx, esi
call fcn.005b2be0
lea eax, [esi + 0x30]
cmp byte [esi + 0x48], 0
je 0x50aded
mov ecx, dword [esp + 0x3e0]
mov dword [eax + 0x10], ecx
movaps xmm0, xmmword [esp + 0x3d0]
movups xmmword [eax], xmm0
mov esp, dword [esp + 0xc]
cmp byte [ebx + 0xc0], 0
je 0x50ae32
mov dword [esp + 0xc], esp
mov esi, dword [ebx + 0x60]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3e0], eax
movups xmm0, xmmword [ecx]
movaps xmmword [esp + 0x3d0], xmm0
mov ecx, esi
call fcn.005b2be0
lea eax, [esi + 0x30]
cmp byte [esi + 0x48], 0
je 0x50ae0d
mov ecx, dword [esp + 0x3e0]
mov dword [eax + 0x10], ecx
movaps xmm0, xmmword [esp + 0x3d0]
movups xmmword [eax], xmm0
mov esp, dword [esp + 0xc]
mov esi, dword [esp + 0x3c]
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
jae 0x50a7da
push esi
call fcn.00506f30
add esp, 4
jmp 0x50a7da
xor eax, eax
dec eax
lea esi, [esp + 0x3c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov ecx, esi
mov eax, dword [esp + 8]
push dword [eax]
call fcn.005f1e40
mov eax, dword [esi]
xor esi, esi
test eax, eax
je 0x50ab46
mov edx, dword [esp + 0x40]
cmp dword [eax + 0x10], edx
jbe 0x50ae41
cmp byte [ebx + 0xd0], 0
je 0x50ae2d
mov ecx, dword [eax + 0xc]
imul eax, edx, 0x70
mov edx, dword [ecx + eax + 0x10]
cmp edx, dword [ebx + 0xc8]
mov edx, dword [ecx + eax + 0x14]
sbb edx, dword [ebx + 0xcc]
jge 0x50aa57
lea ecx, [esp + 0x3c]
call fcn.005f0cd0
mov eax, dword [esp + 0x3c]
jmp 0x50ab8b
mov eax, dword [edi + 0xc]
mov ebx, dword [eax + 4]
lea esi, [esp + 0x3d0]
push esi
call fcn.0057aaa0
add esp, 4
cmp ebx, dword [esi]
jne 0x50a8f2
lea ebx, [edi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x50ac0b
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [edi + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [esp + 0x44], 0x122
mov al, byte [0x64f546]
test al, al
je 0x50a8f2
mov edx, dword [esp + 0x10]
add edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x18]
sar ecx, 4
imul ecx, ecx, 0xb6db6db7
mov ebx, dword [esp + 8]
add ebx, ecx
add ebx, edx
movzx eax, al
mov dword [esp + 8], eax
push dword [edi + 4]
call fcn.005f19d0
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [ecx], eax
mov dword [esp + 0x3d0], ebx
lea eax, [esp + 0x20]
mov dword [eax], 0x62caef
xor edx, edx
lea edi, [esp + 0x44]
push esi
push eax
push edx
push 0x43
push 0x62c8f8
push edx
push ecx
push edi
push dword [esp + 0x28]
call fcn.005f1a00
add esp, 0x24
jmp 0x50a8f2
mov esi, dword [0x64f6a0]
mov dword [esp + 0x1c], esi
mov eax, dword [0x64f6a4]
mov dword [esp + 0x10], eax
push eax
push esi
push ebx
push edi
call fcn.005a13d0
mov dword [esp + 0xc], eax
mov ecx, edx
mov eax, dword [esp + 0xc]
mul esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov esi, eax
imul esi, dword [esp + 0x10]
add edx, esi
imul esi, ecx, 0xf4240
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
imul ecx, esi
add ecx, edx
sub edi, dword [esp + 0x18]
sbb ebx, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 0xc], eax
add edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov eax, edi
mul ecx
imul ecx, ebx, 0xf4240
add edx, ecx
push dword [esp + 0x10]
push esi
push edx
push eax
call fcn.005a13d0
add eax, dword [esp + 0xc]
adc edx, dword [esp + 0x14]
jmp 0x50a88d
mov eax, dword [0x64f6a0]
mov dword [esp + 0x14], eax
mov ecx, dword [0x64f6a4]
mov dword [esp + 0xc], ecx
push ecx
push eax
push esi
push edi
call fcn.005a13d0
mov dword [esp + 0x10], eax
mov ecx, edx
mov eax, dword [esp + 0x10]
mul dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, esi
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0xc]
add edx, esi
imul esi, ecx, 0xf4240
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x14]
imul ecx, esi
add ecx, edx
sub edi, dword [esp + 0x1c]
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 + 0x18]
mov dword [esp + 0x18], edx
mov eax, edi
mov edx, 0xf4240
mul edx
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esp + 0xc]
push esi
push edx
push eax
call fcn.005a13d0
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x18]
jmp 0x50a729
push eax
call fcn.00506f30
add esp, 4
jmp 0x50a9a6
mov edx, esi
mov ecx, dword [esp + 0x3e0]
mov dword [eax + 0x10], ecx
movaps xmm0, xmmword [esp + 0x3d0]
movups xmmword [eax], xmm0
mov byte [esi + 0x48], 1
jmp 0x50aae4
mov edx, esi
mov ecx, dword [esp + 0x3e0]
mov dword [eax + 0x10], ecx
movaps xmm0, xmmword [esp + 0x3d0]
movups xmmword [eax], xmm0
mov byte [esi + 0x48], 1
jmp 0x50ab3e
call fcn.005aacb0
push str....._third_partylibc_srcincludeoptional:806:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x62a183
call fcn.005aacb0
int3