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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x9d3230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7f
lea eax, [ebp - 0x103]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x104], 0
call fcn.009346a0
push 0x7f
lea ecx, [ebp - 0x83]
push 0
push ecx
mov byte [ebp - 0x84], 0
call fcn.009346a0
mov ebx, dword [esi + 0x134]
mov edx, dword [ebx + 0x1eb8]
sub edx, dword [ebx + 0x1eb4]
mov edi, dword [esi + 0xc]
add edx, 2
push edx
lea ecx, [ebx + 0x1cb4]
mov eax, 0x3c
mov dword [ebp - 0x90c], edi
call fcn.0096cb80
mov eax, dword [ebx + 0x1eb4]
movzx ecx, byte [eax]
inc eax
add esp, 0x1c
mov dword [ebx + 0x1eb4], eax
cmp ecx, 0x18
je 0x96d39d
cmp ecx, 0x23
je 0x96d37a
cmp ecx, 0x27
jne 0x96d42d
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0095f1d0
mov ebx, dword [ebx + 0x1cb0]
add esp, 0x1c
mov edi, 4
test ebx, ebx
je 0x96d311
lea esp, [esp]
mov eax, dword [ebx]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x96d255
sub eax, edx
lea ecx, [eax + edi + 1]
cmp ecx, 0x7fa
jae 0x96d306
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x908]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov byte [ebp - 0x84], 0
mov edx, dword [ebx]
push str._127____1____127s
push edx
mov word [ebp - 0x908], 0
call fcn.009937c9
add esp, 0x14
cmp eax, 1
jne 0x96d2d0
lea eax, [ebp - 0x104]
push eax
push 0
mov ecx, 0x800
push str._c_s
sub ecx, edi
push ecx
lea edx, [ebp + edi - 0x904]
push edx
call fcn.0095f1d0
add esp, 0x14
jmp 0x96d304
cmp eax, 2
jl 0x96d306
lea eax, [ebp - 0x84]
push eax
push 1
lea ecx, [ebp - 0x104]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, edi
push edx
lea eax, [ebp + edi - 0x904]
push eax
call fcn.0095f1d0
add esp, 0x1c
add edi, eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x96d250
push 0xf0
push 0xff
mov ecx, 0x800
push str._c_c
sub ecx, edi
push ecx
lea edx, [ebp + edi - 0x904]
push edx
call fcn.0095f1d0
mov ecx, dword [ebp - 0x90c]
mov edx, dword [ecx + 0x148]
add esp, 0x14
push 0
add edi, 2
push edi
lea eax, [ebp - 0x904]
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x96d371
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00955740
add esp, 0xc
add edi, 0xfffffffe
push edi
jmp 0x96d41a
lea ecx, [ebx + 0x1c28]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x96d385
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x96d3be
lea ecx, [ebx + 0x1c08]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x96d3a8
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, ebx
push str._c_c_c_c_s_c_c
lea ebx, [eax + 6]
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0095f1d0
mov edx, dword [edi + 0x148]
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 0x96d416
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00955740
add esp, 0xc
add ebx, 0xfffffffe
push ebx
lea ecx, [ebp - 0x902]
mov eax, 0x3e
call fcn.0096cb80
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00939240
mov esp, ebp
pop ebp
ret