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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
mov eax, dword [ebx + 0x8c]
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
test esi, esi
jne 0x100a1cf2
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x100a1cbc
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100a1aaa
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a1a96
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
jmp 0x100a1aac
xor edi, edi
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x100a1abb
mov eax, 0x10
jmp 0x100a1ac9
cmp eax, 0x17
jne 0x100a1ca9
mov eax, 0x1c
cmp dword [ebx + 0x18], 0
mov dword [esp + 0x10], eax
je 0x100a1ca9
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100a1ca9
cmp ecx, eax
jb 0x100a1ca9
add eax, 0x20
add eax, edi
push eax
call dword [section..data]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x100a1cce
mov ecx, dword [ebx]
mov dword [esi], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x20]
push ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
je 0x100a1c8b
mov edx, dword [esp + 0x10]
xor eax, eax
add edx, dword [esi + 0x18]
mov dword [esi + 0x14], edx
test edi, edi
je 0x100a1c84
cmp edi, 4
jb 0x100a1c73
mov ecx, dword [ebx + 0x14]
lea esi, [edx - 1]
mov dword [esp + 0x10], ecx
add esi, edi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x14]
lea ecx, [ecx + edi*2]
add ecx, 0xfffffffe
cmp edx, ecx
lea ecx, [edx - 1]
ja 0x100a1b99
add ecx, edi
cmp ecx, dword [esp + 0x10]
jae 0x100a1c73
jmp 0x100a1b9b
add ecx, edi
cmp edx, dword [esp + 0x18]
ja 0x100a1bab
cmp ecx, dword [esp + 0x18]
jae 0x100a1c73
lea ecx, [esi + 0x14]
cmp edx, ecx
ja 0x100a1bbc
cmp dword [esp + 0x24], ecx
jae 0x100a1c73
movups xmm1, xmmword [0x100f8ce0]
cmp edi, 0x20
jb 0x100a1c40
mov ecx, edi
mov esi, edi
and ecx, 0x1f
sub esi, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
mov ecx, 0x20
mov esi, dword [esp + 0x10]
movups xmm0, xmmword [ecx + esi - 0x20]
lea ecx, [ecx + 0x40]
andps xmm0, xmm1
packuswb xmm0, xmm0
movq qword [edx + eax], xmm0
movups xmm0, xmmword [ecx + esi - 0x50]
andps xmm0, xmm1
packuswb xmm0, xmm0
movq qword [edx + eax + 8], xmm0
movups xmm0, xmmword [ecx + esi - 0x40]
andps xmm0, xmm1
packuswb xmm0, xmm0
movq qword [edx + eax + 0x10], xmm0
movups xmm0, xmmword [ecx + esi - 0x30]
andps xmm0, xmm1
packuswb xmm0, xmm0
movq qword [edx + eax + 0x18], xmm0
add eax, 0x20
cmp eax, dword [esp + 0x24]
jb 0x100a1be2
cmp dword [esp + 0x18], 4
mov esi, dword [esp + 0x14]
jb 0x100a1c6f
mov ecx, dword [esi + 0x14]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, edi
mov esi, dword [esp + 0x24]
and ecx, 0xfffffffc
movq xmm0, qword [edx + eax*2]
andps xmm0, xmm1
packuswb xmm0, xmm0
movd dword [esi + eax], xmm0
add eax, 4
cmp eax, ecx
jb 0x100a1c53
mov esi, dword [esp + 0x14]
cmp eax, edi
jae 0x100a1c84
mov ecx, dword [ebx + 0x14]
mov edx, dword [esi + 0x14]
mov cl, byte [ecx + eax*2]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x100a1c73
mov eax, dword [esi + 0x14]
mov byte [edi + eax], 0
mov edi, dword [esp + 0xc]
test edi, edi
mov eax, dword [esp + 0x1c]
cmove edi, esi
mov dword [esp + 0xc], edi
test eax, eax
je 0x100a1ca3
mov dword [eax + 0x1c], esi
mov dword [esp + 0x1c], esi
jmp 0x100a1cad
mov edi, dword [esp + 0xc]
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x100a1a85
test edi, edi
jne 0x100a1ce7
mov esi, 0x2af9
push esi
mov dword [esp + 0x30], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x100a1ceb
push dword [esp + 0xc]
mov esi, 8
mov dword [esp + 0x30], esi
call fcn.100c0040
add esp, 4
xor edi, edi
jmp 0x100a1ceb
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov dword [ebx + 0x68], edi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100a1d07
push eax
call dword [0x10255c38]
mov dword [ebx + 0x14], 0
test esi, esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x100a1d30
call esi
test eax, eax
je 0x100a1d29
call esi
mov dword [ebx + 0x64], eax
test eax, eax
jne 0x100a1d30
mov dword [ebx + 0x64], 8
jmp 0x100a1d30
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x64], eax
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x4c], 0
je 0x100a1db1
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x100a1d62
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [ebx + 0x48]
call dword [0x10173004]
add esp, 4
push dword [ebx + 0x54]
call dword [0x10173004]
mov eax, dword [ebx + 0x68]
add esp, 4
test eax, eax
je 0x100a1d7e
push eax
call fcn.100c0040
add esp, 4
mov eax, dword [ebx + 0x60]
cmp eax, 0xffffffff
je 0x100a1d8d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x90
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x10173004]
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
mov eax, dword [ebx + 0x60]
cmp eax, 0xffffffff
je 0x100a1dd7
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100a1dd7
call esi
mov dword [ebx + 0x64], eax
push dword [ebx + 0x48]
mov dword [ebx + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x100a1df8
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc