Function at 0x10033600
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 0x10033620
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
cmp dword [0x10116878], ebx
je 0x10033642
mov ecx, dword [0x10115c94]
call sub.WINMM.dll_timeGetTime
mov edi, eax
mov eax, dword [0x10116878]
add edi, eax
mov dword [esp + 0x18], edi
jmp 0x10033646
mov edi, dword [esp + 0x18]
mov eax, dword [0x10116878]
xor esi, esi
cmp eax, ebx
je 0x10033664
mov ecx, dword [0x10115c94]
call sub.WINMM.dll_timeGetTime
mov esi, edi
sub esi, eax
jns 0x10033664
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 0x100337ad
cmp eax, 1
jne 0x10033796
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 0x100337aa
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 8]
cmp eax, ebx
mov byte [esp + 0x13], bl
jne 0x10033706
xor edx, edx
jmp 0x1003370b
mov edx, dword [edi + 8]
sub edx, eax
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jae 0x10033739
cmp eax, ebx
jne 0x1003371b
xor edx, edx
jmp 0x10033720
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.10035f70
mov ecx, dword [esp + 0x14]
jmp 0x10033769
cmp eax, ebx
je 0x10033769
mov edx, dword [edi + 8]
mov esi, edx
sub esi, eax
cmp ecx, esi
jae 0x10033769
lea esi, [eax + ecx]
mov eax, edx
cmp eax, edx
je 0x1003375f
mov cl, byte [eax]
mov byte [esi], cl
inc esi
inc eax
cmp eax, edx
jne 0x10033751
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 0x100337ba
jmp 0x10033642
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 0x100337cc
xor ecx, ecx
jmp 0x100337d1
mov ecx, dword [edi + 8]
sub ecx, edx
cmp ecx, eax
jae 0x10033809
cmp edx, ebx
jne 0x100337dd
xor ecx, ecx
jmp 0x100337e2
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.10035f70
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 0x10033834
mov esi, dword [edi + 8]
mov ecx, esi
sub ecx, edx
cmp eax, ecx
jae 0x10033834
add edx, eax
mov eax, esi
cmp eax, esi
je 0x1003382a
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
cmp eax, esi
jne 0x10033820
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