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

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x5c], ebx
je 0x100335c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
cmp dword [0x101168a8], ebx
je 0x100335e2
mov ecx, dword [0x10115cc4]
call sub.WINMM.dll_timeGetTime
mov edi, eax
mov eax, dword [0x101168a8]
add edi, eax
mov dword [esp + 0x18], edi
jmp 0x100335e6
mov edi, dword [esp + 0x18]
mov eax, dword [0x101168a8]
xor esi, esi
cmp eax, ebx
je 0x10033604
mov ecx, dword [0x10115cc4]
call sub.WINMM.dll_timeGetTime
mov esi, edi
sub esi, eax
jns 0x10033604
xor esi, esi
mov eax, dword [ebp + 4]
mov ecx, 0x3f
mov dword [esp + 0x2c], eax
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x28], 1
rep stosd dword es:[edi], eax
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, edx
mov eax, esi
shr ecx, 0x1f
add edx, ecx
mov ecx, 0x3e8
mov dword [esp + 0x20], edx
cdq
idiv ecx
lea ecx, [esp + 0x28]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ecx
shl edx, 3
push ebx
mov dword [esp + 0x38], edx
call sub.WSOCK32.dll_select
cmp eax, ebx
je 0x1003374d
cmp eax, 1
jne 0x10033736
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
or esi, 0xffffffff
push 0x4004667f
push eax
mov dword [esp + 0x20], esi
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x1003374a
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 8]
cmp eax, ebx
mov byte [esp + 0x13], bl
jne 0x100336a6
xor edx, edx
jmp 0x100336ab
mov edx, dword [edi + 8]
sub edx, eax
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jae 0x100336d9
cmp eax, ebx
jne 0x100336bb
xor edx, edx
jmp 0x100336c0
mov edx, dword [edi + 8]
sub edx, eax
lea eax, [esp + 0x13]
sub ecx, edx
push eax
push ecx
mov ecx, dword [edi + 8]
push ecx
mov ecx, edi
call fcn.10035f10
mov ecx, dword [esp + 0x14]
jmp 0x10033709
cmp eax, ebx
je 0x10033709
mov edx, dword [edi + 8]
mov esi, edx
sub esi, eax
cmp ecx, esi
jae 0x10033709
lea esi, [eax + ecx]
mov eax, edx
cmp eax, edx
je 0x100336ff
mov cl, byte [eax]
mov byte [esi], cl
inc esi
inc eax
cmp eax, edx
jne 0x100336f1
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 8]
mov dword [edi + 8], esi
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
mov dword [ebp + 0x58], ebx
mov eax, dword [ebp + 0xc]
push edx
lea edx, [ebp + 0x38]
mov dword [esp + 0x20], 0x10
push edx
push ebx
push ecx
push eax
mov eax, dword [ebp + 4]
push eax
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x1003375a
jmp 0x100335e2
pop edi
mov dword [ebp + 0x5c], 0xffffffff
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov dword [ebp + 0x5c], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov edx, dword [ebp + 0xc]
lea edi, [ebp + 8]
cmp edx, ebx
mov byte [esp + 0x13], bl
jne 0x1003376c
xor ecx, ecx
jmp 0x10033771
mov ecx, dword [edi + 8]
sub ecx, edx
cmp ecx, eax
jae 0x100337a9
cmp edx, ebx
jne 0x1003377d
xor ecx, ecx
jmp 0x10033782
mov ecx, dword [edi + 8]
sub ecx, edx
lea edx, [esp + 0x13]
sub eax, ecx
push edx
push eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
call fcn.10035f10
mov ecx, dword [ebp + 0x3c]
push ecx
call sub.WSOCK32.dll_ntohl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
cmp edx, ebx
je 0x100337d4
mov esi, dword [edi + 8]
mov ecx, esi
sub ecx, edx
cmp eax, ecx
jae 0x100337d4
add edx, eax
mov eax, esi
cmp eax, esi
je 0x100337ca
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
cmp eax, esi
jne 0x100337c0
mov eax, dword [edi + 8]
mov dword [edi + 8], edx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x3c]
push ecx
call sub.WSOCK32.dll_ntohl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret