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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov edi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0xd8], eax
mov eax, dword [ecx + 0x94]
mov ecx, dword [ecx + 0x98]
cmp eax, ecx
je 0x4fb052
mov esi, dword [ebp + 8]
mov edx, ecx
sub edx, eax
sar edx, 4
imul eax, edx, 0xb6db6db7
cmp eax, dword [ebp + 0xc]
jne 0x4fb59e
cmp dword [edi + 0x6c], 0
je 0x4fb033
mov eax, dword [edi + 0x58]
or eax, dword [edi + 0x5c]
je 0x4fb033
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x4fb589
mov ecx, dword [eax + 0x98]
sub ecx, dword [eax + 0x94]
cmp ecx, 0x70
jne 0x4fb033
movzx eax, byte [edi + 0x68]
mov dword [esp + 0x10], 3
mov byte [esp + 0x18], al
test al, al
jne 0x4fae95
mov byte [edi + 0x68], 1
mov dword [esp + 0x10], 5
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
movzx eax, byte [esi + 8]
test al, al
jne 0x4faf4c
mov ecx, dword [fcn.005608f0]
cmp ecx, 0x5531a0
jne 0x4fb06a
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
cmp ebx, 0x7bd05af7
mov ecx, eax
sbb eax, 0x863
jge 0x4fb6eb
mov edx, 0xf4240
mov eax, ebx
mul edx
imul ecx, ecx, 0xf4240
add ecx, edx
push dword [0x64b6cc]
push dword [0x64b6c8]
push ecx
push eax
call fcn.005877d0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
movzx eax, byte [esi + 8]
cmp al, 1
je 0x4fb643
test esi, esi
je 0x4fb634
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
mov al, 1
test al, al
je 0x4fb58f
lea edx, [edi + 0x58]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
sub ecx, dword [edx]
mov dword [esp + 0x14], edx
sbb eax, dword [edx + 4]
seto bl
mov edx, eax
sar edx, 0x1f
test bl, bl
cmovne ecx, edx
add edx, 0x80000000
test bl, bl
cmove edx, eax
xor esi, esi
mov eax, 0x1c9c37f
cmp eax, ecx
mov eax, 0
sbb eax, edx
mov dword [esp + 0x24], edi
jl 0x4fb00d
mov ebx, ecx
add ebx, 1
mov eax, edx
adc eax, 0x80000000
mov edi, 1
cmp edi, ebx
sbb esi, eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ebx, dword [eax + edi*8 + 0x10]
mov esi, dword [eax + edi*8 + 0x14]
jae 0x4fb652
add ebx, ecx
adc esi, edx
seto cl
mov eax, esi
sar eax, 0x1f
test cl, cl
cmovne ebx, eax
add eax, 0x80000000
test cl, cl
cmove eax, esi
cmp ebx, 0x186a0
mov ecx, eax
sbb ecx, 0
mov esi, dword [esp + 0x24]
mov dword [esi + edi*8 + 0x10], ebx
mov dword [esi + edi*8 + 0x14], eax
jge 0x4fb4d3
cmp dword [esi + 0x8c], 0
mov edi, esi
je 0x4fb58c
movzx eax, byte [0x64b534]
test al, al
setne bl
jne 0x4fb5ba
mov byte [edi + 0x88], bl
movsd xmm0, qword [esp + 0x58]
movsd qword [edi + 0x58], xmm0
mov esi, dword [ebp + 8]
mov ebx, dword [edi + 0x98]
cmp dword [edi + 0x94], ebx
je 0x4fb57a
cmp dword [ebx - 0x28], 0
mov dword [ebx - 0x28], 1
je 0x4fb07f
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.00567335
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [0x6401dc]
lea eax, [esp + 0x60]
push eax
call ecx
add esp, 4
jmp 0x4faf25
mov eax, dword [ebx - 0x68]
or eax, dword [ebx - 0x64]
jne 0x4fb61e
mov eax, dword [ebx - 0x60]
or eax, dword [ebx - 0x5c]
jne 0x4fb621
lea ecx, [ebx - 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x24], ecx
or eax, dword [ecx + 4]
mov dword [esp + 0x10], ebx
jne 0x4fb2ae
mov eax, dword [0x659bf4]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4fb404
mov eax, dword [ebx - 0x20]
test eax, eax
je 0x4fb624
cmp byte [0x659bf0], 1
jne 0x4fb191
cmp byte [eax + 0xc], 0
jne 0x4fb627
movsd xmm0, qword [0x6280a8]
mov esi, dword [ebx - 0x38]
mov ecx, dword [ebx - 0x34]
mov eax, ecx
shld eax, esi, 0x17
mov edi, dword [ebx - 0x2c]
mov edx, esi
shl edx, 0x17
xor edx, esi
xor eax, ecx
mov esi, eax
mov ecx, edi
shr ecx, 0x1a
xor ecx, edi
xor ecx, eax
shr eax, 0x11
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx - 0x30]
shld esi, edx, 0xf
mov ecx, edi
shld ecx, ebx, 6
xor ecx, ebx
xor ecx, edx
xor ecx, esi
mov edx, dword [esp + 0x10]
mov dword [edx - 0x38], ebx
mov edx, dword [esp + 0x10]
mov dword [edx - 0x34], edi
mov edx, dword [esp + 0x10]
mov dword [edx - 0x30], ecx
add ecx, ebx
mov ebx, dword [esp + 0x10]
mov dword [ebx - 0x2c], eax
adc eax, edi
mov edx, eax
shr edx, 0xb
movd xmm1, edx
shld eax, ecx, 0x15
movd xmm2, eax
punpckldq xmm2, xmm1
movq qword [esp + 0x30], xmm2
fild qword [esp + 0x30]
fstp qword [esp + 0x28]
movsd xmm1, qword [esp + 0x28]
mulsd xmm1, qword [0x6280a0]
ucomisd xmm0, xmm1
mov esi, dword [ebp + 8]
ja 0x4fb1d1
mov dword [esp + 0x4c], 0xa
movzx eax, byte [0x64b456]
test al, al
jne 0x4fb6ac
lea ecx, [ebx - 0x18]
mov eax, dword [ebx - 8]
inc eax
mov dword [ebx - 8], eax
push 0
push eax
call fcn.00401ac0
jmp 0x4fb052
call dword [0x6401dc]
lea eax, [esp + 0x60]
push eax
call ecx
add esp, 4
jmp 0x4fb240
mov al, byte [esi + 8]
test al, al
jne 0x4fb26c
mov ebx, esi
mov ecx, dword [fcn.005608f0]
cmp ecx, 0x5531a0
jne 0x4fb1bf
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 0x4fb93b
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x64b6cc]
push dword [0x64b6c8]
push ecx
push eax
call fcn.005877d0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov esi, ebx
mov al, byte [ebx + 8]
cmp al, 1
je 0x4fb7f7
test esi, esi
je 0x4fb634
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
mov al, 1
mov ebx, dword [esp + 0x10]
test al, al
je 0x4fb58f
movsd xmm0, qword [esi]
movsd qword [ebx - 0x68], xmm0
mov edi, esi
lea esi, [esp + 0x60]
push esi
call fcn.00406820
add esp, 4
movsd xmm0, qword [esi]
mov esi, edi
movsd qword [ebx - 0x60], xmm0
jmp 0x4fb191
call dword [0x6401dc]
lea eax, [esp + 0x60]
push eax
call ecx
add esp, 4
jmp 0x4fb31d
mov al, byte [esi + 8]
test al, al
jne 0x4fb349
mov ebx, esi
mov ecx, dword [fcn.005608f0]
cmp ecx, 0x5531a0
jne 0x4fb29c
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 0x4fb8a7
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x64b6cc]
push dword [0x64b6c8]
push ecx
push eax
call fcn.005877d0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov esi, ebx
mov al, byte [ebx + 8]
cmp al, 1
je 0x4fb7e8
test esi, esi
je 0x4fb634
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
mov al, 1
mov ebx, dword [esp + 0x10]
test al, al
je 0x4fb58f
mov edi, dword [esi]
sub edi, dword [ebx - 0x70]
mov eax, dword [esi + 4]
sbb eax, dword [ebx - 0x6c]
seto cl
mov esi, eax
sar esi, 0x1f
test cl, cl
cmovne edi, esi
add esi, 0x80000000
test cl, cl
cmove esi, eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
sub esp, 0x10
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [esp], xmm0
mov ecx, dword [esp + 0x34]
mov edx, str.Scheduling.ThreadController.IdleDuration
call fcn.00401230
add esp, 0x10
xor edx, edx
mov dword [ebx - 0x6c], edx
mov dword [ebx - 0x70], edx
mov dword [esp + 0x18], edi
add edi, 1
mov ecx, esi
adc ecx, 0x80000000
cmp edi, 2
sbb ecx, 0
mov eax, dword [ebx - 0x58]
mov ecx, dword [ebx - 0x54]
jb 0x4fb869
add eax, dword [esp + 0x18]
adc ecx, esi
seto dl
mov edi, ecx
sar edi, 0x1f
lea esi, [edi - 0x80000000]
test dl, dl
cmove edi, eax
test dl, dl
cmove esi, ecx
mov dword [ebx - 0x58], edi
mov dword [ebx - 0x54], esi
mov esi, dword [ebp + 8]
jmp 0x4fb0ad
push 0x659bf4
call fcn.00565714
add esp, 4
cmp dword [0x659bf4], 0xffffffff
jne 0x4fb0ce
mov eax, dword [0x64b67c]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4fb457
mov al, byte [0x64b678]
mov byte [0x659bf0], al
push 0x659bf4
call fcn.00565763
add esp, 4
jmp 0x4fb0ce
push 0x64b67c
call fcn.00565714
add esp, 4
cmp dword [0x64b67c], 0xffffffff
jne 0x4fb43b
xorpd xmm0, xmm0
lea edi, [esp + 0x60]
movupd xmmword [edi + 0x1f], xmm0
movapd xmmword [edi + 0x10], xmm0
movapd xmmword [edi], xmm0
movsd xmm1, qword [str.unknown]
movsd qword [edi + 0x2f], xmm1
movq xmm1, qword [0x63070b]
movq qword [edi + 0x34], xmm1
movupd xmmword [edi + 0x3c], xmm0
movupd xmmword [edi + 0x4c], xmm0
movupd xmmword [edi + 0x5c], xmm0
mov byte [edi + 0x6c], 0
mov ecx, edi
push 0
call fcn.00437620
mov al, byte [edi + 0x2d]
mov byte [0x64b678], al
push 0x64b67c
call fcn.00565763
add esp, 4
jmp 0x4fb43b
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [esp + 0x40], xmm0
fild qword [esp + 0x40]
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
divsd xmm0, qword [0x638410]
cvttsd2si ebx, xmm0
mov eax, dword [esi + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov dword [esp + 8], ecx
call dword [0x6401dc]
mov ecx, dword [esp + 0xc]
push ebx
push edi
call dword [esp + 0x10]
mov eax, ebx
neg eax
cmovs eax, ebx
mov ecx, 0x3e8
mul ecx
xor ecx, ecx
mov edi, esi
mov esi, eax
neg esi
sbb ecx, edx
test ebx, ebx
cmovns ecx, edx
cmovns esi, eax
mov eax, dword [esp + 0x10]
mov ebx, dword [edi + eax*8 + 0x10]
sub ebx, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov edx, dword [esi + edi*8 + 0x14]
sbb edx, ecx
seto al
mov ecx, edx
sar ecx, 0x1f
test al, al
cmovne ebx, ecx
add ecx, 0x80000000
test al, al
cmove ecx, edx
mov dword [esi + edi*8 + 0x10], ebx
mov dword [esi + edi*8 + 0x14], ecx
jmp 0x4faffe
push str....._third_partylibc_srcinclude_vector:622:_assertion__empty___failed:_back___called_on_an_empty_vector_n
push 0x624e92
call fcn.005912b0
int3
int3
push str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x624e92
call fcn.005912b0
lea ebx, [edi + 0x94]
add ecx, 0xffffff90
mov edx, esi
call fcn.005ce340
mov ecx, ebx
call fcn.005ce3b0
jmp 0x4fb033
mov esi, edi
cmp byte [edi + 0x88], 0
jne 0x4fb5da
mov dword [esp + 0x4c], 0xe8
mov al, byte [0x64b534]
test al, al
jne 0x4fb806
mov ecx, str.NativeTask
mov eax, str.ApplicationTask
cmp byte [esp + 0x18], 0
cmovne eax, ecx
mov dword [esp + 0x50], 0xe8
mov cl, byte [0x64b534]
test cl, cl
jne 0x4fb7b4
mov dword [esp + 0x50], 0xe8
mov al, byte [0x64b534]
test al, al
jne 0x4fb77b
mov edi, esi
jmp 0x4fb01f
int3
int3
int3
movsd xmm0, qword [0x617a88]
jmp 0x4fb0f8
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x624e92
call fcn.005912b0
movsd xmm0, qword [esp + 0x60]
movsd qword [esi], xmm0
jmp 0x4faf4c
mov dword [esp + 8], ebx
mov eax, 1
add dword [esp + 8], eax
mov eax, esi
adc eax, 0x80000000
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0
xor eax, eax
inc eax
cmp eax, dword [esp + 8]
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0xc]
setb al
xor ecx, ebx
mov ebx, 1
xor edx, esi
or edx, ecx
mov ecx, 0x80000000
sete dl
add ebx, 0xffffffff
adc ecx, 0xffffffff
or dl, al
mov esi, dword [esp + 0x24]
jne 0x4fb56d
int3
movzx eax, al
mov dword [esp + 0x18], eax
mov ecx, esi
lea esi, [esp + 0x58]
mov eax, dword [esp + 0x24]
mov dword [esi], eax
lea edi, [esp + 0x60]
push edi
call fcn.004fde40
lea eax, [esp + 0x50]
mov dword [eax], str.ThreadController_active
lea edx, [esp + 0x4c]
mov ecx, dword [esp + 0x18]
push esi
push edi
push eax
call fcn.005ce6f0
add esp, 0xc
jmp 0x4fb1a8
mov esi, dword [0x64b6c8]
mov dword [esp + 0xc], esi
mov eax, dword [0x64b6cc]
mov dword [esp + 0x14], eax
push eax
push esi
mov dword [esp + 0x10], ecx
push ecx
push ebx
call fcn.005877d0
mov dword [esp + 0x1c], eax
mov ecx, edx
mov eax, dword [esp + 0x1c]
mul esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov esi, eax
imul esi, dword [esp + 0x14]
add edx, esi
imul esi, ecx, 0xf4240
imul ecx, dword [esp + 0xc]
add ecx, edx
sub ebx, dword [esp + 0x20]
sbb dword [esp + 8], ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 0x1c], eax
add edx, esi
mov dword [esp + 0x20], edx
mov esi, dword [ebp + 8]
mov eax, ebx
mul ecx
imul ecx, dword [esp + 8], 0xf4240
add edx, ecx
push dword [esp + 0x14]
push dword [esp + 0x10]
push edx
push eax
call fcn.005877d0
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
jmp 0x4faf1d
cmp byte [esi + 0x80], 0
je 0x4fb58f
movzx ecx, al
lea eax, [esi + 0x70]
lea edx, [esp + 0x60]
mov dword [edx], 0
lea edx, [esp + 0x50]
lea edi, [esp + 0x58]
push edi
push eax
lea eax, [esp + 0x68]
push eax
call fcn.005ce990
add esp, 0xc
jmp 0x4fb617
cmp byte [esi + 0x80], 0
je 0x4fb58f
movzx ecx, cl
lea edx, [esi + 0x70]
lea edi, [esp + 0x60]
mov dword [edi], eax
lea eax, [esp + 0x50]
push dword [esp + 0x14]
push edx
push 1
push edi
push eax
push ecx
call fcn.0059df60
add esp, 0x18
jmp 0x4fb602
movsd xmm0, qword [esp + 0x60]
movsd qword [esi], xmm0
jmp 0x4fb345
movsd xmm0, qword [esp + 0x60]
movsd qword [esi], xmm0
jmp 0x4fb268
mov edx, 0xfff0bdc0
add edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
adc ecx, 0xffffffff
mov edi, 0x80000000
cmovno edi, ecx
mov ecx, 0
cmovo edx, ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x80], 0
je 0x4fb58f
movzx eax, al
lea ecx, [esi + 0x70]
lea edx, [esp + 0x50]
mov dword [edx], str.MessagePumpPhases
lea edi, [esp + 0x60]
push edi
push ecx
push 3
push edx
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.0059df60
add esp, 0x18
jmp 0x4fb5da
xor edi, edi
inc edi
mov ebx, eax
add ebx, edi
mov dword [esp + 0x14], eax
mov eax, ecx
adc eax, 0x80000000
xor edi, edi
inc edi
cmp edi, ebx
mov ebx, dword [esp + 0x10]
sbb edx, eax
setb dl
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor edi, eax
xor ecx, esi
or ecx, edi
mov edi, eax
sete al
or al, dl
jne 0x4fb3f6
int3
mov edi, dword [0x64b6c8]
mov dword [esp + 0x14], edi
mov ecx, dword [0x64b6cc]
mov dword [esp + 0x18], ecx
push ecx
push edi
push esi
push eax
mov dword [esp + 0x1c], eax
call fcn.005877d0
mov dword [esp + 8], eax
mov ecx, edx
mov eax, dword [esp + 8]
mul edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov edi, eax
imul edi, dword [esp + 0x18]
add edx, edi
imul edi, ecx, 0xf4240
mov dword [esp + 0x1c], edi
imul ecx, dword [esp + 0x14]
add ecx, edx
mov edi, dword [esp + 0xc]
sub edi, dword [esp + 0x20]
sbb esi, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 8], eax
add edx, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add edx, ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push edx
push eax
call fcn.005877d0
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
jmp 0x4fb315
mov edi, dword [0x64b6c8]
mov dword [esp + 0x14], edi
mov ecx, dword [0x64b6cc]
mov dword [esp + 0x18], ecx
push ecx
push edi
push esi
push eax
mov dword [esp + 0x1c], eax
call fcn.005877d0
mov dword [esp + 8], eax
mov ecx, edx
mov eax, dword [esp + 8]
mul edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
mov edi, eax
imul edi, dword [esp + 0x18]
add edx, edi
imul edi, ecx, 0xf4240
mov dword [esp + 0x1c], edi
imul ecx, dword [esp + 0x14]
add ecx, edx
mov edi, dword [esp + 0xc]
sub edi, dword [esp + 0x20]
sbb esi, ecx
mov ecx, 0xf4240
mul ecx
mov dword [esp + 8], eax
add edx, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov eax, edi
mul ecx
imul ecx, esi, 0xf4240
add edx, ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push edx
push eax
call fcn.005877d0
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
jmp 0x4fb238