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

Disassembly:
jmp 0x1007d143
mov edx, dword [esp + 8]
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test edx, edx
je 0x1007d41d
mov al, byte [esi + 4]
test al, 0x10
je 0x1007d41d
cmp dword [esi + 0x28], 0
jle 0x1007d41d
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 0x1007d19f
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 0x1007d1bc
cmp dword [esi + 0x18], eax
je 0x1007d1bf
cmp dword [esi + 0x18], 5
je 0x1007d1bf
or dword [esi + 8], edi
mov eax, dword [esi + 8]
test edi, eax
jne 0x1007d1d6
test dl, 4
je 0x1007d1d6
test eax, 0x400
jne 0x1007d1ec
mov bh, 1
jmp 0x1007d1ec
test dl, 8
je 0x1007d1ec
test eax, 0x800
movzx ecx, cl
cmove ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
test bl, bl
je 0x1007d204
test dl, bl
je 0x1007d204
test eax, 0x100
jne 0x1007d204
xor eax, eax
inc eax
mov byte [esp + 0x20], al
jmp 0x1007d210
test cl, cl
jne 0x1007d210
test bh, bh
je 0x1007d41b
push ebp
push 0x10189afc
call sym.CoreFoundation.dll___CFSpinLock
cmp byte [esp + 0x18], 0
pop ecx
jne 0x1007d22b
test bh, bh
je 0x1007d315
mov bl, byte [esp + 0x28]
test bl, bl
je 0x1007d263
push dword [0x10189b04]
call sym.CoreFoundation.dll_CFArrayGetCount
push esi
push eax
push 0
push dword [0x10189b04]
call sym.CoreFoundation.dll_CFArrayGetFirstIndexOfValue
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1007d263
push esi
push dword [0x10189b04]
call sym.CoreFoundation.dll_CFArrayAppendValue
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
mov ebp, dword [0x10189b0c]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1007d319
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 0x1007d2ac
push edi
push dword [esp + 0x18]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1007d315
test ebx, ebx
jle 0x1007d2ac
mov eax, dword [edi]
lea eax, [eax*4 + 8]
jmp 0x1007d2b1
mov eax, 0x1004
cmp eax, ebx
jle 0x1007d2c9
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 0x1007d2e4
lea ecx, [edi + 4]
cmp dword [ecx], edx
je 0x1007d2e2
inc eax
add ecx, 4
cmp eax, dword [edi]
jb 0x1007d2d6
cmp eax, dword [edi]
jne 0x1007d2f4
cmp dword [edi], 0x400
jae 0x1007d2f4
mov dword [edi + eax*4 + 4], edx
inc dword [edi]
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x1007d315
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 0x1007d40f
test bl, bl
je 0x1007d358
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
cmp eax, 0xffffffff
jne 0x1007d358
push esi
push dword [0x10189b08]
call sym.CoreFoundation.dll_CFArrayAppendValue
pop ecx
pop ecx
mov ebp, dword [esi + 0x14]
xor eax, eax
mov ebx, dword [0x10189b10]
inc eax
mov byte [0x101790fc], al
mov dword [esp + 0x24], ebx
cmp ebp, 0xffffffff
je 0x1007d40f
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 0x1007d3a6
push edi
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1007d40f
test ebx, ebx
jle 0x1007d3a6
mov eax, dword [edi]
lea eax, [eax*4 + 8]
jmp 0x1007d3ab
mov eax, 0x1004
cmp eax, ebx
jle 0x1007d3c7
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 0x1007d3de
lea ecx, [edi + 4]
cmp dword [ecx], ebp
je 0x1007d3dc
inc eax
add ecx, 4
cmp eax, dword [edi]
jb 0x1007d3d0
cmp eax, dword [edi]
jne 0x1007d3ee
cmp dword [edi], 0x400
jae 0x1007d3ee
mov dword [edi + eax*4 + 4], ebp
inc dword [edi]
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x1007d40f
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 0x10189afc
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