Function at 0x52a1b0
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 [0x64a040]
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 0x52a1e0
mov dword [esi + 0x28], eax
lea ecx, [ebp + 8]
mov eax, dword [ecx + 0x24]
cmp eax, 1
mov dword [esi + 0x24], edx
jne 0x52a2a9
mov ebx, dword [ecx + 0x3c]
cmp byte [ebx + 8], 0
jne 0x52a3ce
mov ecx, dword [fcn.0056d830]
cmp ecx, 0x56aca0
jne 0x52a298
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 0x52a7d8
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x64f6a4]
push dword [0x64f6a0]
push ecx
push eax
call fcn.005a13d0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
cmp byte [ebx + 8], 0
jne 0x52a729
test ebx, ebx
je 0x52a6f9
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 0x52a3d3
call dword [0x6445dc]
lea eax, [esi + 0x38]
push eax
call ecx
add esp, 4
jmp 0x52a272
test eax, eax
jne 0x52a6f4
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 0x52a366
mov dword [esi + 4], eax
mov ecx, dword [fcn.0056d830]
cmp ecx, 0x56aca0
jne 0x52a355
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 0x52a864
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x64f6a4]
push dword [0x64f6a0]
push ecx
push eax
call fcn.005a13d0
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 0x52a739
test ecx, ecx
je 0x52a6f9
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 0x52a36e
call dword [0x6445dc]
lea eax, [esi + 0x38]
push eax
call ecx
add esp, 4
jmp 0x52a32c
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 0x52a6b6
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 0x52a708
mov dword [ebx + 0x24], 1
mov edi, dword [esi + 8]
jmp 0x52a400
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 [0x64d150]
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 dword [esi + 0x14], 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
jne 0x52a51d
mov ecx, dword [fcn.0056d830]
cmp ecx, 0x56aca0
jne 0x52a501
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 0x52a74c
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x64f6a4]
push dword [0x64f6a0]
push ecx
push eax
call fcn.005a13d0
mov edi, dword [esi + 0xc]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
cmp byte [edi + 8], 0
jne 0x52a710
test edi, edi
mov eax, dword [esi + 0x28]
je 0x52a6f9
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 0x52a52c
call dword [0x6445dc]
lea eax, [esi + 0x38]
push eax
call ecx
add esp, 4
jmp 0x52a4c3
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
jmp 0x52a5bd
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 0x52a512
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 0x52a67f
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x52a6a5
mov edi, dword [ebx + 4]
test edi, edi
jne 0x52a68f
mov edi, dword [ebx]
mov ecx, dword [esi + 0x40]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x40
lock dec dword [eax]
jne 0x52a659
push eax
call fcn.0057dc2b
add esp, 4
jmp 0x52a659
lock dec dword [edi]
jne 0x52a667
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x52a667
lock dec dword [eax + 4]
jne 0x52a660
push eax
call fcn.00539890
add esp, 4
jmp 0x52a660
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 0x52a3ad
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 0x52a3ad
int3
call fcn.005f19f0
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
mov edi, dword [esi + 8]
jmp 0x52a400
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 0x52a4ed
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
jmp 0x52a3d3
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 0x52a36e
mov ecx, dword [0x64f6a0]
mov dword [esi + 8], ecx
mov edx, dword [0x64f6a4]
mov dword [esi + 0x10], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x18], eax
call fcn.005a13d0
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.005a13d0
add eax, dword [esi + 4]
adc edx, dword [esi + 0x18]
jmp 0x52a4ba
mov ecx, dword [0x64f6a0]
mov dword [esi + 0xc], ecx
mov edx, dword [0x64f6a4]
mov dword [esi + 4], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x14], eax
call fcn.005a13d0
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.005a13d0
add eax, dword [esi + 8]
adc edx, dword [esi + 0x14]
jmp 0x52a26c
mov ecx, dword [0x64f6a0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x64f6a4]
mov dword [esi + 0x18], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x1c], eax
call fcn.005a13d0
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.005a13d0
add eax, dword [esi + 0x10]
adc edx, dword [esi + 0x1c]
jmp 0x52a323