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

Disassembly:
mov eax, 0x2930
call fcn.1004a2f0
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 0x100479fb
mov edi, dword [esp + 0x294c]
cmp edi, ebx
je 0x100479fb
push edi
mov ebx, edi
call fcn.10048f3e
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 0x10047b55
jne 0x10047a53
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x10047b7a
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100479ff
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 0x10047b9c
jge 0x10047aa2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x10047b55
jmp 0x100479ff
lea eax, [esi + ebx]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], eax
call fcn.10048f3e
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x10047ae5
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.10048e55
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 0x100479ff
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.10047910
add esp, 0x14
test eax, eax
je 0x10047bc1
mov ecx, dword [esi]
add ecx, 0x14
cmp ebx, ecx
jge 0x10047bea
jmp 0x100479ff
test ebp, ebp
je 0x10047b62
push ebp
call fcn.10048e55
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 0x10047b87
push ebp
call fcn.10048e55
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 0x10047ba9
push ebp
call fcn.10048e55
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 0x10047bce
push ebp
call fcn.10048e55
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.10048f3e
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 0x10047c56
push ebx
call fcn.10048f3e
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 0x10047c63
push ebp
call fcn.10048e55
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.10048db3
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