Function at 0x4260f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x330
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x32c], eax
xor eax, eax
mov dword [esp + 0x10], 0
push ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x348]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
push ebp
push edi
test eax, eax
jl 0x42614a
jg 0x42613d
mov edi, dword [esp + 0x34c]
cmp edi, 0x7fffffff
jb 0x426151
xor eax, eax
mov edi, bind
mov dword [esp + 0xc], eax
jmp 0x426151
mov edi, dword [esp + 0x34c]
cmp dword [esp + 0x340], 0xffffffff
mov ebp, dword [esp + 0x344]
jne 0x4261bc
cmp ebp, 0xffffffff
jne 0x4261bc
cmp dword [esp + 0x348], ebp
jne 0x4261bc
test edi, edi
je 0x4261a2
jns 0x42619b
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00453227
add esp, 0x330
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00453227
add esp, 0x330
ret
test eax, eax
jl 0x4261d7
jg 0x4261c6
test edi, edi
je 0x4261d7
mov dword [esp + 0x10], edi
call fcn.0041c880
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x340]
push esi
xor esi, esi
mov dword [esp + 0x30], esi
cmp eax, 0xffffffff
je 0x4261fe
mov esi, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x23c], eax
or ecx, 0xffffffff
mov ebx, eax
cmp eax, ecx
mov edx, esi
cmove ebx, ecx
mov ecx, edx
mov dword [esp + 0x238], ecx
cmp ebp, 0xffffffff
je 0x426289
xor eax, eax
test esi, esi
je 0x42622b
nop
cmp dword [esp + eax*4 + 0x34], ebp
je 0x42622b
inc eax
cmp eax, esi
jb 0x426220
cmp eax, esi
jne 0x426241
cmp esi, 0x40
jae 0x426241
mov dword [esp + eax*4 + 0x34], ebp
mov esi, dword [esp + 0x30]
inc esi
mov dword [esp + 0x30], esi
xor eax, eax
test edx, edx
je 0x426255
cmp dword [esp + eax*4 + 0x23c], ebp
je 0x426255
inc eax
cmp eax, edx
jb 0x426247
mov ecx, edx
mov dword [esp + 0x238], ecx
cmp eax, edx
jne 0x426284
mov dword [esp + 0x238], ecx
cmp edx, 0x40
jae 0x426284
mov dword [esp + eax*4 + 0x23c], ebp
mov ecx, dword [esp + 0x238]
inc ecx
mov dword [esp + 0x238], ecx
cmp ebp, ebx
cmova ebx, ebp
mov edx, dword [esp + 0x34c]
mov dword [esp + 0x134], 0
cmp edx, 0xffffffff
je 0x4262ea
xor eax, eax
mov dword [esp + 0x138], edx
mov dword [esp + 0x134], 1
test ecx, ecx
je 0x4262ce
nop dword [eax + eax]
cmp dword [esp + eax*4 + 0x23c], edx
je 0x4262ce
inc eax
cmp eax, ecx
jb 0x4262c0
cmp eax, ecx
jne 0x4262e5
cmp ecx, 0x40
jae 0x4262e5
mov dword [esp + eax*4 + 0x23c], edx
inc dword [esp + 0x238]
cmp edx, ebx
cmova ebx, edx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jg 0x426302
jl 0x4262f8
test edi, edi
jae 0x426302
mov dword [esp + 0x18], 0
jmp 0x42630a
lea eax, [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
test ecx, ecx
jl 0x42634a
jg 0x42631f
test edi, edi
je 0x42634a
mov eax, 0x10624dd3
mov ecx, ebx
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x28], eax
jmp 0x426358
mov eax, edi
or eax, ecx
jne 0x426358
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push dword [esp + 0x18]
xor ecx, ecx
lea eax, [esp + 0x23c]
cmp dword [esp + 0x138], ecx
push eax
lea eax, [esp + 0x13c]
cmove eax, ecx
test esi, esi
push eax
lea eax, [esp + 0x3c]
cmove eax, ecx
push eax
push dword [esp + 0x3c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4263f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4263ab
cmp dword [0x4bd748], 0
jne 0x4263f9
cmp eax, 0x2714
jne 0x4263f9
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x4263c0
jg 0x4263c9
test edi, edi
jne 0x4263c9
nop dword [eax]
mov esi, dword [esp + 0x30]
jmp 0x426315
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0041c880
push edx
push eax
call fcn.0041c7e0
mov ebx, edi
add esp, 0x10
sub ebx, eax
test ebx, ebx
jle 0x426403
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
jmp 0x426315
test eax, eax
jns 0x426401
or eax, 0xffffffff
jmp 0x4264a6
jne 0x42640a
xor eax, eax
jmp 0x4264a6
mov ebx, dword [esp + 0x344]
xor esi, esi
cmp ebx, 0xffffffff
je 0x426442
lea eax, [esp + 0x30]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x238]
push eax
push ebx
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x426442
or esi, 4
cmp ebp, 0xffffffff
je 0x42646e
lea eax, [esp + 0x30]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x426459
or esi, 8
lea eax, [esp + 0x238]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42646e
or esi, 4
mov ebx, dword [esp + 0x34c]
cmp ebx, 0xffffffff
je 0x4264a4
lea eax, [esp + 0x134]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42648f
or esi, 2
lea eax, [esp + 0x238]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4264a4
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x33c]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453227
add esp, 0x330
ret