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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101844f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
xor ebx, ebx
movlpd qword [ebp - 0x10], xmm0
push edi
mov byte [ebp - 5], bl
call sym.CoreFoundation.dll_CFRetain
lea esi, [edi + 0xc]
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
test byte [edi + 4], 8
pop ecx
pop ecx
je 0x10074af4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi + 0x44]
cmp eax, dword [ebp - 0x20]
jg 0x10074af4
jl 0x100749f6
mov eax, dword [edi + 0x40]
cmp eax, dword [ebp - 0x24]
ja 0x10074af4
test byte [edi + 8], 1
jne 0x10074af4
mov eax, dword [ebp + 8]
cmp dword [edi + 0x24], eax
jne 0x10074af4
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x10074a29
push ecx
call eax
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x5c]
pop ecx
mov dword [ebp - 0xc], eax
xorps xmm0, xmm0
ucomisd xmm0, qword [edi + 0x38]
lahf
test ah, 0x44
jp 0x10074a3f
xor eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x10074a45
xor eax, eax
mov byte [ebp - 5], bl
inc eax
or word [edi + 8], ax
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov ebx, 0x1018730c
push ebx
call sym.CoreFoundation.dll___CFSpinLock
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x44]
push ebx
mov dword [ebp - 0x28], eax
call sym.CoreFoundation.dll___CFSpinUnlock
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.100733fd
lea eax, [ebx + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov dword [ebp - 0x1c], eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov eax, dword [edi + 0x4c]
add esp, 0x18
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x10074aa0
push ebx
push edi
call eax
pop ecx
pop ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
cmp byte [ebp - 5], 0
je 0x10074ab3
push edi
call sym.CoreFoundation.dll_CFRunLoopTimerInvalidate
pop ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10074abe
push ebx
call eax
pop ecx
push dword [ebp - 0x1c]
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
mov ecx, dword [ebp - 0x28]
xor eax, eax
add esp, 0xc
lea edx, [eax + 1]
mov eax, 0xfffe
and word [edi + 8], ax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 5], dl
jmp 0x10074b06
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebp - 5]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], eax
test byte [edi + 4], 8
je 0x10074d78
test dl, dl
je 0x10074d78
cmp ecx, dword [edi + 0x44]
jg 0x10074b36
jl 0x10074b24
cmp eax, dword [edi + 0x40]
jae 0x10074b36
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
push ebx
call fcn.100733fd
pop ecx
jmp 0x10074d7e
xorps xmm0, xmm0
xorps xmm1, xmm1
movlpd qword [ebp - 0x24], xmm0
movsd xmm0, qword [edi + 0x38]
comisd xmm1, xmm0
jae 0x10074b73
movsd xmm1, qword [0x10148fd0]
comisd xmm0, xmm1
push ecx
push ecx
jbe 0x10074b6c
movsd qword [esp], xmm1
call fcn.10001839
pop ecx
pop ecx
mov ecx, edx
jmp 0x10074b79
movsd qword [esp], xmm0
jmp 0x10074b61
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], eax
mov edx, ebx
mov dword [ebp - 0xc], ecx
sub edx, eax
mov dword [ebp - 0x2c], ebx
mov esi, closesocket
mov eax, esi
mov dword [ebp - 0x18], esi
sbb eax, ecx
cmp eax, dword [ebp - 0x28]
jg 0x10074ba1
jl 0x10074be3
cmp edx, dword [ebp - 0x14]
jbe 0x10074be3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x28]
mov esi, ecx
mov eax, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], esi
cmp ecx, dword [ebp - 0x20]
jg 0x10074be3
jl 0x10074bc7
cmp eax, dword [ebp - 0x24]
ja 0x10074be3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
add ebx, eax
adc esi, ecx
cmp esi, dword [ebp - 0x20]
jl 0x10074bcd
jg 0x10074bdd
cmp ebx, dword [ebp - 0x24]
jbe 0x10074bcd
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], ebx
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10074d28
push eax
call sym.CoreFoundation.dll_CFRetain
push dword [edi + 0x28]
call sym.CoreFoundation.dll_CFSetGetCount
pop ecx
mov ebx, eax
shl eax, 2
pop ecx
call fcn.1000333c
mov eax, esp
push eax
push dword [edi + 0x28]
mov dword [ebp - 0x14], eax
call sym.CoreFoundation.dll_CFSetGetValues
xor esi, esi
mov eax, esi
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test ebx, ebx
jle 0x10074c40
mov edi, dword [ebp - 0x14]
push dword [edi + eax*4]
call sym.CoreFoundation.dll_CFRetain
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
pop ecx
cmp eax, ebx
jl 0x10074c29
mov edi, dword [ebp + 0x10]
lea eax, [edi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov eax, esi
mov dword [ebp - 0xc], eax
pop ecx
test ebx, ebx
jle 0x10074c83
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + eax*4]
push 0
push esi
push dword [ebp - 0x1c]
call fcn.10074fd4
mov ecx, dword [ebp - 0xc]
push esi
mov dword [edi + ecx*4], eax
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [ebp - 0xc]
add esp, 0x10
inc eax
mov dword [ebp - 0xc], eax
cmp eax, ebx
jl 0x10074c56
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0x1018730c
call sym.CoreFoundation.dll___CFSpinLock
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x44], eax
lea eax, [ebp - 0x24]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
sbb ecx, dword [ebp - 0x20]
push ecx
push eax
call fcn.10001f14
add esp, 8
fstp qword [ebp - 0x10]
call sym.CoreFoundation.dll_CFAbsoluteTimeGetCurrent
mov ecx, esi
fadd qword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
fstp qword [edi + 0x30]
test ebx, ebx
jle 0x10074cf7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x10074cef
xor eax, eax
inc eax
push eax
push edi
push edx
call fcn.10073996
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, ebx
jl 0x10074cd4
push 0x1018730c
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
test ebx, ebx
jle 0x10074d1e
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + esi*4]
add eax, 8
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
inc esi
pop ecx
cmp esi, ebx
jl 0x10074d09
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
call sym.CoreFoundation.dll_CFRelease
jmp 0x10074d7e
lea eax, [edi + 0xc]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov dword [esp], 0x1018730c
call sym.CoreFoundation.dll___CFSpinLock
pop ecx
lea eax, [ebp - 0x24]
mov dword [edi + 0x40], ebx
push eax
mov dword [edi + 0x44], esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
sub ebx, dword [ebp - 0x24]
sbb esi, dword [ebp - 0x20]
push esi
push ebx
call fcn.10001f14
fstp qword [ebp - 0x10]
call sym.CoreFoundation.dll_CFAbsoluteTimeGetCurrent
fadd qword [ebp - 0x10]
push 0x1018730c
fstp qword [edi + 0x30]
call sym.CoreFoundation.dll___CFSpinUnlock
add esp, 0xc
jmp 0x10074d7f
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
pop ecx
push edi
call sym.CoreFoundation.dll_CFRelease
mov al, byte [ebp - 5]
pop ecx
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000234c
leave
ret