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

Disassembly:
mov eax, 0x1134
call fcn.005322e0
mov eax, dword [esp + 0x1148]
push ebx
push ebp
dec eax
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0xfffffffc
mov dword [esp + 0x1158], eax
js 0x47ebde
mov eax, dword [esp + 0x10]
test eax, eax
jge 0x47ebde
xor eax, eax
lea ecx, [ebp + 4]
mov dword [esp + 0x16], eax
push ecx
mov dword [esp + 0x1e], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dx, word [ebp + 0x14]
mov dword [esp + 0x18], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1150]
mov edx, dword [esp + 0x114c]
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0x18]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jl 0x47ebef
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [ebp + 0x1c]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
xor ecx, ecx
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0x38], edx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp + 0x2a], ecx
mov word [esp + 0x28], 0
mov dword [esp + 0x2e], ecx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x32], ecx
mov dword [esp + 0x40], 1
mov word [esp + 0x36], cx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x38]
shl edx, 3
mov dword [esp + 0x3c], edx
push eax
push 0
lea edx, [esp + 0x48]
push 0
inc ecx
push edx
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x47ebc9
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x40]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47ea58
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
mov edx, dword [ebp + 0x18]
push eax
push 0
lea ecx, [esp + ebx + 0x150]
push 0x1000
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x47ebc9
add ebx, eax
mov dword [esp + 0x10], 0xfffffffb
cmp ebx, 6
jl 0x47ea58
cmp byte [esp + 0x144], 0x5a
jne 0x47ea58
cmp byte [esp + 0x145], 0xa5
jne 0x47ea58
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x1148]
and eax, 0xff
cmp eax, ecx
jne 0x47ea58
mov esi, dword [esp + 0x146]
mov ecx, dword [esp + 0x147]
and esi, 0xff
and ecx, 0xff
shl esi, 8
or esi, ecx
lea eax, [esp + 0x144]
lea edx, [esi - 1]
push edx
push eax
call fcn.00479f20
mov cl, byte [esp + esi + 0x14b]
add esp, 8
cmp cl, al
jne 0x47ea58
mov edi, dword [esp + 0x1154]
lea ecx, [esi - 6]
mov dword [esp + 0x10], ecx
mov edx, ecx
lea esi, [esp + 0x149]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1158]
dec eax
mov dword [esp + 0x1158], eax
jns 0x47e9cd
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1134
ret 0x14
mov eax, dword [ebp + 0x18]
push eax
call fcn.004d65e0
add esp, 4
mov dword [ebp + 0x18], 0xffffffff
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1134
ret 0x14