Function at 0x10064ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080e8d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], edi
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], eax
movlpd qword [ebp - 0x1c], xmm0
push ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10064d3d
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [ebp - 0x18], 1
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
lea edx, [ebp + 0xc]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x24]
call fcn.10066160
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
test ecx, ecx
jne 0x10064ebf
call dword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.MSVCP140.dll__Query_perf_counter]
push ebx
push ebx
push esi
push edx
push eax
call fcn.1007cc60
mov esi, ebx
pop ebx
push 0
push 0x3b9aca00
push esi
push ecx
mov ebx, eax
mov edi, edx
call fcn.1007cd40
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push edx
push eax
call fcn.1007cbb0
mov esi, eax
mov dword [ebp - 0x48], edx
mov ecx, 0x3b9aca00
mov eax, edi
mul ecx
mov edx, 0x3b9aca00
mov ecx, eax
mov eax, ebx
mul edx
add ecx, edx
add esi, eax
mov eax, dword [ebp - 0x48]
adc eax, ecx
mov dword [ebp - 0x40], esi
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
cmp eax, esi
jg 0x10065053
jl 0x10064dec
cmp dword [ebp - 0x40], edi
jae 0x10065053
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.1007cd40
sub edi, dword [ebp - 0x40]
mov ebx, eax
mov dword [ebp - 0x3c], edx
mov ecx, edi
sbb esi, dword [ebp - 0x48]
mov edx, esi
mov dword [ebp - 0x40], esi
call fcn.1007cf30
comisd xmm0, xmmword [0x1008d778]
mov esi, ebx
seta al
mov byte [ebp - 0x35], al
test al, al
mov eax, dword [ebp - 0x3c]
je 0x10064e42
add esi, 0xad160000
mov edi, 0xad160000
mov ecx, 0x311cd
adc eax, 0x311cd
jmp 0x10064e49
mov ecx, dword [ebp - 0x40]
add esi, edi
adc eax, ecx
mov dword [ebp - 0x40], eax
add ebx, edi
mov eax, dword [ebp - 0x3c]
push 0
push 0x3b9aca00
adc eax, ecx
push eax
push ebx
call fcn.1007cbb0
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
imul eax, eax, 0x3b9aca00
push ebx
mov dword [ebp - 0x30], edx
sub esi, eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.MSVCP140.dll__Mtx_current_owns]
add esp, 4
test eax, eax
je 0x1006504b
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.MSVCP140.dll__Cnd_timedwait]
mov ecx, eax
add esp, 0xc
sub ecx, 0
je 0x10064eb1
sub ecx, 2
jne 0x10064d36
cmp byte [ebp - 0x35], cl
je 0x1006503c
mov edi, dword [ebp - 0x50]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10064d67
mov eax, dword [edi + 0xc]
add eax, ecx
mov ecx, dword [edi + 8]
dec eax
dec ecx
and ecx, eax
mov eax, dword [edi + 4]
mov esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov dword [ecx], eax
movzx eax, byte [esi + 4]
mov byte [ecx + 4], al
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0x30], eax
movzx eax, byte [esi + 0x34]
mov byte [ecx + 0x34], al
movzx eax, byte [esi + 0x35]
mov byte [ecx + 0x35], al
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ecx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ecx + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [ecx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x50], eax
movzx eax, byte [esi + 0x54]
mov byte [ecx + 0x54], al
mov eax, dword [esi + 0x58]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [ecx + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [ecx + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [ecx + 0x68], eax
movzx eax, byte [esi + 0x6c]
mov byte [ecx + 0x6c], al
movzx eax, byte [esi + 0x6d]
mov byte [ecx + 0x6d], al
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
movzx eax, byte [esi + 0x74]
mov byte [ecx + 0x74], al
movzx eax, byte [esi + 0x75]
mov byte [ecx + 0x75], al
mov eax, dword [esi + 0x78]
mov dword [ecx + 0x78], eax
movzx eax, byte [esi + 0x7c]
mov byte [ecx + 0x7c], al
lea eax, [esi + 0x80]
push eax
sub ecx, 0xffffff80
call fcn.1000f420
mov ecx, dword [ebp - 0x4c]
lea eax, [esi + 0x98]
push eax
add ecx, 0x98
call fcn.1000f420
mov ecx, dword [ebp - 0x4c]
lea eax, [esi + 0xb0]
push eax
lea ecx, [ecx + 0xb0]
call fcn.1000f420
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
dec eax
add ecx, eax
mov eax, dword [edi + 8]
dec eax
and ecx, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + ecx*4]
call fcn.10063490
add dword [edi + 0x10], 0xffffffff
jne 0x1006500d
mov dword [edi + 0xc], 0
mov byte [ebp - 0x35], 1
push ebx
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov al, byte [ebp - 0x35]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 0x50]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10065056
jmp 0x10064ebf
push 4
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x35], 0
jmp 0x10065011