Function at 0x6735199c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x36c
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x344], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x673519e0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x673519e0
mov eax, ebx
call fcn.67351968
mov esi, eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
test ebx, ebx
jle 0x67351b84
call fcn.673533ec
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], edx
mov ecx, ebx
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x124], 0
cmp dword [ebp + 8], 0xffffffff
je 0x67351c6c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x32c], 1
mov esi, eax
mov dword [ebp - 0x228], 0
cmp dword [ebp + 0xc], 0xffffffff
je 0x67351c60
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], 1
mov edx, dword [ebp - 0x32c]
test edx, edx
je 0x67351cbd
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x328], eax
je 0x67351cc7
xor eax, eax
lea edi, [ebp - 0x32c]
mov dword [ebp - 0x33c], esi
mov esi, dword [ebp + 0xc]
jmp 0x67351a9e
cmp dword [edi + eax*4 + 4], esi
je 0x67351aa3
inc eax
cmp eax, edx
jb 0x67351a98
mov esi, dword [ebp - 0x33c]
cmp eax, edx
je 0x67351c94
cmp esi, dword [ebp + 0xc]
jae 0x67351ab9
mov esi, dword [ebp + 0xc]
test ebx, ebx
js 0x67351c78
lea eax, [ebp - 0x20]
mov dword [ebp - 0x33c], eax
inc esi
mov dword [ebp - 0x348], esi
test ebx, ebx
jle 0x67351b6e
mov eax, 0x10624dd3
imul ecx
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], edx
mov eax, dword [ebp - 0x34c]
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
mov dword [ebp - 0x20], eax
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x33c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
lea ecx, [ebp - 0x228]
mov dword [esp + 8], ecx
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x348]
mov dword [esp], edx
call sub.WS2_32.dll_select
sub esp, 0x14
mov esi, eax
cmp eax, 0xffffffff
jne 0x67351bc4
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
je 0x67351b6a
cmp eax, 0x2714
jne 0x673519d4
test ebx, ebx
jg 0x67351b8c
test ebx, ebx
jne 0x67351b1c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x67351b1c
xor ecx, ecx
jmp 0x673519fb
call fcn.673533ec
mov ecx, dword [ebp - 0x340]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x344]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.67353428
mov ecx, ebx
sub ecx, eax
test ecx, ecx
jg 0x67351ad1
jmp 0x673519d4
cmp eax, 0
jl 0x67351cb3
je 0x673519d4
cmp dword [ebp + 8], 0xffffffff
je 0x67351c88
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
jne 0x67351c8c
cmp dword [ebp + 0xc], 0xffffffff
je 0x673519d4
lea edx, [ebp - 0x228]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x67351c3d
or esi, 2
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x673519d4
or esi, 4
jmp 0x673519d4
lea edi, [ebp - 0x32c]
jmp 0x67351ab9
mov esi, 0xffffffff
jmp 0x67351a3e
mov dword [ebp - 0x33c], 0
jmp 0x67351aca
xor esi, esi
jmp 0x67351c14
or esi, 4
jmp 0x67351c14
cmp eax, 0x3f
ja 0x67351ab1
mov edx, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x328], edx
inc eax
mov dword [ebp - 0x32c], eax
jmp 0x67351ab1
mov esi, 0xffffffff
jmp 0x673519d4
xor eax, eax
lea edi, [ebp - 0x32c]
jmp 0x67351c9d
lea edi, [ebp - 0x32c]
jmp 0x67351ab1