Function at 0x4826f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x318
xor edx, edx
cmp dword [esp + 0x32c], edx
mov dword [esp], edx
jl 0x482726
jg 0x482714
mov eax, dword [esp + 0x328]
cmp eax, 0x7fffffff
jb 0x48272d
mov dword [esp + 0x328], SysStringLen
mov dword [esp + 0x32c], edx
mov eax, dword [esp + 0x328]
mov ecx, dword [esp + 0x320]
push ebp
mov ebp, dword [esp + 0x320]
cmp ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x32c]
jne 0x482763
cmp ecx, ebp
jne 0x482763
cmp edi, ebp
jne 0x482763
push eax
call fcn.004826c0
add esp, 4
pop edi
pop ebp
add esp, 0x318
ret
cmp dword [esp + 0x334], edx
jl 0x482776
jg 0x482772
cmp eax, edx
jbe 0x482776
mov dword [esp + 8], eax
push ebx
push esi
xor esi, esi
or ebx, 0xffffffff
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x120], esi
je 0x4827ac
mov esi, 1
mov edx, esi
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edx
mov ebx, ebp
cmp ecx, 0xffffffff
je 0x48281b
xor eax, eax
test esi, esi
jbe 0x4827c7
cmp dword [esp + eax*4 + 0x124], ecx
je 0x4827c7
add eax, 1
cmp eax, esi
jb 0x4827b7
cmp eax, esi
jne 0x4827e8
cmp esi, 0x40
jae 0x4827e8
mov dword [esp + eax*4 + 0x124], ecx
mov esi, dword [esp + 0x120]
add esi, 1
mov dword [esp + 0x120], esi
xor eax, eax
test edx, edx
jbe 0x4827fd
mov edi, edi
cmp dword [esp + eax*4 + 0x20], ecx
je 0x4827fd
add eax, 1
cmp eax, edx
jb 0x4827f0
cmp eax, edx
jne 0x482815
cmp edx, 0x40
jae 0x482815
mov dword [esp + eax*4 + 0x20], ecx
mov edx, dword [esp + 0x1c]
add edx, 1
mov dword [esp + 0x1c], edx
cmp ecx, ebx
jbe 0x48281b
mov ebx, ecx
xor ecx, ecx
cmp edi, 0xffffffff
mov dword [esp + 0x224], ecx
je 0x482866
mov ecx, 1
xor eax, eax
test edx, edx
mov dword [esp + 0x228], edi
mov dword [esp + 0x224], ecx
jbe 0x48284f
cmp dword [esp + eax*4 + 0x20], edi
je 0x48284f
add eax, 1
cmp eax, edx
jb 0x482842
cmp eax, edx
jne 0x482860
cmp edx, 0x40
jae 0x482860
mov dword [esp + eax*4 + 0x20], edi
add dword [esp + 0x1c], ecx
cmp edi, ebx
jbe 0x482866
mov ebx, edi
cmp dword [esp + 0x33c], 0
jg 0x482880
jl 0x48287c
cmp dword [esp + 0x338], 0
jae 0x482880
xor edi, edi
jmp 0x482884
lea edi, [esp + 0x14]
mov edx, dword [esp + 0x33c]
test edx, edx
jl 0x4828cb
jg 0x48289c
mov eax, dword [esp + 0x338]
test eax, eax
jbe 0x4828d2
mov eax, 0x10624dd3
imul dword [esp + 0x10]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
imul eax, eax, 0x3e8
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x18], edx
jmp 0x4828de
mov eax, dword [esp + 0x338]
or eax, edx
jne 0x4828de
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
neg ecx
sbb ecx, ecx
push edi
lea edx, [esp + 0x228]
and ecx, edx
lea eax, [esp + 0x20]
push eax
neg esi
sbb esi, esi
lea eax, [esp + 0x128]
push ecx
and esi, eax
push esi
add ebx, 1
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x48291c
pop esi
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x318
ret
jne 0x48292b
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x318
ret
xor esi, esi
cmp ebp, 0xffffffff
je 0x48295b
lea ecx, [esp + 0x120]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482949
mov esi, 1
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48295b
or esi, 4
mov edi, dword [esp + 0x330]
cmp edi, 0xffffffff
je 0x48298e
lea eax, [esp + 0x120]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48297c
or esi, 8
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48298e
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4829c1
lea edx, [esp + 0x224]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4829af
or esi, 2
lea eax, [esp + 0x1c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4829c1
or esi, 4
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x318
ret