Function at 0x6b26af50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x35c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x344], 0
test edi, edi
je 0x6b26af9d
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x6b26af9d
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x6b26afb2
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x6b26af96
cmp dword [ecx + eax*8], 0xffffffff
jne 0x6b26afb2
add eax, 1
cmp eax, edx
jne 0x6b26af90
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x6b26b350
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
test ecx, ecx
jle 0x6b26afcf
call fcn.6b241e20
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], edx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x220], 0
lea eax, [eax + esi*8]
mov dword [ebp - 0x11c], 0
lea esi, [ebp - 0x220]
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x354], ebx
lea esi, [esi]
mov eax, dword [ecx]
xor ebx, ebx
mov word [ecx + 6], bx
cmp eax, 0xffffffff
je 0x6b26b120
movzx ebx, word [ecx + 4]
test bl, 7
je 0x6b26b120
test bl, 1
je 0x6b26b090
mov edi, dword [ebp - 0x350]
test edi, edi
je 0x6b26b37f
cmp eax, dword [ebp - 0x320]
je 0x6b26b090
xor edx, edx
jmp 0x6b26b079
cmp eax, dword [ebp + edx*4 - 0x320]
je 0x6b26b090
add edx, 1
cmp edx, edi
jne 0x6b26b070
cmp edx, 0x3f
jbe 0x6b26b381
lea esi, [esi]
test bl, 4
je 0x6b26b0d0
mov edi, dword [ebp - 0x348]
test edi, edi
je 0x6b26b36a
cmp eax, dword [ebp - 0x21c]
je 0x6b26b0d0
xor edx, edx
jmp 0x6b26b0ba
cmp eax, dword [esi + edx*4 + 4]
je 0x6b26b280
add edx, 1
cmp edx, edi
jne 0x6b26b0b0
cmp dword [ebp - 0x348], 0x3f
jbe 0x6b26b36c
nop
and ebx, 2
je 0x6b26b120
mov edi, dword [ebp - 0x34c]
test edi, edi
je 0x6b26b394
cmp eax, dword [ebp - 0x118]
je 0x6b26b120
xor edx, edx
jmp 0x6b26b0fd
cmp eax, dword [ebp + edx*4 - 0x118]
je 0x6b26b260
add edx, 1
cmp edx, edi
jne 0x6b26b0f0
cmp dword [ebp - 0x34c], 0x3f
ja 0x6b26b120
add dword [ebp - 0x34c], 1
mov dword [ebp + edx*4 - 0x118], eax
nop
lea esi, [esi]
add ecx, 8
cmp ecx, dword [ebp - 0x33c]
jne 0x6b26b030
mov eax, dword [ebp - 0x350]
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x354]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x348]
test ecx, ecx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x32c]
cmovns edi, eax
lea esi, [esi]
cmp dword [ebp + 0x10], 0
jle 0x6b26b240
mov eax, 0x10624dd3
imul ebx
mov eax, ebx
sar eax, 0x1f
sar edx, 6
sub edx, eax
mov eax, ebx
mov dword [ebp - 0x32c], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x324]
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.ws2_32.dll_select
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x6b26b295
call sub.ws2_32.dll_WSAGetLastError
test eax, eax
je 0x6b26b1f5
mov edx, dword [0x6b2a018c]
test edx, edx
jne 0x6b26b232
cmp eax, 0x2714
jne 0x6b26b232
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x6b26b170
call fcn.6b241e20
mov ecx, dword [ebp - 0x340]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x344]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
call fcn.6b241e50
mov ebx, dword [ebp + 0x10]
sub ebx, eax
test ebx, ebx
jg 0x6b26b170
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
jne 0x6b26b1a7
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
jmp 0x6b26b1a7
cmp dword [ebp - 0x34c], edx
je 0x6b26b104
add ecx, 8
cmp ecx, dword [ebp - 0x33c]
jne 0x6b26b030
jmp 0x6b26b12f
cmp dword [ebp - 0x348], edx
jne 0x6b26b0d0
lea esi, [esi]
jmp 0x6b26b0c1
test eax, eax
js 0x6b26b232
lea esi, [esi]
je 0x6b26afa8
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x33c], 0
jmp 0x6b26b2c9
cmp word [edi + 6], 0
jne 0x6b26b32e
add ebx, 1
add edi, 8
cmp ebx, dword [ebp + 0xc]
je 0x6b26b340
xor eax, eax
mov word [edi + 6], ax
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x6b26b2be
lea ecx, [ebp - 0x324]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x6b26b2f4
or word [edi + 6], 1
mov dword [esp + 4], esi
mov eax, dword [edi]
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x6b26b30e
or word [edi + 6], 4
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x6b26b2b7
or word [edi + 6], 2
add dword [ebp - 0x33c], 1
add ebx, 1
add edi, 8
cmp ebx, dword [ebp + 0xc]
jne 0x6b26b2c9
mov eax, dword [ebp - 0x33c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
js 0x6b26b39b
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.kernel32.dll_Sleep
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov dword [ebp + edx*4 - 0x21c], eax
add dword [ebp - 0x348], 1
jmp 0x6b26b0d0
xor edx, edx
mov dword [ebp + edx*4 - 0x320], eax
add dword [ebp - 0x350], 1
jmp 0x6b26b090
xor edx, edx
jmp 0x6b26b10d
mov dword [esp], 0x2726
call sub.ws2_32.dll_WSASetLastError
mov eax, 0xffffffff
sub esp, 4
jmp 0x6b26afaa