Function at 0x4e2dd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], esi
cmp dword [ebp + 0x18], esi
jl 0x4e2e18
jg 0x4e2e0e
mov edx, dword [ebp + 0x14]
cmp edx, 0x7fffffff
jb 0x4e2e1b
mov dword [ebp + 0x14], 0x7fffffff
mov dword [ebp + 0x18], esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x4e2e6e
cmp ecx, eax
jne 0x4e2e6e
cmp dword [ebp + 0x10], eax
jne 0x4e2e6e
cmp edx, esi
je 0x4e2e5b
jge 0x4e2e54
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], esi
jl 0x4e2eb5
jg 0x4e2e79
cmp edx, esi
jbe 0x4e2eb5
lea eax, [ebp - 0x340]
push eax
mov edi, edx
call fcn.004f3990
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x324], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x320], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x31c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x318], edx
xor esi, esi
xor edx, edx
or ebx, 0xffffffff
xor esi, esi
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x20c], esi
cmp eax, 0xffffffff
je 0x4e2efa
mov esi, 1
mov edx, esi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], edx
mov ebx, eax
mov dword [ebp - 0x314], eax
cmp ecx, 0xffffffff
je 0x4e2f6d
xor eax, eax
test esi, esi
je 0x4e2f13
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x4e2f13
inc eax
cmp eax, esi
jb 0x4e2f05
cmp eax, esi
jne 0x4e2f30
cmp esi, 0x40
jae 0x4e2f30
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
xor eax, eax
test edx, edx
je 0x4e2f44
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x4e2f44
inc eax
cmp eax, edx
jb 0x4e2f36
cmp eax, edx
jne 0x4e2f61
cmp edx, 0x40
jae 0x4e2f61
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
inc edx
mov dword [ebp - 0x108], edx
cmp ecx, ebx
jbe 0x4e2f6d
mov ebx, ecx
mov dword [ebp - 0x314], ebx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x310], ecx
cmp eax, 0xffffffff
je 0x4e2fcc
mov dword [ebp - 0x30c], eax
mov ecx, 1
xor eax, eax
mov dword [ebp - 0x310], ecx
test edx, edx
je 0x4e2fab
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + eax*4 - 0x104], ebx
je 0x4e2fa5
inc eax
cmp eax, edx
jb 0x4e2f94
mov ebx, dword [ebp - 0x314]
cmp eax, edx
jne 0x4e2fc4
cmp edx, 0x40
jae 0x4e2fc4
mov edx, dword [ebp + 0x10]
mov dword [ebp + eax*4 - 0x104], edx
inc dword [ebp - 0x108]
cmp dword [ebp + 0x10], ebx
jbe 0x4e2fcc
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
jg 0x4e2ff3
jl 0x4e2fda
cmp dword [ebp + 0x14], 0
jae 0x4e2ff3
inc ebx
mov dword [ebp - 0x330], ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x314], 0
jmp 0x4e3020
inc ebx
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x330], ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x314], eax
jmp 0x4e3020
mov ecx, dword [ebp - 0x310]
mov esi, dword [ebp - 0x20c]
lea esp, [esp]
cmp dword [ebp + 0x18], 0
jl 0x4e305d
jg 0x4e302e
cmp dword [ebp + 0x14], 0
jbe 0x4e305d
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x32c], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x328], edx
jmp 0x4e3071
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x4e3071
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x314]
push edx
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x310]
and ecx, edx
lea eax, [ebp - 0x108]
push eax
neg esi
push ecx
mov ecx, dword [ebp - 0x330]
sbb esi, esi
lea eax, [ebp - 0x20c]
and esi, eax
push esi
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x4e314c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4e30cd
cmp dword [0x596860], 0
jne 0x4e2e40
cmp eax, 0x2714
jne 0x4e2e40
cmp dword [ebp + 0x18], 0
jl 0x4e3010
jg 0x4e30e3
cmp dword [ebp + 0x14], 0
jbe 0x4e3010
lea edx, [ebp - 0x340]
push edx
call fcn.004f3990
mov edx, dword [ebp - 0x324]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x320]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x31c]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x318]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004f3a40
mov edi, dword [ebp + 0x14]
sub edi, eax
add esp, 0x20
test edi, edi
jle 0x4e2e5b
jmp 0x4e3010
test eax, eax
js 0x4e2e40
je 0x4e2e5b
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x4e318e
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e317a
mov esi, 1
lea edx, [ebp - 0x108]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e318e
or esi, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x4e31be
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e31aa
or esi, 8
lea ecx, [ebp - 0x108]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e31be
or esi, 4
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
je 0x4e31ee
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e31da
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e31ee
or esi, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret