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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi + 0x28]
mov eax, dword [eax + 8]
test eax, eax
je 0x10074757
mov eax, dword [edi + 0x28]
push 2
mov dword [eax + 8], 0
pop eax
leave
ret
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x24], 0
je 0x1007476d
push 2
mov byte [ebx + 0x24], 0
pop eax
jmp 0x10074c30
and dword [ebp - 8], 0
call sym.CoreFoundation.dll__NS_pthread_main_np
test eax, eax
je 0x100747a9
push 4
call sym.CoreFoundation.dll__CFGetTSD
pop ecx
test eax, eax
jne 0x100747a9
call sym.CoreFoundation.dll_CFRunLoopGetMain
cmp eax, edi
jne 0x100747a9
push dword [ebx + 0x20]
push dword [edi + 0x34]
call sym.CoreFoundation.dll_CFSetContainsValue
pop ecx
pop ecx
test al, al
je 0x100747a9
call dword [0x10181308]
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
push esi
push 0x10
call dword [0x10181090]
fldz
fcomp qword [ebp + 0xc]
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
fnstsw ax
test ah, 1
jne 0x100747d5
and dword [esi + 8], 0
and dword [esi + 0xc], 0
jmp 0x100748b9
fld qword [0x1013cb78]
fcomp qword [ebp + 0xc]
fnstsw ax
test ah, 1
jne 0x100748ae
push 2
push 2
call dword [0x101812d8]
push eax
push 0
push 0
push dword [0x10181304]
call dword [0x10181300]
push eax
mov dword [ebp - 0xc], eax
call dword [0x101812fc]
mov eax, dword [ebp - 0xc]
push edi
mov dword [esi], eax
call sym.CoreFoundation.dll_CFRetain
fld qword [ebp + 0xc]
add esp, 0x18
fstp qword [esp]
mov dword [esi + 4], eax
call fcn.1000235b
add eax, dword [ebp - 0x20]
push esi
adc edx, dword [ebp - 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov esi, dword [ebp - 0xc]
push esi
call dword [0x101812f8]
push 0x10073a1b
push esi
call dword [0x101812bc]
push 0x1007173b
push esi
call dword [0x101812c0]
fld qword [ebp + 0xc]
fld qword [0x10132090]
add esp, 0x20
fmul st(1), st(0)
push 0
push 0
push 0xffffffffffffffff
fmulp st(1)
push 0xffffffffffffffff
fadd qword [0x10133828]
call fcn.101285c6
push 0
push 0x3e8
push edx
push eax
call fcn.101283f0
push edx
push eax
push 0
push 0
call dword [0x101812dc]
add esp, 0x10
push edx
push eax
push esi
call dword [0x101812c4]
push esi
call dword [0x101812c8]
add esp, 0x20
jmp 0x100748b9
or dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], bind
mov byte [ebp - 3], 1
mov eax, dword [ebx + 0x3c]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 0
mov dword [eax + 0xc], 0
test byte [ebx + 0x40], 2
je 0x100748e7
push 2
push edi
mov ecx, ebx
call fcn.100737dc
pop ecx
pop ecx
test byte [ebx + 0x40], 4
je 0x100748f9
push 4
push edi
mov ecx, ebx
call fcn.100737dc
pop ecx
pop ecx
mov eax, ebx
mov esi, edi
call fcn.10070eff
push dword [ebp + 0x14]
mov eax, ebx
push edi
call fcn.100711d4
pop ecx
pop ecx
mov byte [ebp - 1], al
test al, al
je 0x10074a26
mov eax, ebx
call fcn.10070eff
mov byte [ebp - 2], 1
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x1007494e
cmp byte [ebp - 3], 0
jne 0x1007494e
push ecx
push ecx
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
xor ecx, ecx
call fcn.1007164a
add esp, 0x10
test al, al
jne 0x100749f1
cmp byte [ebp - 2], 0
mov byte [ebp - 3], 0
jne 0x1007496a
test byte [ebx + 0x40], 0x20
je 0x1007496a
push 0x20
push edi
mov ecx, ebx
call fcn.100737dc
pop ecx
pop ecx
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
or byte [edi + 4], 2
call fcn.1006faa4
mov esi, dword [ebp + 8]
lea ebx, [esi + 8]
push ebx
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x48]
xor eax, eax
cmp byte [ebp - 2], al
setne al
dec eax
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.1007164a
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push ebx
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.1006fb36
mov eax, dword [edi + 0x28]
mov dword [eax + 0xc], 0x57414b45
and byte [edi + 4], 0xfd
add esp, 0x24
cmp byte [ebp - 2], 0
jne 0x100749ef
test byte [esi + 0x40], 0x40
je 0x100749ef
push 0x40
push edi
mov ecx, esi
call fcn.100737dc
pop ecx
pop ecx
mov ebx, esi
cmp byte [ebp - 4], 0
mov eax, dword [edi + 0x28]
mov dword [eax + 0xc], 0x57414b45
je 0x10074ab5
lea esi, [ebx + 8]
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov eax, dword [ebx + 0x4c]
pop ecx
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x10074a41
call eax
jmp 0x10074a68
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax + 8], ecx
jne 0x10074a39
cmp dword [eax + 0xc], ecx
je 0x10074921
mov byte [ebp - 2], cl
jmp 0x10074927
push 3
push ecx
push ecx
push ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10074a68
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
or byte [edi + 4], 2
push esi
mov byte [ebp - 1], 1
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
mov ecx, dword [ebp - 0x10]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x14]
call fcn.1007164a
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
add esp, 0x28
and byte [edi + 4], 0xfd
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10074b94
mov eax, dword [edi + 0x20]
cmp ecx, eax
jne 0x10074ad3
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x10074b94
cmp ecx, dword [ebx + 0x44]
jne 0x10074b06
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edi
call fcn.1007460b
mov ebx, dword [ebp + 8]
add esp, 0xc
test al, al
jne 0x10074b94
call fcn.100714a9
jmp 0x10074b94
cmp ecx, dword [ebp - 8]
jne 0x10074b61
lea esi, [ebx + 8]
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_unlock
push 0
push 6
push 4
call sym.CoreFoundation.dll__CFSetTSD
call sym.CoreFoundation.dll__CFAutoreleasePoolPush
mov dword [ebp - 0x10], eax
call dword [0x101812cc]
push dword [ebp - 0x10]
call sym.CoreFoundation.dll__CFAutoreleasePoolPop
push 0
push 0
push 4
call sym.CoreFoundation.dll__CFSetTSD
lea eax, [edi + 8]
push eax
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
push esi
call sym.CoreFoundation.dll__NS_pthread_mutex_lock
add esp, 0x2c
mov byte [ebp - 3], 1
jmp 0x10074b90
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10074b73
push ecx
push eax
call sym.CoreFoundation.dll_CFDictionaryGetValue
pop ecx
pop ecx
jmp 0x10074b75
xor eax, eax
test eax, eax
je 0x10074b94
push ebx
push edi
mov esi, eax
call fcn.1007408e
pop ecx
pop ecx
test al, al
jne 0x10074b90
cmp byte [ebp - 1], al
mov byte [ebp - 1], al
je 0x10074b94
mov byte [ebp - 1], 1
mov eax, ebx
mov esi, edi
call fcn.10070eff
cmp byte [ebp - 1], 0
je 0x10074ba9
cmp byte [ebp + 0x14], 0
jne 0x10074bed
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x2c]
jl 0x10074bf1
jg 0x10074bc8
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x30]
jb 0x10074bf1
mov eax, dword [edi + 0x28]
mov eax, dword [eax + 8]
test eax, eax
jne 0x10074bf5
cmp byte [ebx + 0x24], al
jne 0x10074c01
push edi
mov esi, ebx
call fcn.10073342
pop ecx
test al, al
je 0x100748bd
xor esi, esi
inc esi
jmp 0x10074c08
push 4
jmp 0x10074c07
push 3
jmp 0x10074c07
mov eax, dword [edi + 0x28]
mov dword [eax + 8], 0
jmp 0x10074c05
mov byte [ebx + 0x24], 0
push 2
pop esi
cmp dword [ebp - 0xc], 0
je 0x10074c23
push dword [ebp - 0xc]
call dword [0x101812d0]
push dword [ebp - 0xc]
call dword [0x101812d4]
pop ecx
jmp 0x10074c2c
push dword [ebp - 0x18]
call dword [0x10181098]
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret