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

Disassembly:
mov eax, 0x2930
call fcn.100377f0
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 0x100339fb
mov edi, dword [esp + 0x294c]
cmp edi, ebx
je 0x100339fb
push edi
mov ebx, edi
call fcn.1003643b
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 0x10033b55
jne 0x10033a53
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x10033b7a
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100339ff
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 0x10033b9c
jge 0x10033aa2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x10033b55
jmp 0x100339ff
lea eax, [esi + ebx]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], eax
call fcn.1003643b
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x10033ae5
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.10036352
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 0x100339ff
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.10033910
add esp, 0x14
test eax, eax
je 0x10033bc1
mov ecx, dword [esi]
add ecx, 0x14
cmp ebx, ecx
jge 0x10033bea
jmp 0x100339ff
test ebp, ebp
je 0x10033b62
push ebp
call fcn.10036352
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 0x10033b87
push ebp
call fcn.10036352
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 0x10033ba9
push ebp
call fcn.10036352
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 0x10033bce
push ebp
call fcn.10036352
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.1003643b
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 0x10033c56
push ebx
call fcn.1003643b
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 0x10033c63
push ebp
call fcn.10036352
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.100362c7
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