Function at 0x4a8f40
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x4db538
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5181f4]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xa8]
xor eax, eax
mov dword [ebp + 0x6d], eax
mov dword [ebp + 0x71], eax
mov dword [ebp + 0x75], eax
mov word [ebp + 0x79], ax
mov byte [ebp + 0x7b], al
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x94], eax
mov dword [ebp + 0x98], eax
lea eax, [ebp + 0x33]
xor ebx, ebx
push eax
push 0x400
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 0x32], bl
mov byte [ebp + 0x6c], bl
mov byte [ebp + 0x33], bl
call fcn.004938e0
movzx eax, word [edi]
cmp ax, 0x17
sete cl
mov byte [ebp + 0x33], cl
neg cl
movzx edx, ax
mov dword [ebp - 4], ebx
mov dword [ebp + 4], 0x1c
mov dword [ebp + 0x28], ebx
sbb ecx, ecx
xor eax, eax
and ecx, 0x39
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
add ecx, 1
mov eax, edx
cmp eax, 2
mov dword [ebp + 0x1c], ebx
mov dword [ebp], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 1
je 0x4a9060
cmp eax, 0x17
je 0x4a9060
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4a9059
push eax
call fcn.00441cca
add esp, 4
xor eax, eax
jmp 0x4a93c3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 0x24], esi
jne 0x4a9082
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x4a9043
push 4
lea eax, [ebp + 0xac]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [ebp + 0x33], bl
je 0x4a91ee
push ebx
push ebx
lea ecx, [ebp]
push ecx
push 0x1c
lea edx, [ebp + 0x50]
push edx
push 0x1c
push edi
push 0xc8000014
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4a919e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0048a7e0
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x4c], 7
mov dword [ebp + 0x48], ebx
mov word [ebp + 0x38], bx
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.004944f0
add esp, 4
cmp al, bl
jne 0x4a9116
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0048a800
push 0x50e7a0
lea edx, [ebp - 0x58]
push edx
call fcn.0044661f
push ebx
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004940d0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4a9132
mov eax, dword [eax + 4]
jmp 0x4a9135
add eax, 4
lea edx, [ebp + 0x2c]
push edx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
call fcn.004a5330
test eax, eax
lea ecx, [ebp - 0x80]
setne byte [ebp + 0x31]
call fcn.004022e7
cmp byte [ebp + 0x31], bl
je 0x4a9171
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x64]
call fcn.0048a800
push 0x50e7a0
lea eax, [ebp - 0x64]
push eax
call fcn.0044661f
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax + 0x18]
mov ecx, 7
lea edi, [ebp + 0x50]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004a5370
lea ecx, [ebp + 0x34]
call fcn.00404364
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00402347
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x6c], ecx
mov ecx, dword [ebp + 0x64]
mov dword [ebp + 0x70], edx
mov edx, dword [edi + 8]
mov dword [ebp + 0x74], eax
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x78], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp + 0x7c], edx
mov edx, dword [edi + 0x14]
push 8
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x88], edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp + 0x8c], eax
mov al, byte [ebp - 0x24]
mov byte [ebp + 0x93], al
mov cl, byte [ebp + 0x33]
neg cl
sbb cl, cl
and cl, 0x78
add cl, 8
mov byte [ebp + 0x94], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
push 0x5221c8
mov word [ebp + 0x98], ax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call esi
cmp byte [ebp + 0x33], bl
mov word [ebp + 0x9a], ax
je 0x4a923b
mov eax, 0x30
lea edx, [ebp + 0x6c]
jmp 0x4a9246
mov eax, 8
lea edx, [ebp + 0x94]
call fcn.004a5390
push 0x1c
push edi
push ebx
push 8
lea edx, [ebp + 0x94]
mov word [ebp + 0x96], ax
mov eax, dword [ebp + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4a92a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048a7e0
push 0x50e7a0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0044661f
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
mov dword [ebp + 0x18], eax
mov eax, 0x4a929a
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0x28], eax
cmp esi, ebx
jne 0x4a92b8
xor edi, edi
jmp 0x4a92c3
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, ebx
mov edi, eax
ja 0x4a92c8
call fcn.00441e1b
mov eax, dword [ebp + 0x24]
lea ecx, [ebp + 4]
push ecx
lea edx, [ebp + 0x50]
push edx
push ebx
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4a9375
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x20]
lea ecx, [ebp + 0x50]
push ecx
push edx
mov dword [ebp + 0x1c], eax
call fcn.00439042
add esp, 8
test al, al
je 0x4a9375
cmp byte [ebp + 0x33], bl
je 0x4a931c
cmp esi, ebx
je 0x4a9313
mov eax, dword [ebp + 0x10]
sub eax, esi
jne 0x4a9318
call fcn.00441e1b
mov eax, esi
jmp 0x4a9347
cmp esi, ebx
je 0x4a9327
mov ecx, dword [ebp + 0x10]
sub ecx, esi
jne 0x4a932c
call fcn.00441e1b
cmp byte [esi + 9], 1
jne 0x4a9375
mov edx, dword [ebp + 0x10]
sub edx, esi
jne 0x4a933e
call fcn.00441e1b
movzx eax, byte [esi]
and eax, 0xf
lea eax, [esi + eax*4]
mov cl, byte [ebp + 0x33]
movzx edx, byte [eax]
neg cl
sbb ecx, ecx
and ecx, 0x81
cmp ecx, edx
jne 0x4a9375
mov cx, word [ebp + 0x98]
cmp cx, word [eax + 4]
jne 0x4a9375
mov dx, word [ebp + 0x9a]
cmp dx, word [eax + 6]
je 0x4a938c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x28]
cmp eax, dword [ebp + 0xac]
jb 0x4a92b0
jmp 0x4a9390
mov byte [ebp + 0x32], 1
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [ebp + 0x32], bl
je 0x4a93b1
mov edi, dword [ebp + 0x1c]
sub edi, dword [ebp + 0x28]
jmp 0x4a93b4
or edi, 0xffffffff
cmp esi, ebx
je 0x4a93c1
push esi
call fcn.00441cca
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00441cbb
add ebp, 0xa0
mov esp, ebp
pop ebp
ret