Function at 0x67351cd4
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x37c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x348], 0
test ebx, ebx
je 0x67351d17
test esi, esi
je 0x67351d17
cmp dword [ebx], 0xffffffff
jne 0x67351d34
xor eax, eax
jmp 0x67351d12
cmp dword [ebx + eax*8], 0xffffffff
jne 0x67351d34
inc eax
cmp esi, eax
ja 0x67351d0c
mov eax, dword [ebp + 0x10]
call fcn.67351968
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x33c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x67351fd8
call fcn.673533ec
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x354], eax
lea esi, [esi]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x350], 0
xor ecx, ecx
lea edi, [ebp - 0x228]
mov dword [ebp - 0x34c], esi
nop
mov word [ebx + ecx*8 + 6], 0
mov eax, dword [ebx + ecx*8]
cmp eax, 0xffffffff
je 0x67351e8c
movsx esi, word [ebx + ecx*8 + 4]
test esi, 7
je 0x67351e8c
test esi, 1
je 0x67351e0e
mov edx, dword [ebp - 0x340]
test edx, edx
je 0x67352040
cmp eax, dword [ebp - 0x120]
je 0x67351e0e
xor edx, edx
jmp 0x67351df9
cmp eax, dword [ebp + edx*4 - 0x120]
je 0x67351e02
inc edx
cmp edx, dword [ebp - 0x340]
jb 0x67351df0
cmp edx, dword [ebp - 0x340]
je 0x67352033
test esi, 4
je 0x67351e4b
mov edx, dword [ebp - 0x33c]
test edx, edx
je 0x6735201a
cmp dword [ebp - 0x224], eax
je 0x67351e4b
xor edx, edx
jmp 0x67351e36
cmp eax, dword [edi + edx*4 + 4]
je 0x67351e3f
inc edx
cmp edx, dword [ebp - 0x33c]
jb 0x67351e30
cmp edx, dword [ebp - 0x33c]
je 0x6735200d
and esi, 2
je 0x67351e8c
mov edx, dword [ebp - 0x350]
test edx, edx
je 0x67351ff4
cmp dword [ebp - 0x328], eax
je 0x67351e8c
xor edx, edx
mov esi, dword [ebp - 0x350]
jmp 0x67351e79
cmp eax, dword [ebp + edx*4 - 0x328]
je 0x67351e7e
inc edx
cmp esi, edx
ja 0x67351e70
cmp dword [ebp - 0x350], edx
je 0x67351fe7
nop
inc ecx
cmp dword [ebp - 0x34c], ecx
ja 0x67351da8
mov esi, dword [ebp - 0x34c]
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x124], ecx
mov eax, dword [ebp - 0x33c]
mov dword [ebp - 0x228], eax
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x67352059
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x33c], ecx
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x34c], esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x67351f87
mov eax, 0x10624dd3
imul ecx
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x35c], edx
mov eax, dword [ebp - 0x35c]
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
lea ecx, [ebp - 0x32c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
lea eax, [ebp - 0x124]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.WS2_32.dll_select
sub esp, 0x14
mov esi, eax
cmp eax, 0xffffffff
jne 0x67352068
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
je 0x67351f83
cmp eax, 0x2714
jne 0x67351fcd
test ebx, ebx
jg 0x67351f9c
test ebx, ebx
jne 0x67351f37
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x67351f37
call fcn.673533ec
mov ecx, dword [ebp - 0x344]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x348]
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 0x67351eec
mov dword [ebp - 0x33c], esi
jmp 0x67351d25
mov dword [ebp - 0x354], 0
jmp 0x67351d5c
cmp dword [ebp - 0x350], 0x3f
ja 0x67351e8c
mov edx, dword [ebp - 0x350]
mov dword [ebp + edx*4 - 0x328], eax
inc edx
mov dword [ebp - 0x350], edx
jmp 0x67351e8c
cmp dword [ebp - 0x33c], 0x3f
ja 0x67351e4b
mov edx, dword [ebp - 0x33c]
mov dword [ebp + edx*4 - 0x224], eax
inc edx
mov dword [ebp - 0x33c], edx
jmp 0x67351e4b
cmp dword [ebp - 0x340], 0x3f
ja 0x67351e0e
mov edx, dword [ebp - 0x340]
mov dword [ebp + edx*4 - 0x120], eax
inc edx
mov dword [ebp - 0x340], edx
jmp 0x67351e0e
mov dword [ebp - 0x33c], 0
jmp 0x67351ed7
mov dword [ebp - 0x33c], eax
mov ebx, dword [ebp - 0x340]
mov esi, dword [ebp - 0x34c]
cmp dword [ebp - 0x33c], 0
jl 0x67352128
je 0x67351d25
mov dword [ebp - 0x33c], 0
xor eax, eax
mov dword [ebp - 0x340], esi
mov esi, eax
jmp 0x673520bb
cmp word [ebx + 6], 0
jne 0x67352120
inc esi
add ebx, 8
cmp dword [ebp - 0x340], esi
jbe 0x67351d25
mov word [ebx + 6], 0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x673520ab
lea edx, [ebp - 0x124]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x673520e6
or word [ebx + 6], 1
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x67352100
or word [ebx + 6], 4
lea ecx, [ebp - 0x32c]
mov dword [esp + 4], ecx
mov eax, dword [ebx]
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x673520a4
or word [ebx + 6], 2
inc dword [ebp - 0x33c]
jmp 0x673520ab
mov dword [ebp - 0x33c], 0xffffffff
jmp 0x67351d25