Function at 0x472310
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487db1
mov eax, dword fs:[0]
push eax
mov eax, 0x155c
call fcn.00432c80
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1540], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13a4], eax
mov eax, 2
push edx
mov dword [ebp - 0x154c], esi
mov dword [ebp - 0x1544], 1
mov dword [ebp - 0x13a0], 0
mov word [ebp - 0x13b4], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x13b0], eax
call dword [sym.imp.WS2_32.dll_htons]
xorps xmm0, xmm0
mov word [ebp - 0x13b2], ax
xor cl, cl
movq qword [ebp - 0x13ac], xmm0
mov dword [ebp - 0x139c], 0x10
mov byte [ebp - 0x1545], cl
mov dword [ebp - 0x1550], 0
test cl, cl
jne 0x4725d9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4723d1
push 0x10
lea ecx, [ebp - 0x13b4]
sub eax, edx
push ecx
push 0
push eax
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x4725b2
lea eax, [ebp - 0x13a4]
push eax
push 0
push 0
lea eax, [ebp - 0x1544]
push eax
mov eax, dword [edi]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x472428
call fcn.00429668
cmp dword [eax], 0x2714
je 0x4723f7
test esi, esi
jle 0x4725ac
push 0x1388
lea eax, [ebp - 0x1398]
push 0
push eax
call fcn.00424c50
add esp, 0xc
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x13b4]
push eax
push 0
push 0x1388
lea eax, [ebp - 0x1398]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4725ac
cmp eax, 0x1388
jae 0x4725f8
cmp dword [edi + 0xa0], 0
mov byte [ebp + eax - 0x1398], 0
jne 0x4725ac
push 0x74
lea eax, [ebp - 0x1440]
push 0
push eax
call fcn.00424c50
add esp, 0xc
lea ecx, [ebp - 0x1440]
call fcn.00408af0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x13cc]
movq qword [ebp - 0x13bc], xmm0
movdqu xmmword [ebp - 0x13cc], xmm0
call fcn.00402bf0
lea eax, [ebp - 0x1398]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1568]
call fcn.004051a0
push 1
lea eax, [ebp - 0x13cc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1568]
push eax
lea ecx, [ebp - 0x1440]
call fcn.00408c40
lea ecx, [ebp - 0x1568]
mov byte [ebp - 0x1546], al
mov byte [ebp - 4], 1
call fcn.00405270
cmp byte [ebp - 0x1546], 0
je 0x47258b
push 0x498834
lea ecx, [ebp - 0x13cc]
call fcn.00404870
mov ecx, eax
call fcn.00404c80
test al, al
jne 0x47258b
push str.code
lea ecx, [ebp - 0x13cc]
call fcn.00404870
mov ecx, eax
call fcn.00404c80
test al, al
jne 0x47258b
push str.code
lea ecx, [ebp - 0x13cc]
call fcn.00404870
mov ecx, eax
call fcn.004032b0
test eax, eax
jne 0x47258b
mov dword [edi + 0xa0], 1
mov byte [ebp - 0x1545], 1
lea ecx, [ebp - 0x13cc]
mov byte [ebp - 4], 0
call fcn.00402ea0
lea ecx, [ebp - 0x1440]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dcf0
mov esi, dword [ebp - 0x154c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1550]
inc ecx
mov dword [ebp - 0x1550], ecx
cmp ecx, 3
mov cl, byte [ebp - 0x1545]
jl 0x4723c4
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 0x14
call fcn.0042de11
int3