Function at 0x6b26aac0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x35c
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x34c], 0
jne 0x6b26aaf9
cmp dword [ebp + 0xc], 0xffffffff
jne 0x6b26aaf9
cmp dword [ebp + 0x10], 0xffffffff
je 0x6b26aee0
xor edi, edi
test ebx, ebx
jle 0x6b26ab12
call fcn.6b241e20
mov edi, ebx
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x34c], edx
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x324], 0
je 0x6b26ab4f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x118], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x6b26aec4
mov edx, dword [ebp - 0x324]
test edx, edx
je 0x6b26af0a
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x320], eax
je 0x6b26af24
lea esi, [ebp - 0x324]
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x33c], esi
jmp 0x6b26ab96
cmp dword [esi + eax*4 + 4], ecx
je 0x6b26abb5
add eax, 1
cmp eax, edx
jne 0x6b26ab90
cmp eax, 0x3f
ja 0x6b26abb5
mov esi, dword [ebp + 0xc]
add edx, 1
mov dword [ebp - 0x324], edx
mov dword [ebp + eax*4 - 0x320], esi
mov edx, dword [ebp - 0x11c]
test edx, edx
je 0x6b26aefd
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x11c]
cmp dword [ebp - 0x118], eax
je 0x6b26ac06
xor eax, eax
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 0x11c]
jmp 0x6b26abe7
cmp dword [esi + eax*4 + 4], ecx
je 0x6b26ac06
add eax, 1
cmp eax, edx
jne 0x6b26abe1
cmp eax, 0x3f
ja 0x6b26ac06
mov ecx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp - 0x11c], edx
mov dword [ebp + eax*4 - 0x118], ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
mov ecx, eax
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x220], 0
je 0x6b26aca9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x11c]
test eax, eax
mov edx, eax
mov dword [ebp - 0x340], eax
je 0x6b26af1d
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x118], eax
je 0x6b26aca2
mov dword [ebp - 0x340], ecx
xor eax, eax
mov ecx, dword [ebp + 0x10]
jmp 0x6b26ac71
cmp dword [esi + eax*4 + 4], ecx
je 0x6b26aea3
add eax, 1
cmp eax, edx
jne 0x6b26ac67
cmp eax, 0x3f
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x340], edx
ja 0x6b26aca2
mov edx, dword [ebp + 0x10]
mov dword [ebp + eax*4 - 0x118], edx
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x11c], edx
cmp ecx, dword [ebp + 0x10]
cmovb ecx, dword [ebp + 0x10]
xor edx, edx
test ebx, ebx
lea eax, [ebp - 0x32c]
cmovs eax, edx
mov dword [ebp - 0x340], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x344], eax
cmp ebx, 0
jle 0x6b26ada0
mov eax, 0x10624dd3
imul edi
mov eax, edi
sar eax, 0x1f
sar edx, 6
sub edx, eax
mov eax, edi
mov dword [ebp - 0x32c], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x344]
mov dword [esp], eax
call sub.ws2_32.dll_select
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x6b26adc0
call sub.ws2_32.dll_WSAGetLastError
test eax, eax
je 0x6b26ad59
mov edx, dword [0x6b2a018c]
test edx, edx
jne 0x6b26aeb5
cmp eax, 0x2714
jne 0x6b26aeb5
test ebx, ebx
jle 0x6b26acc5
call fcn.6b241e20
mov ecx, dword [ebp - 0x348]
mov edi, ebx
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x34c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
call fcn.6b241e50
sub edi, eax
test edi, edi
jg 0x6b26acc5
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
jne 0x6b26acfb
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
jmp 0x6b26acfb
test eax, eax
js 0x6b26aeb5
je 0x6b26ad92
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
je 0x6b26ae0d
mov eax, dword [ebp - 0x33c]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
setne bl
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
mov edx, ebx
or edx, 4
sub esp, 8
test eax, eax
cmovne ebx, edx
cmp dword [ebp + 0xc], 0xffffffff
je 0x6b26ae51
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
mov edx, ebx
or edx, 8
sub esp, 8
test eax, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
cmovne ebx, edx
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
mov edx, ebx
or edx, 4
sub esp, 8
test eax, eax
cmovne ebx, edx
cmp dword [ebp + 0x10], 0xffffffff
je 0x6b26ad94
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
mov edx, ebx
or edx, 2
sub esp, 8
test eax, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], esi
cmovne ebx, edx
mov dword [esp], eax
call sub.ws2_32.dll___WSAFDIsSet
mov edx, ebx
or edx, 4
sub esp, 8
test eax, eax
cmovne ebx, edx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x340]
cmp ecx, dword [ebp + 0x10]
cmovb ecx, dword [ebp + 0x10]
jmp 0x6b26aca9
lea esp, [ebp - 0xc]
mov ebx, 0xffffffff
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x324]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x33c], eax
lea esi, [ebp - 0x11c]
jmp 0x6b26ac12
test ebx, ebx
je 0x6b26ad92
js 0x6b26af35
mov dword [esp], ebx
lea esi, [esi]
call sub.kernel32.dll_Sleep
sub esp, 4
jmp 0x6b26ad92
xor eax, eax
lea esi, [ebp - 0x11c]
jmp 0x6b26abf3
lea esi, [ebp - 0x324]
xor eax, eax
mov dword [ebp - 0x33c], esi
jmp 0x6b26aba2
xor eax, eax
jmp 0x6b26ac89
lea eax, [ebp - 0x324]
mov dword [ebp - 0x33c], eax
jmp 0x6b26abb5
mov dword [esp], 0x2726
mov ebx, 0xffffffff
call sub.ws2_32.dll_WSASetLastError
sub esp, 4
jmp 0x6b26ad94