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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, eax
push edi
lea eax, [esi + 0x28]
xor edi, edi
mov dword [ebp - 8], eax
cmp dword [eax], edi
jne 0x10057eeb
push 0x600
push str.com.apple.distributed_notifications.2
push esi
call sym.CoreFoundation.dll_CFGetAllocator
pop ecx
push eax
call sym.CoreFoundation.dll_CFStringCreateWithCString
add esp, 0xc
push edi
lea ecx, [ebp - 0x24]
push ecx
mov ebx, 0x10057cf3
push ebx
push eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sym.CoreFoundation.dll_CFGetAllocator
pop ecx
push eax
call sym.CoreFoundation.dll_CFWindowsNamedPipeCreateConnectToName
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10057e5c
call fcn.10002cb1
test al, al
je 0x10057ec0
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0xc]
push esi
call sym.CoreFoundation.dll_CFGetAllocator
pop ecx
push eax
call sym.CoreFoundation.dll_CFWindowsNamedPipeCreateConnectToName
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10057e5c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10057e2f
push 0x10057b23
push dword [ebp - 4]
call sym.CoreFoundation.dll_CFWindowsNamedPipeSetInvalidationCallBack
pop ecx
pop ecx
push edi
push dword [ebp - 4]
push esi
call sym.CoreFoundation.dll_CFGetAllocator
pop ecx
push eax
call sym.CoreFoundation.dll_CFWindowsNamedPipeCreateRunLoopSource
mov esi, dword [esi + 0x2c]
add esp, 0xc
mov ebx, eax
cmp esi, edi
je 0x10057e8c
mov eax, esi
jmp 0x10057e91
call sym.CoreFoundation.dll_CFRunLoopGetMain
push dword [sym.CoreFoundation.dll_NSRunLoopCommonModes]
push ebx
push eax
call sym.CoreFoundation.dll_CFRunLoopAddSource
push ebx
call sym.CoreFoundation.dll_CFRelease
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call sym.CoreFoundation.dll_OSAtomicCompareAndSwapPtr
add esp, 0x1c
test al, al
jne 0x10057ec0
push dword [ebp - 4]
call sym.CoreFoundation.dll_CFRelease
pop ecx
fld qword [0x101385b8]
push ecx
push ecx
fstp qword [esp]
call fcn.1000235b
mov dword [0x1017b248], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov dword [0x1017b24c], edx
cmp dword [eax], edi
jne 0x10057eeb
xor al, al
jmp 0x10058075
push edi
push edi
push 0xc8
push dword [ebp + 8]
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFPropertyListCreateData
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10057ee4
push eax
call sym.CoreFoundation.dll_CFDataGetLength
mov edi, eax
lea ebx, [edi + 3]
mov eax, ebx
and eax, 0xfffffffc
add eax, 0x1c
push eax
mov dword [ebp - 0xc], eax
call dword [0x10181090]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], 4
push dword [eax]
call sym.CoreFoundation.dll_CFWindowsNamedPipeGetHandle
and dword [esi + 0xc], 0
and dword [esi + 0x14], 0
add esp, 0xc
push edi
push dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi], 0x1413
mov dword [esi + 0x18], edi
call sym.CoreFoundation.dll_CFDataGetBytePtr
pop ecx
push eax
lea eax, [esi + 0x1c]
push eax
call dword [0x10181084]
and ebx, 0xfffffffc
sub ebx, edi
push ebx
lea eax, [esi + edi + 0x1c]
push 0
push eax
call fcn.10128376
push dword [ebp - 4]
call sym.CoreFoundation.dll_CFRelease
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
call edi
mov eax, dword [0x1017b390]
mov ecx, dword [0x1017b394]
jmp 0x10057fda
mov ebx, dword [ebp - 0x10]
sub ebx, dword [eax*8 + 0x1017b250]
mov edx, dword [ebp - 0xc]
sbb edx, dword [eax*8 + 0x1017b254]
cmp dword [0x1017b24c], edx
ja 0x10057fde
jb 0x10057fc8
cmp dword [0x1017b248], ebx
ja 0x10057fde
inc eax
mov dword [0x1017b390], eax
cmp eax, 0x28
jb 0x10057fda
xor eax, eax
mov dword [0x1017b390], eax
cmp eax, ecx
jne 0x10057fa2
lea ebx, [ecx + 1]
cmp ebx, 0x28
jb 0x10057fe8
xor ebx, ebx
cmp ebx, eax
jne 0x10058009
push str.This_client_has_sent_too_many_distributed_notifications
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push 6
call sym.CoreFoundation.dll_CFLog
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push dword [esi + 4]
push 1
push esi
call sym.CoreFoundation.dll_windows_msg
mov dword [ebp - 8], eax
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
call edi
mov eax, dword [0x1017b394]
mov ecx, dword [ebp - 0x10]
mov dword [eax*8 + 0x1017b250], ecx
mov ecx, dword [ebp - 0xc]
push esi
mov dword [eax*8 + 0x1017b254], ecx
mov dword [0x1017b394], ebx
call dword [0x10181098]
cmp dword [ebp - 8], 0
pop ecx
je 0x1005806d
push dword [ebp + 8]
push dword [ebp - 8]
push str.Unable_to_send_message_to_distnoted.exe___d_:___
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 3
call sym.CoreFoundation.dll_CFLog
add esp, 0x10
xor eax, eax
cmp dword [ebp - 8], eax
sete al
pop edi
pop esi
pop ebx
leave
ret