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

Disassembly:
sub esp, 0x90c
mov eax, dword [0x431020]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
mov ebp, dword [esp + 0x918]
push esi
push edi
mov edi, dword [ebp]
mov ebx, dword [edi + 0x8558]
mov eax, dword [ebx + 0x1ab0]
sub eax, dword [ebx + 0x1aac]
lea ecx, [ebx + 0x18ac]
add eax, 2
push eax
push ecx
push 0x3c
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edi
call fcn.00418500
mov eax, dword [ebx + 0x1aac]
movzx ecx, byte [eax]
add eax, 1
add esp, 0xc
cmp ecx, 0x18
mov dword [ebx + 0x1aac], eax
je 0x418bb5
cmp ecx, 0x23
je 0x418b22
cmp ecx, 0x27
jne 0x418c4a
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea edx, [esp + 0x12c]
push 0x800
push edx
call fcn.00413db0
mov edi, dword [ebx + 0x18a8]
add esp, 0x1c
test edi, edi
mov esi, 4
je 0x418aae
mov ebp, dword [0x428250]
lea ebx, [ebx]
mov edx, dword [edi]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x418a47
sub eax, ebx
lea ebx, [eax + esi + 1]
cmp ebx, 0x7fa
jae 0x418aa3
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x9c]
push ecx
push str._127_____127s
push edx
call ebp
lea edx, [esp + 0x28]
push edx
push 1
lea eax, [esp + 0xb0]
push eax
push 0
mov ecx, 0x800
push str._c_s_c_s
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x140]
push edx
call fcn.00413db0
add esp, 0x2c
mov esi, ebx
mov edi, dword [edi + 4]
test edi, edi
jne 0x418a40
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
push 0x42a78c
sub eax, esi
push eax
lea ecx, [esp + esi + 0x128]
push ecx
call fcn.00413db0
mov eax, dword [ebp + 0xd4]
add esp, 0x14
push 0
add esi, 2
push esi
lea edx, [esp + 0x120]
push edx
push eax
call dword [0x4283d0]
test eax, eax
jge 0x418b0d
call dword [0x4283d8]
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.00412850
add esp, 0xc
mov edi, dword [esp + 0x10]
add esi, 0xfffffffe
push esi
lea edx, [esp + 0x11e]
push edx
jmp 0x418c40
lea ecx, [ebx + 0x1828]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x418b30
push 0xf0
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea esi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.00413db0
mov edx, dword [ebp + 0xd4]
add esp, 0x28
push 0
push esi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [0x4283d0]
test eax, eax
jge 0x418ba4
call dword [0x4283d8]
push eax
mov eax, edi
push str.Sending_data_failed___d_
push eax
call fcn.00412850
add esp, 0xc
add esi, 0xfffffffe
push esi
lea ecx, [esp + 0x11e]
push ecx
jmp 0x418c40
lea ecx, [ebx + 0x1808]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x418bc0
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea edx, [esp + 0x138]
sub eax, esi
push 0x800
push edx
lea esi, [eax + 6]
call fcn.00413db0
mov ecx, dword [ebp + 0xd4]
add esp, 0x28
push 0
push esi
lea eax, [esp + 0x120]
push eax
push ecx
call dword [0x4283d0]
test eax, eax
jge 0x418c34
call dword [0x4283d8]
push eax
mov edx, edi
push str.Sending_data_failed___d_
push edx
call fcn.00412850
add esp, 0xc
add esi, 0xfffffffe
push esi
lea eax, [esp + 0x11e]
push eax
push 0x3e
call fcn.00418500
add esp, 0xc
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004072ba
add esp, 0x90c
ret