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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x6d3f68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x4606f9
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x10], 0
call fcn.0045dfb0
cmp eax, 0xffffffff
je 0x460a08
cmp eax, 1
je 0x460852
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x6d7898]
lea ecx, [esi + 0x30]
mov dword [ebp - 0x250], eax
mov edx, eax
mov dword [ebp - 0x254], ecx
mov dword [ecx], eax
mov ecx, dword [esi + 0x14]
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x3e8
jb 0x460738
mov ecx, esi
call fcn.0045c9e0
push 1
mov edx, edi
mov ecx, esi
call fcn.0045fea0
add esp, 4
cmp eax, 0xffffffff
je 0x460a08
cmp eax, 1
je 0x460852
xor edx, edx
mov dword [ebp - 0xc], 0
lea ebx, [esi + 0x286c]
mov dword [ebp - 0x24c], 0
test ebx, ebx
lea ecx, [ebp - 0x10]
cmove ecx, edx
lea edx, [ebp - 0x2c]
cmove edx, dword [ebp - 0xc]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x248], edx
push 0
push 0
push ecx
push edx
lea eax, [esi + 0x86c]
mov dword [ebp - 0x244], 0x1000
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x10
push eax
push 1
lea eax, [ebp - 0x244]
mov dword [ebp - 0xc], 0
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x4608a8
test dword [ebp - 0xc], 0x8000
jne 0x460a08
test ebx, ebx
je 0x4607fb
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x2a]
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebx + 4], ax
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x460a08
je 0x4608be
add dword [esi + 0x2884], eax
lea ecx, [esi + 0x86c]
inc dword [esi + 0x2888]
mov dword [esi + 0x2878], eax
mov eax, dword [esi + 0x288c]
mov dword [esi + 0x2874], ecx
test eax, eax
je 0x460868
push edi
push esi
call eax
add esp, 8
cmp eax, 0xffffffff
je 0x460a08
cmp eax, 1
jne 0x460868
test edi, edi
je 0x46087f
cmp dword [edi], 0
je 0x46087f
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.0045f0b0
cmp eax, 0xffffffff
je 0x460a08
cmp eax, 1
je 0x460852
mov eax, dword [ebp - 0x24c]
inc eax
mov dword [ebp - 0x24c], eax
cmp eax, 0x100
jge 0x460a08
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x248]
jmp 0x46078c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x4608be
sub eax, 0x13
jne 0x460a08
push 1
mov edx, edi
mov ecx, esi
call fcn.0045fea0
add esp, 4
cmp eax, 0xffffffff
je 0x460a08
cmp eax, 1
je 0x460852
test edi, edi
je 0x4608fd
mov edx, edi
mov ecx, esi
call fcn.0045dfb0
cmp eax, 0xffffffff
je 0x460a08
cmp eax, 1
je 0x460852
mov eax, dword [esi + 0x30]
sub eax, dword [ebp - 0x250]
cmp eax, 0x5265c00
jb 0x4609f5
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x6d7898]
mov ecx, dword [ebp - 0x250]
mov ebx, eax
sub ebx, ecx
mov dword [esi + 0x30], eax
cmp ebx, 0x5265c00
jb 0x4609f5
sub ecx, eax
mov dword [ebp - 0x23c], 0
cmp ecx, 0x5265c00
mov dword [ebp - 0x134], 1
mov eax, 0x10624dd3
cmovb ebx, ecx
mov ecx, dword [esi]
mul ebx
mov dword [ebp - 0x248], ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x130], ecx
sub ebx, eax
imul eax, ebx, 0x3e8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x460a08
je 0x4609e1
mov ebx, dword [ebp - 0x248]
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4609e1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, eax
sub edx, dword [0x6d7898]
mov dword [esi + 0x30], edx
jmp 0x460718
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x254]
sub eax, dword [0x6d7898]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret