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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 3
push 0x306
push str.Socket_putdatas
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0xffffffea
mov dword [ebp - 0x50], esi
call fcn.101a4960
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0x101a7000
push eax
push dword [0x104eacc4]
mov dword [ebp - 0x48], edi
call fcn.10197c90
add esp, 0x18
test eax, eax
je 0x1019940e
push edi
push str.Trying_to_write_to_socket__d_for_which_there_is_already_pending_output
push 0xffffffffffffffff
push 6
call fcn.101a2220
add esp, 0x10
mov dword [ebp - 0x44], 0xffffffff
jmp 0x101995e8
mov edx, dword [ebp - 0x60]
xor ecx, ecx
push ebx
mov ebx, dword [ebp - 0x68]
test ebx, ebx
jle 0x1019948d
cmp ebx, 8
jb 0x1019947e
mov eax, ebx
and eax, reloc.WS2_32.dll_getsockopt
jns 0x1019942e
dec eax
or eax, 0xfffffff8
inc eax
mov esi, ebx
xorps xmm2, xmm2
sub esi, eax
movaps xmm1, xmm2
nop dword [eax + eax]
movups xmm0, xmmword [edx + ecx*4]
paddd xmm2, xmm0
movups xmm0, xmmword [edx + ecx*4 + 0x10]
add ecx, 8
paddd xmm1, xmm0
cmp ecx, esi
jl 0x10199440
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd esi, xmm1
add esi, dword [ebp + 0x10]
mov dword [ebp - 0x50], esi
cmp ecx, ebx
jge 0x1019948d
add esi, dword [edx + ecx*4]
inc ecx
cmp ecx, ebx
jl 0x10199482
mov dword [ebp - 0x50], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 1
test ebx, ebx
jle 0x101994ce
mov esi, dword [ebp - 0x5c]
lea edi, [ebp - 0x14]
mov ecx, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x64]
sub esi, edx
xor ecx, ecx
mov eax, dword [esi + edx]
lea edx, [edx + 4]
mov dword [ebp + ecx*8 - 0x34], eax
mov eax, dword [edx - 4]
mov dword [ebp + ecx*8 - 0x38], eax
inc ecx
cmp ecx, ebx
jl 0x101994b5
mov edi, dword [ebp + 8]
push 3
push 0x2ba
push str.Socket_writev
call fcn.101a4960
add esp, 0xc
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebx + 1]
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x1019952e
push edi
push str.WSASend___putdatas
call fcn.10198870
mov ecx, dword [ebp - 0x48]
add esp, 8
cmp eax, 0x2733
mov edx, 0xffffffea
cmove ecx, edx
mov dword [ebp - 0x48], ecx
push 3
lea eax, [ebp - 0x48]
push eax
push 0x2ee
push str.Socket_writev
call fcn.101a4a10
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x101995e7
mov esi, dword [ebp - 0x50]
cmp dword [ebp - 0x4c], esi
jne 0x10199569
mov dword [ebp - 0x44], 0
jmp 0x101995e7
push 4
push 0x321
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcSocket.c
call fcn.101a4e30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x101995d7
push edi
push esi
push dword [ebp - 0x4c]
push str.Partial_write:__lu_bytes_of__lu_actually_written_on_socket__d
push 0xffffffffffffffff
push 3
call fcn.101a2220
push dword [ebp - 0x4c]
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
push 0
push edi
call fcn.101a6cf0
push 4
mov dword [ebx], edi
push ebx
push dword [0x104eacc4]
call fcn.10197af0
add esp, 0x40
test eax, eax
jne 0x101995e0
push ebx
push 0x332
push str.C:UserschDownloadspaho.mqtt.c_1.3.12_srcSocket.c
call fcn.101a4dd0
add esp, 0xc
mov dword [ebp - 0x44], 0xffffff9d
jmp 0x101995e7
mov dword [ebp - 0x44], 0xffffffea
pop ebx
push 3
lea eax, [ebp - 0x44]
push eax
push 0x33d
push str.Socket_putdatas
call fcn.101a4a10
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x44]
xor ecx, ebp
pop edi
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret