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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push ebx
push edi
push esi
mov edi, ecx
mov byte [ebp - 5], 0
call sym.CoreFoundation.dll_CFRetain
lea ebx, [esi + 0xc]
push ebx
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
test byte [esi + 4], 8
pop ecx
pop ecx
je 0x100744fa
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x44]
cmp eax, dword [ebp - 0x1c]
jg 0x100742b0
jl 0x100741cc
mov eax, dword [esi + 0x40]
cmp eax, dword [ebp - 0x20]
ja 0x100742b0
test byte [esi + 8], 1
jne 0x100742b0
cmp dword [esi + 0x24], edi
jne 0x100742b0
mov eax, dword [esi + 0x58]
and dword [ebp - 0x18], 0
test eax, eax
je 0x100741fb
push dword [esi + 0x54]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x5c]
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x10074201
mov eax, dword [esi + 0x54]
mov dword [ebp - 0xc], eax
fldz
mov byte [ebp - 5], 1
fld qword [esi + 0x38]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10074217
mov byte [ebp - 5], 0
or word [esi + 8], 1
push ebx
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov ebx, 0x1017b784
push ebx
call sym.CoreFoundation.dll___CFSpinLock
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
push ebx
mov dword [ebp - 0x10], eax
call sym.CoreFoundation.dll___CFSpinUnlock
mov ebx, dword [ebp + 8]
call fcn.100714a9
add ebx, 8
push ebx
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
add edi, 8
push edi
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov eax, dword [esi + 0x4c]
add esp, 0x14
test eax, eax
je 0x1007426b
push dword [ebp - 0xc]
push esi
call eax
pop ecx
pop ecx
call dword [0x10181080]
cmp byte [ebp - 5], 0
je 0x1007427e
push esi
call sym.CoreFoundation.dll_CFRunLoopTimerInvalidate
pop ecx
cmp dword [ebp - 0x18], 0
je 0x1007428b
push dword [ebp - 0xc]
call dword [ebp - 0x18]
pop ecx
push edi
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push ebx
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
mov eax, 0xfffe
add esp, 0xc
and word [esi + 8], ax
mov byte [ebp - 5], 1
test byte [esi + 4], 8
je 0x100744fa
cmp byte [ebp - 5], 0
je 0x100744fa
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x44]
jg 0x100742ed
jl 0x100742d6
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x40]
jae 0x100742ed
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov ebx, dword [ebp + 8]
pop ecx
call fcn.100714a9
jmp 0x10074504
fldz
and dword [ebp - 0x20], 0
fcomp qword [esi + 0x38]
and dword [ebp - 0x1c], 0
fnstsw ax
test ah, 1
je 0x1007432c
fld qword [esi + 0x38]
push ecx
fld qword [0x1013cb78]
push ecx
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1007431c
fstp st(0)
fld qword [esi + 0x38]
fstp qword [esp]
call fcn.1000235b
pop ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
pop ecx
or edi, 0xffffffff
mov ecx, edi
sub ecx, dword [ebp - 0x20]
mov ebx, bind
mov eax, ebx
sbb eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jg 0x1007434a
jl 0x1007437a
cmp ecx, dword [ebp - 0x14]
jbe 0x1007437a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp ebx, eax
jg 0x1007437a
mov ecx, dword [ebp - 0x2c]
jl 0x1007436a
cmp edi, ecx
ja 0x1007437a
add edi, dword [ebp - 0x20]
adc ebx, dword [ebp - 0x1c]
cmp ebx, eax
jl 0x1007436a
jg 0x1007437a
cmp edi, ecx
jbe 0x1007436a
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100744aa
push eax
call sym.CoreFoundation.dll_CFRetain
push dword [esi + 0x28]
call sym.CoreFoundation.dll_CFSetGetCount
pop ecx
mov dword [ebp - 0x24], eax
pop ecx
shl eax, 2
call fcn.101283a0
mov dword [ebp - 0x18], esp
push esp
push dword [esi + 0x28]
call sym.CoreFoundation.dll_CFSetGetValues
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x24], 0
pop ecx
pop ecx
jle 0x100743d5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
push dword [eax + ecx*4]
call sym.CoreFoundation.dll_CFRetain
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
pop ecx
cmp eax, dword [ebp - 0x24]
jl 0x100743bb
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x24], 0
pop ecx
jle 0x10074420
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
push 0
mov edx, eax
mov dword [ebp - 0x10], eax
call fcn.10070118
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x10]
mov dword [ecx], eax
call sym.CoreFoundation.dll_CFRelease
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
cmp eax, dword [ebp - 0x24]
jl 0x100743e9
push 0x1017b784
call sym.CoreFoundation.dll___CFSpinLock
pop ecx
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
sub edi, dword [ebp - 0x14]
sbb ebx, dword [ebp - 0x10]
push ebx
push edi
call fcn.100020ef
fstp qword [ebp - 0x20]
pop ecx
pop ecx
call sym.CoreFoundation.dll_CFAbsoluteTimeGetCurrent
fadd qword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
xor edi, edi
fstp qword [esi + 0x30]
test ebx, ebx
jle 0x1007447a
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x10074475
push 1
mov eax, esi
call fcn.100715b9
pop ecx
inc edi
cmp edi, ebx
jl 0x10074461
push 0x1017b784
call sym.CoreFoundation.dll___CFSpinUnlock
xor edi, edi
pop ecx
test ebx, ebx
jle 0x100744a0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + edi*4]
add eax, 8
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
inc edi
pop ecx
cmp edi, ebx
jl 0x1007448b
push dword [ebp - 0x28]
call sym.CoreFoundation.dll_CFRelease
jmp 0x10074503
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov dword [esp], 0x1017b784
call sym.CoreFoundation.dll___CFSpinLock
pop ecx
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
sub edi, dword [ebp - 0x14]
sbb ebx, dword [ebp - 0x10]
push ebx
push edi
call fcn.100020ef
fstp qword [ebp - 0x20]
call sym.CoreFoundation.dll_CFAbsoluteTimeGetCurrent
fadd qword [ebp - 0x20]
push 0x1017b784
fstp qword [esi + 0x30]
call sym.CoreFoundation.dll___CFSpinUnlock
add esp, 0xc
jmp 0x10074504
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
pop ecx
push esi
call sym.CoreFoundation.dll_CFRelease
mov al, byte [ebp - 5]
pop ecx
lea esp, [ebp - 0x34]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128382
leave
ret