Function at 0x46ebd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor eax, eax
mov dword [ebp - 0x340], ecx
push esi
push edi
mov dword [ebp - 0x330], eax
mov edi, edx
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x348], edi
movlpd qword [ebp - 0x35c], xmm0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x334], eax
test eax, eax
jl 0x46ec3a
jg 0x46ec2b
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x7fffffff
jb 0x46ec3d
xor eax, eax
mov ebx, accept
mov dword [ebp - 0x334], eax
jmp 0x46ec3d
mov ebx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x46ec8a
cmp edi, ecx
jne 0x46ec8a
cmp dword [ebp + 8], ecx
jne 0x46ec8a
test ebx, ebx
je 0x46ec77
jns 0x46ec70
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
test eax, eax
jl 0x46ecf0
jg 0x46ec94
test ebx, ebx
je 0x46ecf0
mov dword [ebp - 0x330], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov dword [ebp - 0x358], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x35c], edx
sub esi, ecx
mov ecx, dword [ebp - 0x340]
imul eax, esi, 0x3e8
mov dword [ebp - 0x354], eax
movups xmm0, xmmword [ebp - 0x35c]
movups xmmword [ebp - 0x35c], xmm0
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x33c], eax
xor eax, eax
xor esi, esi
or edx, 0xffffffff
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x224], esi
cmp ecx, 0xffffffff
je 0x46ed29
mov esi, 1
mov dword [ebp - 0x220], ecx
mov eax, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x118], ecx
mov edx, ecx
mov dword [ebp - 0x11c], eax
cmp edi, 0xffffffff
je 0x46ed95
xor ecx, ecx
test esi, esi
je 0x46ed42
cmp dword [ebp + ecx*4 - 0x220], edi
je 0x46ed42
inc ecx
cmp ecx, esi
jb 0x46ed34
cmp ecx, esi
jne 0x46ed5f
cmp esi, 0x40
jae 0x46ed5f
mov dword [ebp + ecx*4 - 0x220], edi
mov esi, dword [ebp - 0x224]
inc esi
mov dword [ebp - 0x224], esi
xor ecx, ecx
test eax, eax
je 0x46ed73
cmp dword [ebp + ecx*4 - 0x118], edi
je 0x46ed73
inc ecx
cmp ecx, eax
jb 0x46ed65
cmp ecx, eax
jne 0x46ed90
cmp eax, 0x40
jae 0x46ed90
mov dword [ebp + ecx*4 - 0x118], edi
mov eax, dword [ebp - 0x11c]
inc eax
mov dword [ebp - 0x11c], eax
cmp edi, edx
cmova edx, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x32c], 0
cmp edi, 0xffffffff
je 0x46ede9
xor ecx, ecx
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x32c], 1
test eax, eax
je 0x46edce
nop dword [eax]
cmp dword [ebp + ecx*4 - 0x118], edi
je 0x46edce
inc ecx
cmp ecx, eax
jb 0x46edc0
cmp ecx, eax
jne 0x46ede4
cmp eax, 0x40
jae 0x46ede4
mov dword [ebp + ecx*4 - 0x118], edi
inc dword [ebp - 0x11c]
cmp edi, edx
cmova edx, edi
mov edi, dword [ebp - 0x334]
test edi, edi
jg 0x46ee05
jl 0x46edf9
test ebx, ebx
jae 0x46ee05
mov dword [ebp - 0x338], 0
jmp 0x46ee0e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x338], eax
lea eax, [edx + 1]
mov dword [ebp - 0x344], eax
test edi, edi
jl 0x46ee4e
jg 0x46ee21
test ebx, ebx
je 0x46ee4e
mov ecx, dword [ebp - 0x330]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0xc], eax
jmp 0x46ee5a
mov eax, ebx
or eax, edi
jne 0x46ee5a
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push dword [ebp - 0x338]
xor ecx, ecx
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x32c], ecx
push eax
lea eax, [ebp - 0x32c]
cmove eax, ecx
test esi, esi
push eax
lea eax, [ebp - 0x224]
cmove eax, ecx
push eax
push dword [ebp - 0x344]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x46ef4f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x46eebc
cmp dword [0x746aec], 0
jne 0x46ec5c
cmp eax, 0x2714
jne 0x46ec5c
test edi, edi
jl 0x46eed0
jg 0x46eedb
test ebx, ebx
jne 0x46eedb
nop word [eax + eax]
mov esi, dword [ebp - 0x224]
jmp 0x46ee17
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov dword [ebp - 0x368], 0
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
sub ecx, dword [ebp - 0x33c]
imul ecx
mov eax, dword [ebp - 0x35c]
sub eax, edi
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add eax, ebx
mov dword [ebp - 0x330], eax
test eax, eax
jle 0x46ec77
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x334]
jmp 0x46ee17
test eax, eax
js 0x46ec5c
je 0x46ec77
mov edi, dword [ebp - 0x340]
xor esi, esi
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp edi, 0xffffffff
je 0x46ef95
lea eax, [ebp - 0x224]
push eax
push edi
call ebx
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x11c]
push eax
push edi
cmovne esi, ecx
call ebx
test eax, eax
je 0x46ef95
or esi, 4
mov edi, dword [ebp - 0x348]
cmp edi, 0xffffffff
je 0x46efc2
lea eax, [ebp - 0x224]
push eax
push edi
call ebx
test eax, eax
je 0x46efb1
or esi, 8
lea eax, [ebp - 0x11c]
push eax
push edi
call ebx
test eax, eax
je 0x46efc2
or esi, 4
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x46efec
lea eax, [ebp - 0x32c]
push eax
push edi
call ebx
test eax, eax
je 0x46efdb
or esi, 2
lea eax, [ebp - 0x11c]
push eax
push edi
call ebx
test eax, eax
je 0x46efec
or esi, 4
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret