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

Disassembly:
mov eax, 0x4190a0
call fcn.00417ad0
sub esp, 0x6d4
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [eax - 8]
inc eax
cmp dword [esi + 8], ebx
mov dword [ebp - 0x10], eax
je 0x40eca6
cmp eax, 0x358
ja 0x40eca6
push 0x600
lea eax, [ebp - 0x6e0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0x6dc]
push eax
mov dword [ebp - 0x6e0], 0x6f
call sub.MSVCRT.dll_memcpy
push 0x38
lea eax, [ebp - 0x670]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x638]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x2c
cmp dword [ebp + 0x14], ebx
jne 0x40ea94
xor eax, eax
lea edi, [ebp - 0x4e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
push 0x11d7
mov word [ebp - 0x50], 2
mov dword [ebp - 0x4c], eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x4e], ax
mov dword [ebp - 0x6e0], 0x79
call sub.MSVCRT.dll_strlen
inc eax
push eax
lea eax, [ebp - 0x638]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x629]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x18
lea eax, [ebp - 0x50]
push 0x10
push eax
push ebx
jmp 0x40ec77
mov dword [esi + 0xb4], ebx
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x60], 0
je 0x40eb0e
xor eax, eax
lea edi, [ebp - 0x5e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [ebx + 0x64]
mov word [ebp - 0x60], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x5e], ax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push 0x10
push eax
mov eax, dword [ebp - 0x10]
xor edi, edi
add eax, 0xa8
push edi
push eax
lea eax, [ebp - 0x6e0]
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [esi + 0xb4], 0
jne 0x40ec95
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x40eaf0
and dword [ebx + 0x60], 0
lea eax, [esi + 0xc]
push 0x6c
push eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe0], 0x6d
push eax
call sub.MSVCRT.dll_memcpy
push ebx
call sub.MSVCRT.dll_strlen
inc eax
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
and dword [ebp + 0x10], 0
add esp, 0x1c
stosd dword es:[edi], eax
cmp byte [ebx + 0x5c], 0
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x20], 2
jbe 0x40ebac
mov eax, dword [ebp - 0x10]
lea edi, [ebx + 0x38]
add eax, 0xa8
mov dword [ebp + 0x14], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x1c], eax
mov ax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0
lea eax, [ebp - 0x6e0]
push dword [ebp + 0x14]
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
movzx eax, byte [ebx + 0x5c]
inc dword [ebp + 0x10]
add edi, 8
cmp dword [ebp + 0x10], eax
jl 0x40eb6b
xor eax, eax
lea edi, [ebp - 0x2e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
push 0x11d7
mov word [ebp - 0x30], 2
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
xor edi, edi
push eax
push edi
lea eax, [ebp - 0xe0]
push 0x7f
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
cmp dword [ebx + 0x60], 0
jne 0x40ec09
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x40ebf2
inc dword [ebp + 8]
cmp dword [ebp + 8], 5
jl 0x40eaa0
xor eax, eax
lea edi, [ebp - 0x3e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xac]
push 0x11d7
mov word [ebp - 0x40], 2
mov dword [ebp - 0x3c], eax
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x3e], ax
mov dword [ebp - 0x6e0], 0x79
call sub.MSVCRT.dll_strlen
inc eax
push eax
lea eax, [ebp - 0x638]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x629]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x18
lea eax, [ebp - 0x40]
push 0x10
push eax
push 0
mov eax, dword [ebp - 0x10]
add eax, 0xb7
push eax
lea eax, [ebp - 0x6e0]
push eax
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x40ecb9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x40ecc7
push 0x30
push 0x4221ac
push 0x422644
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10