Function at 0x41d4b0
Capabilities:
Check for time delay via queryperformancecounter
Connect socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4ae6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 1
movzx eax, byte [ebp + 0x1c]
cmp eax, 1
jne 0x41d4f5
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp + 0x14], 0
je 0x41d529
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x30], 0xfffffc19
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x41d588
cmp dword [ebp - 8], 0
jne 0x41d588
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x41d6d5
mov dword [ebp - 0x38], 0x49dd38
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0x3e8
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
jne 0x41d6bd
cmp dword [0x4b6050], 0
jne 0x41d6bd
cmp dword [ebp + 0x10], 0
jne 0x41d5d5
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x2c], eax
jmp 0x41d5ec
push 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x34]
jne 0x41d617
cmp dword [ebp + 0x10], 1
jne 0x41d617
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
jmp 0x41d6d5
cmp dword [ebp - 0x2c], 0
jne 0x41d640
cmp dword [ebp + 0x10], 0
jne 0x41d640
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
jmp 0x41d6d5
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
sbb edx, dword [ebp - 0xc]
call fcn.00487adf
mulsd xmm0, qword [0x49f618]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x4c], xmm0
call fcn.00487adf
movsd xmm1, qword [ebp - 0x4c]
divsd xmm1, xmm0
movsd qword [ebp - 0x40], xmm1
cvtsi2sd xmm0, dword [ebp + 0xc]
movsd xmm1, qword [ebp - 0x40]
comisd xmm1, xmm0
jb 0x41d697
mov byte [ebp - 0x25], 1
jmp 0x41d6b8
movsd xmm0, qword [0x49f610]
comisd xmm0, xmmword [ebp - 0x40]
jbe 0x41d6b0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d6b8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d5a1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c12e
mov esp, ebp
pop ebp
ret