Function at 0x417a20
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2930
call fcn.0041b1b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2944]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
push edi
mov dword [esp + 0x14], ebx
je 0x417a6b
mov edi, dword [esp + 0x294c]
cmp edi, ebx
je 0x417a6b
push edi
mov ebx, edi
call fcn.00419f47
mov ecx, edi
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x2944]
mov ecx, 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x44], eax
push 0
lea edx, [esp + 0x44]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x38], 0
call sub.WSOCK32.dll_select
test eax, eax
jl 0x417bc5
jne 0x417ac3
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x417bea
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x417a6f
mov eax, dword [edi + 0xc]
push 0
lea edx, [esp + 0x144]
push 0x2800
push edx
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x417c0c
jge 0x417b12
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x417bc5
jmp 0x417a6f
lea eax, [esi + ebx]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], eax
call fcn.00419f47
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x417b55
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00419e5e
mov esi, dword [esp + 0x1c]
add esp, 4
mov ecx, esi
lea esi, [esp + 0x140]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, edx
add eax, ebx
and ecx, 3
cmp eax, 0x14
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebp
jl 0x417a6f
mov esi, dword [esp + 0x295c]
mov ecx, dword [esp + 0x2954]
mov edx, dword [esp + 0x2960]
mov eax, dword [esp + 0x2950]
push esi
push ecx
push edx
push eax
push ebp
call fcn.00417980
add esp, 0x14
test eax, eax
je 0x417c31
mov ecx, dword [esi]
add ecx, 0x14
cmp ebx, ecx
jge 0x417c5a
jmp 0x417a6f
test ebp, ebp
je 0x417bd2
push ebp
call fcn.00419e5e
add esp, 4
add edi, 0x34
xor edx, edx
or eax, 0xffffffff
mov dword [edi], edx
mov byte [edi + 4], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2930
ret
test ebp, ebp
je 0x417bf7
push ebp
call fcn.00419e5e
add esp, 4
xor eax, eax
add edi, 0x34
mov dword [edi], eax
mov byte [edi + 4], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2930
ret
test ebp, ebp
je 0x417c19
push ebp
call fcn.00419e5e
add esp, 4
add edi, 0x34
xor ecx, ecx
or eax, 0xffffffff
mov dword [edi], ecx
mov byte [edi + 4], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2930
ret
test ebp, ebp
je 0x417c3e
push ebp
call fcn.00419e5e
add esp, 4
mov ecx, dword [esp + 0x2944]
xor eax, eax
add ecx, 0x34
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
mov byte [ecx + 4], al
add esp, 0x2930
ret
mov edx, dword [esi]
push edx
call fcn.00419f47
mov ecx, dword [esp + 0x295c]
mov edi, eax
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esi]
mov edx, ecx
lea esi, [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x295c]
mov esi, dword [esp + 0x2968]
sub ebx, dword [edi]
add ebx, 0xffffffec
test ebx, ebx
mov dword [esi], ebx
jle 0x417cc6
push ebx
call fcn.00419f47
mov ecx, dword [esp + 0x2968]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esi]
mov edx, dword [edi]
mov edi, eax
mov eax, ecx
lea esi, [edx + ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x417cd3
push ebp
call fcn.00419e5e
add esp, 4
mov ecx, dword [esp + 0x2950]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push edx
push str.0000_d
push eax
call fcn.00419cb3
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x2944]
pop edi
not ecx
dec ecx
pop esi
pop ebp
pop ebx
lea eax, [esp + ecx + 0x14]
mov ecx, dword [esp + ecx + 0x14]
mov eax, 1
mov dword [edx + 0x34], ecx
mov byte [edx + 0x38], 0
add esp, 0x2930
ret