Function at 0x4a9760
Capabilities:
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x53c160]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
add eax, ecx
cmp ecx, eax
jne 0x4a9c4e
mov ebx, dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [esp + 0x28]
call fcn.0047b140
mov eax, dword [esi + 0xac]
cmp eax, dword [esp + 0x2c]
jl 0x4a9c29
jg 0x4a97c4
mov eax, dword [esi + 0xa8]
cmp eax, dword [esp + 0x28]
jb 0x4a9c29
test byte [esi + 0x60], 2
jne 0x4a9872
mov edi, dword [esi + 0x5c]
cmp edi, 0xffffffff
jne 0x4a97fd
mov dword [esp + 0x48], 0x2719
mov byte [esp + 0x4c], 1
movq xmm0, qword [esp + 0x48]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
jmp 0x4a9872
push 0
call ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [esp + 0x54], eax
setne byte [esp + 0x58]
movq xmm0, qword [esp + 0x54]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
test edi, edi
js 0x4a9872
mov dword [esp + 0x60], 0
mov byte [esp + 0x64], 0
movq xmm0, qword [esp + 0x60]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
or byte [esi + 0x60], 2
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
sub ecx, eax
je 0x4a9888
cmp ecx, 8
jbe 0x4a988a
mov edx, 8
jmp 0x4a988c
xor eax, eax
mov edx, ecx
mov edi, dword [esi + 0x5c]
sub ecx, edx
add eax, edx
mov dword [esp + 0x3c], ecx
cmp byte [esi + 0x7c], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jne 0x4a98c4
xorps xmm0, xmm0
mov dword [esp + 0xd4], 0
movups xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
push 0
call ebx
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push 1
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [esp + 0x6c], eax
setne byte [esp + 0x70]
movq xmm0, qword [esp + 0x6c]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
mov eax, dword [esi + 0x9c]
cmp eax, 0x40
jne 0x4a993f
mov dword [esp + 0x78], 0x2746
mov byte [esp + 0x7c], 1
movq xmm0, qword [esp + 0x78]
jmp 0x4a9962
cmp eax, 0x4d2
jne 0x4a9976
mov dword [esp + 0x84], 0x274d
mov byte [esp + 0x88], 1
movq xmm0, qword [esp + 0x84]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
jmp 0x4a99d3
cmp eax, 0x2738
je 0x4a9984
cmp eax, 0xea
jne 0x4a99d3
mov edi, dword [esi + 0xa4]
mov dword [esi + 0x9c], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x4a99a9
cmp eax, 0x8fafd21e
je 0x4a99b8
cmp ecx, 0x257edf0d
jne 0x4a99bc
cmp eax, 0xb2ab117a
jne 0x4a99bc
xor al, al
jmp 0x4a99c7
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov byte [esi + 0xa0], al
mov dword [esi + 0xa4], edi
test ebx, ebx
jne 0x4a9a12
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
mov byte [esp + 0x94], bl
movq xmm0, qword [esp + 0x90]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
test edx, edx
jg 0x4a9bed
je 0x4a9b73
mov eax, dword [esi + 0x9c]
cmp eax, 0x2733
je 0x4a9a2a
cmp eax, 0x4d5
jne 0x4a9c4e
mov eax, dword [esi + 0xa4]
cmp dword [eax + 8], 0x25c5e09b
jne 0x4a9c4e
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x4a9c4e
mov ecx, esi
call fcn.004aa040
cmp byte [esi + 0x7c], 0
mov ecx, eax
mov edi, dword [esi + 0x5c]
jne 0x4a9a7b
xorps xmm0, xmm0
mov dword [esp + 0xd4], 0
movups xmmword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
cmp edi, 0xffffffff
je 0x4a9c1f
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], 1
test ecx, ecx
js 0x4a9ac7
mov eax, 0x10624dd3
lea ebx, [esp + 0x34]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x38], eax
jmp 0x4a9ac9
xor ebx, ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push 0
push 0
lea eax, [esp + 0xe4]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [esp + 0x9c], eax
setne byte [esp + 0xa0]
movq xmm0, qword [esp + 0x9c]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
test edi, edi
jne 0x4a9b4f
mov dword [esp + 0xa8], edi
mov byte [esp + 0xac], 0
movq xmm0, qword [esp + 0xa8]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
jmp 0x4a9793
jle 0x4a9b66
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
movq xmm0, qword [esp + 0x10]
jmp 0x4a9b38
test edi, edi
js 0x4a9c4e
jmp 0x4a9793
mov ecx, dword [0x53ce70]
mov eax, dword [0x53ce74]
mov dword [esp + 0x10], 2
cmp ecx, 0x25c5e09b
jne 0x4a9b95
cmp eax, 0x8fafd21e
je 0x4a9ba4
cmp ecx, 0x257edf0d
jne 0x4a9ba8
cmp eax, 0xb2ab117a
jne 0x4a9ba8
mov al, 1
jmp 0x4a9bb9
mov eax, dword [0x53ce68]
mov ecx, 0x53ce68
push 2
mov eax, dword [eax + 0x18]
call eax
mov byte [esp + 0x14], al
or eax, 0xffffffff
movq xmm0, qword [esp + 0x10]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x53ce68
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
add ecx, 8
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
movzx eax, byte [eax]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0x2719
jmp 0x4a9c31
mov dword [esp + 0x10], 0x274c
mov byte [esp + 0x14], 1
movq xmm0, qword [esp + 0x10]
movq qword [esi + 0x9c], xmm0
mov dword [esi + 0xa4], 0x518630
mov ecx, dword [esp + 0x1e4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret