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

Disassembly:
mov eax, 0x2930
call fcn.10011da0
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 0x1000a5cb
mov edi, dword [esp + 0x294c]
cmp edi, ebx
je 0x1000a5cb
push edi
mov ebx, edi
call fcn.10010fc5
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.WS2_32.dll_select
test eax, eax
jl 0x1000a725
jne 0x1000a623
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x1000a74a
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000a5cf
mov eax, dword [edi + 0xc]
push 0
lea edx, [esp + 0x144]
push 0x2800
push edx
push eax
call sub.WS2_32.dll_recv
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x1000a76c
jge 0x1000a672
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1000a725
jmp 0x1000a5cf
lea eax, [esi + ebx]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], eax
call fcn.10010fc5
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x1000a6b5
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.10010edc
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 0x1000a5cf
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.1000a4e0
add esp, 0x14
test eax, eax
je 0x1000a791
mov ecx, dword [esi]
add ecx, 0x14
cmp ebx, ecx
jge 0x1000a7ba
jmp 0x1000a5cf
test ebp, ebp
je 0x1000a732
push ebp
call fcn.10010edc
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 0x1000a757
push ebp
call fcn.10010edc
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 0x1000a779
push ebp
call fcn.10010edc
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 0x1000a79e
push ebp
call fcn.10010edc
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.10010fc5
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 0x1000a826
push ebx
call fcn.10010fc5
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 0x1000a833
push ebp
call fcn.10010edc
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.10010c37
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