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

Disassembly:
jmp 0x100807f0
push ecx
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push esi
call sym.CoreFoundation.dll_CFRetain
mov dword [esp], 0x10189ae4
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 0x10080ab1
push ebp
push edi
and al, 0x8f
push 0x10189aec
mov byte [esi + 4], al
call sym.CoreFoundation.dll___CFSpinLock
push dword [0x10189af4]
call sym.CoreFoundation.dll_CFArrayGetCount
push esi
push eax
push 0
push dword [0x10189af4]
call sym.CoreFoundation.dll_CFArrayGetFirstIndexOfValue
add esp, 0x18
test eax, eax
js 0x100808ed
push eax
push dword [0x10189af4]
call sym.CoreFoundation.dll_CFArrayRemoveValueAtIndex
mov ebx, dword [esi + 0x14]
mov ebp, dword [0x10189afc]
pop ecx
pop ecx
cmp ebx, 0xffffffff
je 0x100808ed
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 0x100808ed
push edi
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100808ed
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x100808ce
lea eax, [edi + 4]
cmp dword [eax], ebx
je 0x100808aa
inc ecx
add eax, 4
cmp ecx, edx
jb 0x1008089c
jmp 0x100808ce
lea eax, [edx - 1]
cmp ecx, eax
jae 0x100808c9
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 0x100808b7
lea eax, [edx - 1]
mov dword [edi], eax
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x100808ed
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 [0x10189af8]
call sym.CoreFoundation.dll_CFArrayGetCount
push esi
push eax
push 0
push dword [0x10189af8]
call sym.CoreFoundation.dll_CFArrayGetFirstIndexOfValue
add esp, 0x14
test eax, eax
js 0x100809b0
push eax
push dword [0x10189af8]
call sym.CoreFoundation.dll_CFArrayRemoveValueAtIndex
mov ebx, dword [esi + 0x14]
mov ebp, dword [0x10189b00]
mov byte [0x101790fc], 1
pop ecx
pop ecx
cmp ebx, 0xffffffff
je 0x100809b0
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 0x100809b0
push edi
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100809b0
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x10080991
lea eax, [edi + 4]
cmp dword [eax], ebx
je 0x1008096d
inc ecx
add eax, 4
cmp ecx, edx
jb 0x1008095f
jmp 0x10080991
lea eax, [edx - 1]
cmp ecx, eax
jae 0x1008098c
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 0x1008097a
lea eax, [edx - 1]
mov dword [edi], eax
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x100809b0
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 [0x10189af0]
push 0x10189aec
call sym.CoreFoundation.dll___CFSpinUnlock
push dword [esi + 0x14]
push dword [0x10189ae8]
call sym.CoreFoundation.dll_CFDictionaryRemoveValue
add esp, 0xc
test byte [esi + 8], 0x80
je 0x100809df
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x14], 0xffffffff
cmp dword [esi + 0x24], 0
je 0x100809f6
push dword [esi + 0x24]
call sym.CoreFoundation.dll_CFRelease
and dword [esi + 0x24], 0
pop ecx
cmp dword [esi + 0x4c], 0
je 0x10080a09
push dword [esi + 0x4c]
call sym.CoreFoundation.dll_CFRelease
and dword [esi + 0x4c], 0
pop ecx
cmp dword [esi + 0x50], 0
je 0x10080a1c
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 0x10080a82
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 0x10080a71
push ebp
call sym.CoreFoundation.dll_CFRelease
mov eax, dword [esp + 0x20]
pop ecx
pop edi
pop ebp
test eax, eax
je 0x10080a9e
push dword [esp + 0xc]
call eax
pop ecx
test ebx, ebx
je 0x10080ab8
push ebx
call sym.CoreFoundation.dll_CFRunLoopSourceInvalidate
push ebx
call sym.CoreFoundation.dll_CFRelease
pop ecx
jmp 0x10080ab7
push ebx
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
push 0x10189ae4
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