Function at 0x49b2f4
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff534
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b59b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0041ccb8
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x49b58a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1b4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49b365
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b5a9
xor eax, eax
push ebp
push 0x49b559
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49b53f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49b3b1
call fcn.00404930
call fcn.00404930
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b5a9
mov word [ebp - 0x1c4], 2
push 0x89
call sub.wsock32.dll_htons
mov word [ebp - 0x1c2], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004053ec
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_ioctlsocket
push pe_nt_image_headers32
lea eax, [ebp - 0x1c4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_connect
lea eax, [ebp - 0x2c8]
call fcn.00497548
lea edx, [ebp - 0x2c8]
mov eax, dword [ebp - 0xc]
call fcn.00497538
mov eax, dword [0x4f87f4]
mov eax, dword [eax]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4f87f4]
mov eax, dword [eax]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c8]
push eax
push 0
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x49b528
lea eax, [ebp - 0x6c9]
xor ecx, ecx
mov edx, 0x401
call fcn.004035b8
lea eax, [ebp - 0xaca]
xor ecx, ecx
mov edx, 0x401
call fcn.004035b8
lea edx, [ebp - 0x6c9]
mov eax, dword [0x4f8c94]
mov ecx, 0x32
call fcn.00402d4c
push pe_nt_image_headers32
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x32
lea eax, [ebp - 0x6c9]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_sendto
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x2c8]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x49b528
mov dword [ebp - 0x20], pe_nt_image_headers32
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x401
lea eax, [ebp - 0xaca]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x38
jle 0x49b528
lea edx, [ebp - 0xaca]
mov eax, dword [ebp - 4]
call fcn.0049ac58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b546
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_closesocket
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret