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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], eax
mov edi, dword [ecx + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
nop word [eax + eax]
mov ebx, eax
add ebx, 1
mov ecx, edx
adc ecx, 0
lock cmpxchg8b qword [edi + 0x18]
jne 0x50dbc0
mov dword [esi + 0x28], eax
lea ecx, [ebp + 8]
mov eax, dword [ecx + 0x24]
cmp eax, 1
mov dword [esi + 0x24], edx
jne 0x50dc89
mov ebx, dword [ecx + 0x3c]
cmp byte [ebx + 8], 0
jne 0x50ddae
mov ecx, dword [fcn.005515a0]
cmp ecx, 0x522100
jne 0x50dc78
xor eax, eax
lea edi, [esi + 0x38]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov edi, dword [edi + 4]
cmp eax, 0x7bd05af7
mov ecx, edi
sbb ecx, 0x863
jge 0x50e1ba
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496bc]
push dword [0x6496b8]
push ecx
push eax
call fcn.00588630
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
cmp byte [ebx + 8], 0
jne 0x50e0cd
test ebx, ebx
je 0x50e09d
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov byte [ebx + 8], 1
jmp 0x50ddb3
call dword [0x63e63c]
lea eax, [esi + 0x38]
push eax
call ecx
add esp, 4
jmp 0x50dc52
test eax, eax
jne 0x50e098
mov edi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x3c]
cmp byte [eax + 8], 0
mov dword [esi + 8], edi
jne 0x50dd46
mov dword [esi + 4], eax
mov ecx, dword [fcn.005515a0]
cmp ecx, 0x522100
jne 0x50dd35
xor eax, eax
lea edi, [esi + 0x38]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov edi, dword [edi + 4]
cmp eax, 0x7bd05af7
mov ecx, edi
sbb ecx, 0x863
jge 0x50e246
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496bc]
push dword [0x6496b8]
push ecx
push eax
call fcn.00588630
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 4]
cmp byte [ecx + 8], 0
jne 0x50e0dd
test ecx, ecx
je 0x50e09d
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], edx
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov byte [ecx + 8], 1
jmp 0x50dd4e
call dword [0x63e63c]
lea eax, [esi + 0x38]
push eax
call ecx
add esp, 4
jmp 0x50dd0c
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax + 4]
mov edx, edi
add edx, 1
mov ecx, edi
mov edi, ebx
adc edi, 0x80000000
cmp edx, 2
sbb edi, 0
mov dword [esi + 0xc], ebx
mov edx, ecx
jb 0x50e0f0
mov ecx, dword [esi + 4]
add ecx, edx
adc eax, ebx
seto bl
mov edx, eax
sar edx, 0x1f
test bl, bl
lea edi, [edx - 0x80000000]
cmove edx, ecx
test bl, bl
cmove edi, eax
lea ebx, [ebp + 8]
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edi
cmp eax, 1
je 0x50e0ac
mov dword [ebx + 0x24], 1
mov edi, dword [esi + 8]
jmp 0x50dde0
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
lea ebx, [ebp + 8]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
sub ecx, eax
sbb edx, edi
seto al
mov byte [esi + 0xc], al
mov edi, edx
sar edi, 0x1f
test al, al
lea eax, [edi - 0x80000000]
cmove edi, ecx
cmp byte [esi + 0xc], 0
cmove eax, edx
mov dword [esi + 0xc], eax
movq xmm0, qword [0x647158]
mov eax, dword [ebx + 0x2c]
xor edx, edx
cmp eax, 2
mov ecx, eax
mov dword [esi + 4], 0
cmove ecx, edx
movd edx, xmm0
cmp edi, edx
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
sbb dword [esi + 0xc], edx
mov edx, esp
cmovl ecx, eax
mov dword [ebx + 0x2c], ecx
push eax
sub esp, 0x58
mov eax, ebx
mov ebx, esp
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
mov edi, dword [eax + 0x3c]
cmp byte [edi + 8], 0
mov dword [esi + 0x14], edx
jne 0x50deff
mov ecx, dword [fcn.005515a0]
cmp ecx, 0x522100
jne 0x50dee3
mov dword [esi + 0xc], edi
xor eax, eax
lea edi, [esi + 0x38]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov edi, dword [edi + 4]
cmp eax, 0x7bd05af7
mov ecx, edi
sbb ecx, 0x863
jge 0x50e12e
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496bc]
push dword [0x6496b8]
push ecx
push eax
call fcn.00588630
mov edi, dword [esi + 0xc]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
cmp byte [edi + 8], 0
jne 0x50e0b4
test edi, edi
mov eax, dword [esi + 0x28]
je 0x50e09d
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0xc], edx
mov dword [edi], edx
mov dword [esi + 8], ecx
mov dword [edi + 4], ecx
mov byte [edi + 8], 1
mov ecx, dword [ebx + 0x54]
mov dword [esi + 0x10], ecx
mov edx, dword [ebx + 0x58]
mov dword [esi + 4], edx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
jmp 0x50df0e
call dword [0x63e63c]
lea eax, [esi + 0x38]
push eax
call ecx
add esp, 4
jmp 0x50dea5
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
jmp 0x50df9f
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edi
lea edi, [ebp + 8]
mov ecx, dword [edi + 4]
mov dword [esi + 0x24], ecx
mov dword [edi + 4], 0
movups xmm0, xmmword [edi + 8]
movups xmmword [ebx + 4], xmm0
movups xmm0, xmmword [edi + 0x18]
movups xmmword [ebx + 0x14], xmm0
movsd xmm0, qword [edi + 0x28]
movsd qword [ebx + 0x24], xmm0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x20], ecx
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x18], ecx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x1c], ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x50], 0
xor ecx, ecx
cmp dword [ebx + 0x20], 1
lea edx, [edi + 8]
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x2c], eax
mov eax, 0
je 0x50def4
mov dword [esi + 0x30], ecx
mov dword [ebx], 0
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x34]
movups xmmword [edx], xmm0
mov ecx, dword [esi + 8]
mov dword [edx + 0x14], ecx
mov ecx, dword [esi + 0xc]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [edx + 0x18], eax
mov eax, dword [esi + 4]
mov dword [edx + 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x28], eax
xorps xmm0, xmm0
movups xmmword [edx + 0x2c], xmm0
movups xmmword [edx + 0x39], xmm0
mov eax, dword [esi + 0x24]
mov dword [edx + 0x50], eax
movzx eax, byte [ebx + 0x14]
mov byte [edx + 0x58], al
movzx eax, byte [ebx + 0x15]
mov byte [edx + 0x5a], al
mov eax, dword [esi + 0x20]
mov dword [edx + 0x5c], eax
mov dword [ebx + 0x2c], 0
mov dword [edx + 0x64], 0
mov dword [edx + 0x60], 0
mov eax, dword [esi + 0x18]
mov dword [edx + 0x68], eax
mov dword [ebx + 0x30], 0
mov eax, dword [esi + 0x1c]
mov dword [edx + 0x6c], eax
mov eax, dword [esi + 0x28]
mov dword [edx + 0x44], eax
mov byte [edx + 0x59], 0
mov esp, dword [esi + 0x14]
mov eax, dword [edi + 0x34]
test eax, eax
mov ebx, edi
jne 0x50e061
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x50e087
mov edi, dword [ebx + 4]
test edi, edi
jne 0x50e071
mov edi, dword [ebx]
mov ecx, dword [esi + 0x40]
xor ecx, ebp
call fcn.00568175
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x40
lock dec dword [eax]
jne 0x50e03b
push eax
call fcn.00564ea0
add esp, 4
jmp 0x50e03b
lock dec dword [edi]
jne 0x50e049
mov ecx, dword [edi + 8]
call dword [0x63e63c]
push edi
call ecx
add esp, 4
jmp 0x50e049
lock dec dword [eax + 4]
jne 0x50e042
push eax
call fcn.00525d20
add esp, 4
jmp 0x50e042
call fcn.005d0170
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x624173
call fcn.00591ed0
mov edi, dword [esi + 8]
jmp 0x50dde0
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0xc], eax
mov dword [edi], eax
mov dword [esi + 8], ecx
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x28]
jmp 0x50decf
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
jmp 0x50ddb3
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], edx
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x50dd4e
mov ecx, dword [esi + 4]
mov edi, ecx
add edi, 1
mov dword [esi + 0x14], edi
mov edi, eax
adc edi, 0x80000000
mov dword [esi + 0x10], edi
xor ecx, edx
xor eax, ebx
or eax, ecx
mov edi, ebx
je 0x50dd8d
xor eax, eax
xor ecx, ecx
inc ecx
cmp ecx, dword [esi + 0x14]
sbb eax, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
jb 0x50dd8d
int3
mov ecx, dword [0x6496b8]
mov dword [esi + 8], ecx
mov edx, dword [0x6496bc]
mov dword [esi + 0x10], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x18], eax
call fcn.00588630
mov dword [esi + 4], eax
mov ecx, edx
mov eax, dword [esi + 4]
mul dword [esi + 8]
mov dword [esi + 0x20], eax
mov eax, edi
mov edi, dword [esi + 4]
imul edi, dword [esi + 0x10]
add edx, edi
imul edi, ecx, 0xf4240
mov dword [esi + 0x1c], edi
imul ecx, dword [esi + 8]
add ecx, edx
mov edi, dword [esi + 0x18]
sub edi, dword [esi + 0x20]
sbb eax, ecx
mov ecx, eax
mov edx, 0xf4240
mov eax, dword [esi + 4]
mul edx
mov dword [esi + 4], eax
add edx, dword [esi + 0x1c]
mov dword [esi + 0x18], edx
mov eax, edi
mov edx, 0xf4240
mul edx
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esi + 0x10]
push dword [esi + 8]
push edx
push eax
call fcn.00588630
add eax, dword [esi + 4]
adc edx, dword [esi + 0x18]
jmp 0x50de9c
mov ecx, dword [0x6496b8]
mov dword [esi + 0xc], ecx
mov edx, dword [0x6496bc]
mov dword [esi + 4], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x14], eax
call fcn.00588630
mov dword [esi + 8], eax
mov ecx, edx
mov eax, dword [esi + 8]
mul dword [esi + 0xc]
mov dword [esi + 0x18], eax
mov eax, edi
mov edi, dword [esi + 8]
imul edi, dword [esi + 4]
add edx, edi
imul edi, ecx, 0xf4240
mov dword [esi + 0x10], edi
imul ecx, dword [esi + 0xc]
add ecx, edx
mov edi, dword [esi + 0x14]
sub edi, dword [esi + 0x18]
sbb eax, ecx
mov ecx, eax
mov edx, 0xf4240
mov eax, dword [esi + 8]
mul edx
mov dword [esi + 8], eax
add edx, dword [esi + 0x10]
mov dword [esi + 0x14], edx
mov eax, edi
mov edx, 0xf4240
mul edx
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esi + 4]
push dword [esi + 0xc]
push edx
push eax
call fcn.00588630
add eax, dword [esi + 8]
adc edx, dword [esi + 0x14]
jmp 0x50dc4c
mov ecx, dword [0x6496b8]
mov dword [esi + 0x14], ecx
mov edx, dword [0x6496bc]
mov dword [esi + 0x18], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x1c], eax
call fcn.00588630
mov dword [esi + 0x10], eax
mov ecx, edx
mov eax, dword [esi + 0x10]
mul dword [esi + 0x14]
mov dword [esi + 0x2c], eax
mov eax, edi
mov edi, dword [esi + 0x10]
imul edi, dword [esi + 0x18]
add edx, edi
imul edi, ecx, 0xf4240
mov dword [esi + 0x20], edi
imul ecx, dword [esi + 0x14]
add ecx, edx
mov edi, dword [esi + 0x1c]
sub edi, dword [esi + 0x2c]
sbb eax, ecx
mov ecx, eax
mov edx, 0xf4240
mov eax, dword [esi + 0x10]
mul edx
mov dword [esi + 0x10], eax
add edx, dword [esi + 0x20]
mov dword [esi + 0x1c], edx
mov eax, edi
mov edx, 0xf4240
mul edx
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esi + 0x18]
push dword [esi + 0x14]
push edx
push eax
call fcn.00588630
add eax, dword [esi + 0x10]
adc edx, dword [esi + 0x1c]
jmp 0x50dd03