Function at 0x10001230
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x100807fe
push ecx
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push esi
call sym.CoreFoundation.dll_CFRetain
mov dword [esp], 0x10189af4
call sym.CoreFoundation.dll___CFSpinLock
lea ebx, [esi + 0xc]
push ebx
call sym.CoreFoundation.dll___CFSpinLock
mov al, byte [esi + 4]
pop ecx
pop ecx
test al, 0x10
je 0x10080abf
push ebp
push edi
and al, 0x8f
push 0x10189afc
mov byte [esi + 4], al
call sym.CoreFoundation.dll___CFSpinLock
push dword [0x10189b04]
call sym.CoreFoundation.dll_CFArrayGetCount
push esi
push eax
push 0
push dword [0x10189b04]
call sym.CoreFoundation.dll_CFArrayGetFirstIndexOfValue
add esp, 0x18
test eax, eax
js 0x100808fb
push eax
push dword [0x10189b04]
call sym.CoreFoundation.dll_CFArrayRemoveValueAtIndex
mov ebx, dword [esi + 0x14]
mov ebp, dword [0x10189b0c]
pop ecx
pop ecx
cmp ebx, 0xffffffff
je 0x100808fb
push ebp
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
push ebp
mov edi, eax
call sym.CoreFoundation.dll_CFDataGetLength
pop ecx
pop ecx
test eax, eax
jle 0x100808fb
push edi
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100808fb
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x100808dc
lea eax, [edi + 4]
cmp dword [eax], ebx
je 0x100808b8
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100808aa
jmp 0x100808dc
lea eax, [edx - 1]
cmp ecx, eax
jae 0x100808d7
lea ebx, [edi + 4]
lea ebx, [ebx + ecx*4]
mov eax, dword [ebx + 4]
inc ecx
mov dword [ebx], eax
lea ebx, [ebx + 4]
mov edx, dword [edi]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x100808c5
lea eax, [edx - 1]
mov dword [edi], eax
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x100808fb
push 0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], 0x78
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
push dword [0x10189b08]
call sym.CoreFoundation.dll_CFArrayGetCount
push esi
push eax
push 0
push dword [0x10189b08]
call sym.CoreFoundation.dll_CFArrayGetFirstIndexOfValue
add esp, 0x14
test eax, eax
js 0x100809be
push eax
push dword [0x10189b08]
call sym.CoreFoundation.dll_CFArrayRemoveValueAtIndex
mov ebx, dword [esi + 0x14]
mov ebp, dword [0x10189b10]
mov byte [0x101790fc], 1
pop ecx
pop ecx
cmp ebx, 0xffffffff
je 0x100809be
push ebp
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
push ebp
mov edi, eax
call sym.CoreFoundation.dll_CFDataGetLength
pop ecx
pop ecx
test eax, eax
jle 0x100809be
push edi
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100809be
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x1008099f
lea eax, [edi + 4]
cmp dword [eax], ebx
je 0x1008097b
inc ecx
add eax, 4
cmp ecx, edx
jb 0x1008096d
jmp 0x1008099f
lea eax, [edx - 1]
cmp ecx, eax
jae 0x1008099a
lea ebx, [edi + 4]
lea ebx, [ebx + ecx*4]
mov eax, dword [ebx + 4]
inc ecx
mov dword [ebx], eax
lea ebx, [ebx + 4]
mov edx, dword [edi]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x10080988
lea eax, [edx - 1]
mov dword [edi], eax
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x100809be
push 0
push 1
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], 0x73
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x10189b00]
push 0x10189afc
call sym.CoreFoundation.dll___CFSpinUnlock
push dword [esi + 0x14]
push dword [0x10189af8]
call sym.CoreFoundation.dll_CFDictionaryRemoveValue
add esp, 0xc
test byte [esi + 8], 0x80
je 0x100809ed
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x14], 0xffffffff
cmp dword [esi + 0x24], 0
je 0x10080a04
push dword [esi + 0x24]
call sym.CoreFoundation.dll_CFRelease
and dword [esi + 0x24], 0
pop ecx
cmp dword [esi + 0x4c], 0
je 0x10080a17
push dword [esi + 0x4c]
call sym.CoreFoundation.dll_CFRelease
and dword [esi + 0x4c], 0
pop ecx
cmp dword [esi + 0x50], 0
je 0x10080a2a
push dword [esi + 0x50]
call sym.CoreFoundation.dll_CFRelease
and dword [esi + 0x50], 0
pop ecx
push dword [esi + 0x30]
and dword [esi + 0x28], 0
call sym.CoreFoundation.dll_CFRetain
push dword [esi + 0x30]
mov ebp, eax
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x2c]
and dword [esi + 0x30], 0
and dword [esi + 0x2c], 0
and dword [esi + 0x3c], 0
and dword [esi + 0x40], 0
and dword [esi + 0x48], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x44]
and dword [esi + 0x44], 0
mov dword [esp + 0x24], eax
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll___CFSpinUnlock
push ebp
call sym.CoreFoundation.dll_CFArrayGetCount
add esp, 0x10
mov edi, eax
jmp 0x10080a90
dec edi
push edi
push ebp
call sym.CoreFoundation.dll_CFArrayGetValueAtIndex
push eax
call sym.CoreFoundation.dll_CFRunLoopWakeUp
add esp, 0xc
test edi, edi
jne 0x10080a7f
push ebp
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [esp + 0x20]
pop ecx
pop edi
pop ebp
test eax, eax
je 0x10080aac
push dword [esp + 0xc]
call eax
pop ecx
test ebx, ebx
je 0x10080ac6
push ebx
call sym.CoreFoundation.dll_CFRunLoopSourceInvalidate
push ebx
call sym.CoreFoundation.dll_CFRelease
pop ecx
jmp 0x10080ac5
push ebx
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
push 0x10189af4
call sym.CoreFoundation.dll___CFSpinUnlock
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop ecx
pop esi
pop ebx
pop ecx
pop ecx
ret