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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov ebx, dword [esi + 0x128]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
lea ecx, [ebx + 0x1cb0]
add eax, 2
push eax
push ecx
push 0x3c
mov dword [ebp - 4], esi
call fcn.10212c80
mov eax, dword [ebx + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0xc
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x10213437
cmp ecx, 0x23
je 0x1021339c
cmp ecx, 0x27
jne 0x102134cb
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea edx, [ebp - 0x904]
push 0x800
push edx
call fcn.10206140
mov esi, dword [ebx + 0x1cac]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x1021331d
jmp 0x102132b0
mov edx, dword [esi]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102132b7
sub eax, ebx
lea ebx, [eax + edi + 1]
cmp ebx, 0x7fa
jae 0x10213316
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x104]
push ecx
push str._127_____127s
push edx
call fcn.1023553e
lea edx, [ebp - 0x84]
push edx
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov ecx, 0x800
push str._c_s_c_s
sub ecx, edi
push ecx
lea edx, [ebp + edi - 0x904]
push edx
call fcn.10206140
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x102132b0
push 0xf0
push 0xff
mov eax, 0x800
push 0x102aa4b0
sub eax, edi
push eax
lea ecx, [ebp + edi - 0x904]
push ecx
call fcn.10206140
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
add esp, 0x14
push 0
add edi, 2
push edi
lea edx, [ebp - 0x904]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1021337d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 4]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.101fa7b0
add esp, 0xc
mov esi, dword [ebp - 4]
add edi, 0xfffffffe
push edi
lea eax, [ebp - 0x902]
push eax
push 0x3e
call fcn.10212c80
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x102133a7
push 0xf0
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea ecx, [ebp - 0x904]
sub eax, esi
push 0x800
push ecx
lea ebx, [eax + 6]
call fcn.10206140
mov eax, dword [edi + 0x150]
add esp, 0x28
push 0
push ebx
lea edx, [ebp - 0x904]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10213418
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.101fa7b0
add esp, 0xc
mov esi, dword [ebp - 4]
add ebx, 0xfffffffe
push ebx
lea edx, [ebp - 0x902]
push edx
push 0x3e
call fcn.10212c80
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10213442
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea ebx, [eax + 6]
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.10206140
mov edx, dword [edi + 0x150]
add esp, 0x28
push 0
push ebx
lea ecx, [ebp - 0x904]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x102134b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.101fa7b0
add esp, 0xc
mov esi, dword [ebp - 4]
add ebx, 0xfffffffe
push ebx
lea ecx, [ebp - 0x902]
push ecx
push 0x3e
call fcn.10212c80
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret