Function at 0x424699
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 0x4246d3
xor eax, eax
jmp 0x4249cf
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4246f6
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4249cf
push 0xe
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.0042188c
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 0x42474e
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4249cf
push 0xe
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x424777
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4249cf
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 0x4247ae
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4249cf
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 0x4247e7
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4249cf
push 0xe
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0042188c
add esp, 0xc
mov word [ebp - 0x14], 6
mov dword [ebp - 0x2fc], 0
jmp 0x424818
mov eax, dword [ebp - 0x2fc]
add eax, 1
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 6
jge 0x42482e
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp + ecx - 0xe], 0xff
jmp 0x424809
push 0x4587
call sub.WSOCK32.dll_htons
mov word [ebp - 8], ax
mov edx, dword [0x42b3c8]
mov byte [edx], 0
lea eax, [ebp - 0x160]
push eax
push 0x42b3c8
call fcn.00423cf1
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 0x42489a
mov ecx, dword [ebp - 0x28]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x4249cf
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 0x4249cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30c], eax
push 0x125
push 0
lea eax, [ebp - 0x434]
push eax
call fcn.0042188c
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 0x424930
cmp dword [ebp - 0x2f8], 0
jne 0x42495c
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0x2733
jne 0x42494c
jmp 0x4248b2
mov edx, dword [ebp - 0x28]
push edx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
jmp 0x4249cd
cmp dword [ebp - 0x2f8], 0x125
jne 0x4249c8
push 0x10
push 0
push 0x42b4bd
call fcn.0042188c
add esp, 0xc
mov word [0x42b4bd], 6
push 4
lea eax, [ebp - 0x12]
push eax
push 0x42b4bf
call fcn.00421858
add esp, 0xc
push 6
lea ecx, [ebp - 0xe]
push ecx
push 0x42b4c3
call fcn.00421858
add esp, 0xc
mov dx, word [ebp - 8]
mov word [0x42b4c9], dx
mov eax, dword [ebp - 0x28]
push eax
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, 1
jmp 0x4249cf
jmp 0x4248b2
xor eax, eax
mov esp, ebp
pop ebp
ret