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

Disassembly:
sub esp, 0x80c
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 0x124]
mov eax, dword [ebx + 0x1eb8]
sub eax, dword [ebx + 0x1eb4]
mov ebp, dword [esi + 0xc]
add eax, 2
push edi
push eax
lea ecx, [ebx + 0x1cb4]
mov eax, 0x3c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
call fcn.0041fff0
mov eax, dword [ebx + 0x1eb4]
movzx ecx, byte [eax]
inc eax
add esp, 4
mov dword [ebx + 0x1eb4], eax
cmp ecx, 0x18
je 0x42085c
cmp ecx, 0x23
je 0x4207df
cmp ecx, 0x27
jne 0x4208ee
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea ecx, [esp + 0x2c]
push 0x800
push ecx
call fcn.00419370
mov ebx, dword [ebx + 0x1cb0]
add esp, 0x1c
mov edi, 4
test ebx, ebx
je 0x420785
mov ebp, dword [sym.imp.MSVCR100.dll_strchr]
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420710
sub eax, esi
lea eax, [eax + edi + 1]
cmp eax, 0x7fa
jae 0x42077a
push 0x2c
push edx
call ebp
add esp, 8
test eax, eax
jne 0x420750
mov ecx, dword [ebx]
push ecx
push eax
mov edx, 0x800
push str._c_s
sub edx, edi
push edx
lea eax, [esp + edi + 0x28]
push eax
call fcn.00419370
add esp, 0x14
jmp 0x420778
mov edx, dword [ebx]
mov ecx, eax
inc eax
push eax
push 1
push edx
sub ecx, edx
push ecx
push 0
mov ecx, 0x800
push str._c_.s_c_s
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x34]
push edx
call fcn.00419370
add esp, 0x20
add edi, eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x420706
mov ebp, dword [esp + 0x14]
push pe_nt_image_headers32
push 0xff
mov eax, 0x800
push str._c_c
sub eax, edi
push eax
lea ecx, [esp + edi + 0x28]
push ecx
call fcn.00419370
mov eax, dword [ebp + 0x120]
add esp, 0x14
push 0
add edi, 2
push edi
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4208d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
jmp 0x4208cd
lea ecx, [ebx + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4207f0
push pe_nt_image_headers32
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea edx, [esp + 0x38]
sub eax, esi
push 0x800
push edx
lea edi, [eax + 6]
call fcn.00419370
mov ecx, dword [ebp + 0x120]
add esp, 0x28
push 0
push edi
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4208d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
jmp 0x4208cd
lea ecx, [ebx + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x420867
push pe_nt_image_headers32
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 edi, [eax + 6]
lea eax, [esp + 0x38]
push 0x800
push eax
call fcn.00419370
mov edx, dword [ebp + 0x120]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4208d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00413f30
add esp, 0xc
mov esi, dword [esp + 0x10]
add edi, 0xfffffffe
push edi
lea ecx, [esp + 0x1e]
mov eax, 0x3e
call fcn.0041fff0
add esp, 4
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c7a4
add esp, 0x80c
ret