Function at 0x461e5c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x380
mov ebx, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x378], eax
xor eax, eax
dec eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov esi, 0x104
mov edi, 0xff
lea eax, [esp + 0x274]
push esi
push edi
push eax
call fcn.00645dd0
add esp, 0xc
lea eax, [esp + 0x170]
push esi
push edi
push eax
call fcn.00645dd0
add esp, 0xc
lea eax, [esp + 0x6c]
push esi
push edi
push eax
call fcn.00645dd0
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
test ebx, ebx
je 0x46224b
cmp dword [ebp + 0xc], 0
je 0x46224b
mov ecx, ebx
xor eax, eax
cmp dword [ecx + eax*8], 0xffffffff
jne 0x461ef3
inc eax
cmp dword [ebp + 0xc], eax
jne 0x461ee2
jmp 0x46224b
mov dword [esp + 0x28], 0
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x461f1e
lea esi, [esp + 0x40]
push esi
call fcn.004685f4
mov ecx, dword [ebp + 8]
add esp, 4
movups xmm0, xmmword [esi]
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x28], edi
xor eax, eax
mov dword [esp + 0x274], eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x14], 0
xor eax, eax
xor ebx, ebx
mov word [ecx + ebx*8 + 6], 0
mov edx, dword [ecx + ebx*8]
cmp edx, 0xffffffff
je 0x461fd7
movzx esi, word [ecx + ebx*8 + 4]
test esi, 0x710
je 0x461fd7
test esi, 0x300
mov dword [esp + 0x24], esi
je 0x462019
xor ecx, ecx
test eax, eax
je 0x461fde
cmp dword [esp + 0x14], 1
mov esi, 1
cmova esi, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x278], edx
je 0x461ff6
mov dword [esp + 0x2c], esi
lea eax, [esi - 1]
xor esi, esi
cmp eax, esi
je 0x461fea
lea ecx, [esi + 1]
cmp dword [esp + esi*4 + 0x27c], edx
mov esi, ecx
jne 0x461fbb
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jmp 0x461ff6
mov esi, edi
jmp 0x462134
mov dword [esp + 0xc], 0
xor eax, eax
jmp 0x461ff6
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jne 0x46201d
cmp eax, 0x3f
ja 0x46201d
mov dword [esp + ecx*4 + 0x278], edx
mov eax, dword [esp + 0x274]
inc eax
mov dword [esp + 0x274], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
test byte [esp + 0x24], 0x10
jne 0x46202b
mov esi, edi
mov ecx, dword [ebp + 8]
jmp 0x4620a1
xor eax, eax
test edi, edi
je 0x46206d
mov esi, dword [esp + 0x18]
cmp esi, 1
mov ecx, 1
cmova ecx, esi
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x174], edx
mov ecx, dword [ebp + 8]
je 0x46207e
mov edi, dword [esp + 0x10]
lea esi, [edi - 1]
xor ecx, ecx
cmp esi, ecx
je 0x462073
lea eax, [ecx + 1]
cmp dword [esp + ecx*4 + 0x178], edx
mov ecx, eax
jne 0x462059
jmp 0x462075
xor esi, esi
xor edi, edi
jmp 0x46207b
mov eax, edi
mov edi, dword [esp + 0x18]
mov esi, edi
mov ecx, dword [ebp + 8]
cmp eax, edi
jne 0x4620a1
cmp edi, 0x3f
ja 0x4620a1
mov dword [esp + eax*4 + 0x174], edx
mov esi, dword [esp + 0x170]
inc esi
mov dword [esp + 0x170], esi
mov dword [esp + 0x18], esi
test dword [esp + 0x24], 0x600
je 0x4620ef
xor edi, edi
cmp dword [esp + 0x20], 0
mov dword [esp + 0x10], esi
je 0x4620f5
mov ecx, dword [esp + 0x1c]
cmp ecx, 1
mov eax, 1
mov esi, dword [esp + 0x20]
cmova eax, ecx
cmp dword [esp + 0x70], edx
je 0x462105
mov esi, eax
lea ecx, [eax - 1]
xor eax, eax
cmp ecx, eax
je 0x4620fb
lea edi, [eax + 1]
cmp dword [esp + eax*4 + 0x74], edx
mov eax, edi
jne 0x4620d8
mov esi, dword [esp + 0x1c]
mov ecx, esi
jmp 0x462105
mov eax, dword [esp + 0xc]
jmp 0x462134
xor ecx, ecx
xor esi, esi
jmp 0x462105
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edi, esi
mov esi, eax
cmp edi, esi
jne 0x462125
cmp esi, 0x3f
ja 0x462125
mov dword [esp + edi*4 + 0x70], edx
mov eax, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x462129
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
inc ebx
mov edi, esi
cmp ebx, dword [ebp + 0xc]
jb 0x461f58
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x14]
or eax, dword [esp + 0x1c]
je 0x46224b
xor eax, eax
mov edi, dword [ebp + 0x10]
test edi, edi
lea esi, [esp + 0x64]
cmovs esi, eax
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov edx, 0x10624dd3
imul edx
test edi, edi
jle 0x462195
mov eax, edx
shr eax, 0x1f
sar edx, 6
add edx, eax
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x64], edx
jmp 0x4621a3
test edi, edi
jne 0x4621a7
mov dword [esp + 0x64], 0
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
test eax, eax
lea ecx, [esp + 0x6c]
cmovne eax, ecx
mov ecx, dword [esp + 0x170]
test ecx, ecx
lea edx, [esp + 0x170]
cmovne ecx, edx
mov edx, dword [esp + 0x274]
test edx, edx
lea edi, [esp + 0x274]
cmovne edx, edi
push esi
push eax
push ecx
push edx
push 0
call ebx
cmp eax, 0xffffffff
jne 0x462270
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov edi, dword [ebp + 0x10]
je 0x462210
cmp eax, 0x2714
jne 0x462320
cmp dword [0x703688], 0
jne 0x462320
test edi, edi
jle 0x462195
lea eax, [esp + 0x30]
push eax
call fcn.004685f4
sub esp, 0x1c
movaps xmm0, xmmword [esp + 0x70]
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esp], xmm0
call fcn.00468636
add esp, 0x20
mov ecx, edi
sub ecx, eax
jg 0x46216a
jmp 0x462319
push dword [ebp + 0x10]
call fcn.00461a64
add esp, 4
mov ebx, eax
mov ecx, dword [esp + 0x378]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
mov ebx, 0xffffffff
mov ecx, dword [ebp + 8]
js 0x462258
test eax, eax
je 0x462319
xor ebx, ebx
xor edi, edi
mov word [ecx + edi*8 + 6], 0
mov eax, dword [ecx + edi*8]
cmp eax, 0xffffffff
je 0x46230a
mov dword [esp + 0x24], ebx
lea ebx, [edi*4]
lea ecx, [esp + 0x274]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4622bc
or byte [ecx + ebx*2 + 7], 3
lea eax, [esp + 0x170]
push eax
push dword [ecx + ebx*2]
call sub.WS2_32.dll___WSAFDIsSet
mov esi, dword [ebp + 8]
test eax, eax
je 0x4622d8
or byte [esi + ebx*2 + 6], 0x10
lea eax, [esp + 0x6c]
push eax
push dword [esi + ebx*2]
call sub.WS2_32.dll___WSAFDIsSet
movzx ecx, word [esi + ebx*2 + 6]
test eax, eax
je 0x4622fc
or ecx, 0x400
mov word [esi + ebx*2 + 6], cx
xor ecx, ecx
inc ecx
mov ebx, dword [esp + 0x24]
cmp cx, 1
sbb ebx, 0xffffffff
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x462288
jmp 0x462258
xor ebx, ebx
jmp 0x462258
xor ebx, ebx
dec ebx
jmp 0x462258