Function at 0x429699
Capabilities:
Check for time delay via gettickcount
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov dword [ebp - 0x304], 0x190
lea eax, [ebp - 0x2f0]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
je 0x4296d3
xor eax, eax
jmp 0x4299cf
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4296f6
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4299cf
push 0xe
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.0042688c
add esp, 0xc
mov word [ebp - 0x24], 6
push 0
call sub.WSOCK32.dll_htons
mov word [ebp - 0x18], ax
mov dword [ebp - 4], 1
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x42974e
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4299cf
push 0xe
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x429777
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4299cf
mov dword [ebp - 4], 1
push 4
lea edx, [ebp - 4]
push edx
push 0x20
push 0xffff
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4297ae
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4299cf
mov dword [ebp - 0x300], 1
lea edx, [ebp - 0x300]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x4297e7
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4299cf
push 0xe
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0042688c
add esp, 0xc
mov word [ebp - 0x14], 6
mov dword [ebp - 0x2fc], 0
jmp 0x429818
mov eax, dword [ebp - 0x2fc]
add eax, 1
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 6
jge 0x42982e
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp + ecx - 0xe], 0xff
jmp 0x429809
push 0x4587
call sub.WSOCK32.dll_htons
mov word [ebp - 8], ax
mov edx, dword [0x4313c8]
mov byte [edx], 0
lea eax, [ebp - 0x160]
push eax
push 0x4313c8
call fcn.00428cf1
add esp, 8
push 0xe
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x135
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0xffffffff
jne 0x42989a
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4299cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x308], eax
mov edx, dword [ebp - 0x308]
add edx, dword [ebp - 0x304]
cmp edx, dword [ebp - 0x30c]
jbe 0x4299cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30c], eax
push 0x125
push 0
lea eax, [ebp - 0x434]
push eax
call fcn.0042688c
add esp, 0xc
mov dword [ebp - 0x2f4], 0xe
lea ecx, [ebp - 0x2f4]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0x125
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_recvfrom
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0xffffffff
je 0x429930
cmp dword [ebp - 0x2f8], 0
jne 0x42995c
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0x2733
jne 0x42994c
jmp 0x4298b2
mov edx, dword [ebp - 0x28]
push edx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
jmp 0x4299cd
cmp dword [ebp - 0x2f8], 0x125
jne 0x4299c8
push 0x10
push 0
push 0x4314bd
call fcn.0042688c
add esp, 0xc
mov word [0x4314bd], 6
push 4
lea eax, [ebp - 0x12]
push eax
push 0x4314bf
call fcn.00426858
add esp, 0xc
push 6
lea ecx, [ebp - 0xe]
push ecx
push 0x4314c3
call fcn.00426858
add esp, 0xc
mov dx, word [ebp - 8]
mov word [0x4314c9], dx
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, 1
jmp 0x4299cf
jmp 0x4298b2
xor eax, eax
mov esp, ebp
pop ebp
ret