Function at 0x440720
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [ebp + 8]
mov dword [eax + 0x191b8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x4407db
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [ebp - 0x32c], 0
jmp 0x440782
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x32c]
cmp edx, dword [ecx]
jae 0x4407a5
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*4 + 4]
cmp edx, dword [ebp + 0xc]
jne 0x4407a3
jmp 0x4407a5
jmp 0x440773
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [eax]
jne 0x4407d7
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x40
jae 0x4407d7
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
xor eax, eax
jne 0x440767
mov ecx, dword [ebp + 0x10]
and ecx, 2
je 0x44086d
lea edx, [ebp - 0x224]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [eax], 0
mov dword [ebp - 0x330], 0
jmp 0x440814
mov ecx, dword [ebp - 0x330]
add ecx, 1
mov dword [ebp - 0x330], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x330]
cmp eax, dword [edx]
jae 0x440837
mov ecx, dword [ebp - 0x330]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 4]
cmp eax, dword [ebp + 0xc]
jne 0x440835
jmp 0x440837
jmp 0x440805
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x330]
cmp edx, dword [ecx]
jne 0x440869
mov eax, dword [ebp - 8]
cmp dword [eax], 0x40
jae 0x440869
mov ecx, dword [ebp - 0x330]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + ecx*4 + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax], edx
xor ecx, ecx
jne 0x4407f9
mov edx, dword [ebp + 0x10]
and edx, 4
je 0x4408ff
lea eax, [ebp - 0x120]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov dword [ebp - 0x334], 0
jmp 0x4408a6
mov edx, dword [ebp - 0x334]
add edx, 1
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x334]
cmp ecx, dword [eax]
jae 0x4408c9
mov edx, dword [ebp - 0x334]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4408c7
jmp 0x4408c9
jmp 0x440897
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x334]
cmp eax, dword [edx]
jne 0x4408fb
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x40
jae 0x4408fb
mov edx, dword [ebp - 0x334]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
xor edx, edx
jne 0x44088b
cmp dword [ebp + 0x14], 0
jl 0x440914
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x440934
mov eax, dword [ebp + 0x14]
neg eax
cdq
mov ecx, 0xf4240
idiv ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
neg eax
cdq
mov ecx, 0xf4240
idiv ecx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4409c9
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0x10]
and ecx, 1
je 0x440983
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x440983
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
and edx, 2
je 0x4409a5
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4409a5
mov edx, dword [ebp - 0x18]
or edx, 2
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x4409c7
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4409c7
mov eax, dword [ebp - 0x18]
or eax, 4
mov dword [ebp - 0x18], eax
jmp 0x4409de
cmp dword [ebp - 0x18], 0
jge 0x4409de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x191b8], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret