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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x134]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x1f
je 0x4af30c
jmp 0x4af68f
mov edx, dword [ebp - 0xc]
add edx, 0x1cb4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1eb4], edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x1eb4
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x1eb4], ecx
jae 0x4af353
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
mov byte [ecx], 0xff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1eb4], eax
xor edx, edx
jne 0x4af31e
mov eax, dword [ebp - 0xc]
add eax, 0x1eb4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1eb4], eax
jae 0x4af38b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
mov byte [eax], 0xfa
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1eb4]
add edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1eb4], edx
xor ecx, ecx
jne 0x4af357
mov edx, dword [ebp - 0xc]
add edx, 0x1eb4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1eb4], edx
jae 0x4af3c4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1eb4]
mov byte [edx], 0x1f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1eb4], ecx
xor eax, eax
jne 0x4af38f
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x1ca8]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x1caa]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 8], ax
lea edx, [ebp - 4]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x1eb4
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x1eb4], ecx
jae 0x4af440
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
mov edx, dword [ebp - 0x18]
mov cl, byte [edx + ecx]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1eb4], eax
xor edx, edx
jne 0x4af3fe
mov eax, dword [ebp - 0xc]
add eax, 0x1eb4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1eb4], eax
jae 0x4af485
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
mov eax, dword [ebp - 0x18]
mov dl, byte [eax + edx]
mov byte [ecx], dl
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1eb4], ecx
xor eax, eax
jne 0x4af444
mov ecx, dword [ebp - 0xc]
add ecx, 0x1eb4
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x1eb4], ecx
jae 0x4af4cb
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
mov edx, dword [ebp - 0x1c]
mov cl, byte [edx + ecx]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1eb4], eax
xor edx, edx
jne 0x4af489
mov eax, dword [ebp - 0xc]
add eax, 0x1eb4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1eb4], eax
jae 0x4af510
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
mov eax, dword [ebp - 0x1c]
mov dl, byte [eax + edx]
mov byte [ecx], dl
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1eb4], ecx
xor eax, eax
jne 0x4af4cf
mov ecx, dword [ebp - 0xc]
add ecx, 0x1eb4
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x1eb4], ecx
jae 0x4af549
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
mov byte [ecx], 0xff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1eb4], eax
xor edx, edx
jne 0x4af514
mov eax, dword [ebp - 0xc]
add eax, 0x1eb4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1eb4], eax
jae 0x4af581
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1eb4]
mov byte [eax], 0xf0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1eb4]
add edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1eb4], edx
xor ecx, ecx
jne 0x4af54d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1eb4]
mov dword [edx + 0x1eb8], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x1cb4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1eb4], edx
xor ecx, ecx
jne 0x4af585
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x1eb8]
sub ecx, dword [eax + 0x1eb4]
sub ecx, 2
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x1cb6
push edx
push 0x3e
mov eax, dword [ebp + 8]
push eax
call fcn.004ae630
add esp, 0x10
push 0
push 3
mov ecx, dword [ebp - 0xc]
add ecx, 0x1cb4
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0x148]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4af629
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.Sending_data_failed___d_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0xc
push 4
mov edx, dword [ebp - 0xc]
add edx, 0x1cb7
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004af0f0
add esp, 0xc
push 0
push 2
mov ecx, dword [ebp - 0xc]
add ecx, 0x1cbb
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0x148]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4af68f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.Sending_data_failed___d_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0xc
mov esp, ebp
pop ebp
ret