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

Disassembly:
jmp 0x1007d135
mov edx, dword [esp + 8]
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test edx, edx
je 0x1007d40f
mov al, byte [esi + 4]
test al, 0x10
je 0x1007d40f
cmp dword [esi + 0x28], 0
jle 0x1007d40f
push ebx
mov bl, al
xor bh, bh
movzx eax, al
xor cl, cl
and eax, 0xf
mov dword [esp + 0xc], ecx
and bl, 3
mov byte [esp + 0x1c], bh
and edx, eax
cmp byte [esp + 0x20], bh
je 0x1007d191
mov ecx, dword [esi + 8]
mov al, dl
shr ecx, 8
not al
and cl, al
mov byte [esi + 9], cl
mov ecx, dword [esp + 0xc]
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
push edi
mov edi, 0x10000
cmp bl, 2
je 0x1007d1ae
cmp dword [esi + 0x18], eax
je 0x1007d1b1
cmp dword [esi + 0x18], 5
je 0x1007d1b1
or dword [esi + 8], edi
mov eax, dword [esi + 8]
test edi, eax
jne 0x1007d1c8
test dl, 4
je 0x1007d1c8
test eax, 0x400
jne 0x1007d1de
mov bh, 1
jmp 0x1007d1de
test dl, 8
je 0x1007d1de
test eax, 0x800
movzx ecx, cl
cmove ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
test bl, bl
je 0x1007d1f6
test dl, bl
je 0x1007d1f6
test eax, 0x100
jne 0x1007d1f6
xor eax, eax
inc eax
mov byte [esp + 0x20], al
jmp 0x1007d202
test cl, cl
jne 0x1007d202
test bh, bh
je 0x1007d40d
push ebp
push 0x10189aec
call sym.CoreFoundation.dll___CFSpinLock
cmp byte [esp + 0x18], 0
pop ecx
jne 0x1007d21d
test bh, bh
je 0x1007d307
mov bl, byte [esp + 0x28]
test bl, bl
je 0x1007d255
push dword [0x10189af4]
call sym.CoreFoundation.dll_CFArrayGetCount
push esi
push eax
push 0
push dword [0x10189af4]
call sym.CoreFoundation.dll_CFArrayGetFirstIndexOfValue
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1007d255
push esi
push dword [0x10189af4]
call sym.CoreFoundation.dll_CFArrayAppendValue
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
mov ebp, dword [0x10189afc]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1007d30b
push ebp
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
push ebp
mov edi, eax
call sym.CoreFoundation.dll_CFDataGetLength
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1007d29e
push edi
push dword [esp + 0x18]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1007d307
test ebx, ebx
jle 0x1007d29e
mov eax, dword [edi]
lea eax, [eax*4 + 8]
jmp 0x1007d2a3
mov eax, 0x1004
cmp eax, ebx
jle 0x1007d2bb
sub eax, ebx
push eax
push ebp
call sym.CoreFoundation.dll_CFDataIncreaseLength
push ebp
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
add esp, 0xc
mov edi, eax
mov edx, dword [esp + 0x14]
xor eax, eax
cmp eax, dword [edi]
jae 0x1007d2d6
lea ecx, [edi + 4]
cmp dword [ecx], edx
je 0x1007d2d4
inc eax
add ecx, 4
cmp eax, dword [edi]
jb 0x1007d2c8
cmp eax, dword [edi]
jne 0x1007d2e6
cmp dword [edi], 0x400
jae 0x1007d2e6
mov dword [edi + eax*4 + 4], edx
inc dword [edi]
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x1007d307
xor ecx, ecx
mov byte [esp + 0x13], 0x77
push 0
inc ecx
push ecx
lea ecx, [esp + 0x1b]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov bl, byte [esp + 0x28]
cmp byte [esp + 0x24], 0
je 0x1007d401
test bl, bl
je 0x1007d34a
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
cmp eax, 0xffffffff
jne 0x1007d34a
push esi
push dword [0x10189af8]
call sym.CoreFoundation.dll_CFArrayAppendValue
pop ecx
pop ecx
mov ebp, dword [esi + 0x14]
xor eax, eax
mov ebx, dword [0x10189b00]
inc eax
mov byte [0x101790fc], al
mov dword [esp + 0x24], ebx
cmp ebp, 0xffffffff
je 0x1007d401
push ebx
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
push ebx
mov edi, eax
call sym.CoreFoundation.dll_CFDataGetLength
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1007d398
push edi
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1007d401
test ebx, ebx
jle 0x1007d398
mov eax, dword [edi]
lea eax, [eax*4 + 8]
jmp 0x1007d39d
mov eax, 0x1004
cmp eax, ebx
jle 0x1007d3b9
mov edi, dword [esp + 0x24]
sub eax, ebx
push eax
push edi
call sym.CoreFoundation.dll_CFDataIncreaseLength
push edi
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
add esp, 0xc
mov edi, eax
xor eax, eax
cmp eax, dword [edi]
jae 0x1007d3d0
lea ecx, [edi + 4]
cmp dword [ecx], ebp
je 0x1007d3ce
inc eax
add ecx, 4
cmp eax, dword [edi]
jb 0x1007d3c2
cmp eax, dword [edi]
jne 0x1007d3e0
cmp dword [edi], 0x400
jae 0x1007d3e0
mov dword [edi + eax*4 + 4], ebp
inc dword [edi]
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x1007d401
xor ecx, ecx
mov byte [esp + 0x24], 0x72
push 0
inc ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x10189aec
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
pop ebp
pop edi
pop ebx
lea eax, [esi + 0xc]
push eax
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
pop esi
add esp, 0xc
ret