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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
test byte [0x103a4fc], 4
mov dword [ebp - 4], 0xffffffff
je 0x1027f59
mov eax, dword [0x103b284]
test eax, eax
je 0x1027f59
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x103b284]
push ecx
push ebx
push edx
lea eax, [ebp - 4]
push eax
call fcn.01024f00
add esp, 0x10
mov edx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [edx + 0x14], esi
push edi
je 0x102814a
cmp ebx, esi
je 0x102814a
cmp dword [ebp + 0xc], esi
je 0x102814a
cmp word [edx + 0x18], 0x17
lea edi, [edx + 0x18]
mov dword [ebp - 0xc], esi
jne 0x1027f8f
lea ecx, [edi + 8]
mov dword [ebp - 8], ecx
jmp 0x1027f95
lea eax, [edi + 4]
mov dword [ebp - 8], eax
test byte [0x103a4fc], 2
je 0x1027fd2
cmp dword [ebp + 0xc], esi
jbe 0x1027fd2
test byte [0x103a4fc], 2
je 0x1027fca
mov ecx, dword [ebx + esi*8]
mov edx, dword [ebx + esi*8 + 4]
push 0
push ecx
mov ecx, dword [0x10390bc]
push edx
push 0x10
call fcn.01024e00
mov edx, dword [ebp + 8]
add esp, 0x10
add esi, 1
cmp esi, dword [ebp + 0xc]
jb 0x1027fa3
mov ecx, dword [ebp - 8]
mov dword [edx + 0x9c], 1
movzx eax, word [edi]
cmp ax, 0x17
je 0x10280c4
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
sete dl
test dl, dl
jne 0x10280cc
mov edx, dword [ebp + 8]
and ecx, 0xf0
cmp cl, 0xe0
sete cl
test cl, cl
jne 0x10280cc
mov ecx, dword [edx + 0x14]
mov ecx, dword [ecx]
sub ax, 2
neg ax
push 0
push edx
lea edx, [ebp - 0xc]
sbb eax, eax
and eax, 0xc
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
push edi
push 0
push edx
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x102814a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x102814a
test byte [0x103a4fc], 2
je 0x102809c
mov ecx, dword [0x103b3f8]
test ecx, ecx
je 0x102809c
push 0x101a378
call esi
mov edx, dword [0x103b3f8]
push eax
mov eax, dword [0x103b1e4]
push edx
push 0x73400
push eax
call fcn.01024ec0
add esp, 0x14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, 8
push edx
push 0x10
push 0xc04e0008
call fcn.010240e0
lea eax, [ebp - 4]
call fcn.0101f470
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [ecx], 0xff
jmp 0x1028008
test byte [0x103a4fc], 2
je 0x1028118
mov eax, dword [0x103b3f4]
test eax, eax
je 0x10280fa
mov ecx, dword [0x103b3f4]
mov edx, dword [0x103b1e0]
push edi
push ecx
push 0x6c800
push edx
call fcn.01024ec0
add esp, 0x10
test byte [0x103a4fc], 2
je 0x1028118
mov ecx, dword [0x10390bc]
push 0
push 0x10
push edi
push 0x10
call fcn.01024e00
add esp, 0x10
cmp dword [ebp - 4], 0xffffffff
je 0x1028140
test byte [0x103a4fc], 4
je 0x1028140
mov eax, dword [0x10390bc]
cmp eax, 0xffffffff
je 0x1028140
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push eax
call dword [0x103908c]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 4], 0xffffffff
je 0x1028172
test byte [0x103a4fc], 4
je 0x1028172
mov eax, dword [0x10390bc]
cmp eax, 0xffffffff
je 0x1028172
lea edx, [ebp - 4]
push edx
push 0
push 0
push eax
call dword [0x103908c]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8