Function at 0x4e7d30
Capabilities:
Get socket status

Disassembly:
mov eax, 0x3028
call fcn.004b5ac0
mov eax, dword [0x557200]
xor eax, esp
mov dword [esp + 0x3024], eax
mov eax, dword [esp + 0x302c]
mov ecx, dword [esp + 0x3030]
mov edx, dword [esp + 0x303c]
push ebx
mov ebx, dword [esp + 0x303c]
push ebp
push esi
mov dword [esp + 0x14], eax
or ebp, 0xffffffff
mov eax, dword [esp + 0x3040]
mov dword [esp + 0x20], eax
push edi
test ecx, ecx
jne 0x4e7da3
mov dword [eax], ecx
test edx, edx
jl 0x4e802c
jg 0x4e7d92
test ebx, ebx
je 0x4e802c
push edx
push ebx
call fcn.004e1bc0
mov eax, 0x11177
jmp 0x4e802e
test edx, edx
jg 0x4e7dba
jl 0x4e7dad
test ebx, ebx
jae 0x4e7dba
mov dword [esp + 0x10], 0
jmp 0x4e7e3e
mov eax, ebx
mov ecx, 0xd7b634db
mul ecx
mov ebp, 0x431bde82
mov dword [esp + 0x1c], eax
mov esi, edx
mov eax, ebx
mul ebp
mov edi, eax
mov ebp, edx
mov eax, dword [esp + 0x304c]
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x304c]
mov edx, 0x431bde82
mul edx
add ecx, esi
mov dword [esp + 0x10], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x10]
adc ebp, 0
mov dword [esp + 0x1c], edi
xor eax, eax
add ebx, ebp
adc eax, eax
add ecx, ebx
adc edx, eax
shrd ecx, edx, 0x12
imul eax, ecx, 0xf4240
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3048]
sub ecx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
or ebp, 0xffffffff
mov ecx, dword [esp + 0x3040]
mov dword [esp + 0x10], eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x102c], edi
mov dword [esp + 0x2030], edx
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x4e7f5e
mov ebx, dword [esp + 0x18]
add ebx, 4
nop dword [eax]
xor eax, eax
mov word [ebx + 6], ax
mov eax, dword [ebx]
cmp eax, 1
jne 0x4e7f55
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 4]
movzx eax, word [ebx + 4]
test al, 1
je 0x4e7ebd
xor eax, eax
test esi, esi
je 0x4e7ea0
cmp dword [esp + eax*4 + 0x2c], ecx
je 0x4e7ea0
inc eax
cmp eax, esi
jb 0x4e7e95
cmp eax, esi
jne 0x4e7eb9
cmp esi, 0x400
jae 0x4e7eb9
mov dword [esp + eax*4 + 0x2c], ecx
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x28], esi
movzx eax, word [ebx + 4]
test al, 4
je 0x4e7efb
xor eax, eax
test edi, edi
je 0x4e7ed5
cmp dword [esp + eax*4 + 0x1030], ecx
je 0x4e7ed5
inc eax
cmp eax, edi
jb 0x4e7ec7
cmp eax, edi
jne 0x4e7ef7
cmp edi, 0x400
jae 0x4e7ef7
mov dword [esp + eax*4 + 0x1030], ecx
mov edi, dword [esp + 0x102c]
inc edi
mov dword [esp + 0x102c], edi
movzx eax, word [ebx + 4]
test al, 0x72
je 0x4e7f35
xor eax, eax
test edx, edx
je 0x4e7f13
cmp dword [esp + eax*4 + 0x2034], ecx
je 0x4e7f13
inc eax
cmp eax, edx
jb 0x4e7f05
cmp eax, edx
jne 0x4e7f35
cmp edx, 0x400
jae 0x4e7f35
mov dword [esp + eax*4 + 0x2034], ecx
mov edx, dword [esp + 0x2030]
inc edx
mov dword [esp + 0x2030], edx
cmp ecx, ebp
cmovg ebp, ecx
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 0x14
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x3040]
jl 0x4e7e70
jmp 0x4e7f5e
cmp eax, 2
je 0x4e804e
push dword [esp + 0x10]
lea eax, [esp + 0x2034]
push eax
lea eax, [esp + 0x1034]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [ebp + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [esp + 0x24]
mov dword [ebp], eax
test eax, eax
je 0x4e7d99
jns 0x4e7fae
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x4e802c
call esi
add eax, 0xafc80
jmp 0x4e802e
xor ebx, ebx
mov dword [ebp], 0
cmp dword [esp + 0x3040], ebx
jle 0x4e802c
mov esi, dword [esp + 0x18]
add esi, 0xa
mov eax, dword [esi - 6]
cmp eax, 1
jne 0x4e8049
mov eax, dword [esi + 2]
mov edi, dword [eax + 4]
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e7fe8
or word [esi], 1
lea eax, [esp + 0x102c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e7ffe
or word [esi], 4
lea eax, [esp + 0x2030]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e8014
or word [esi], 0x10
movzx eax, word [esi]
test ax, ax
je 0x4e801f
inc dword [ebp]
inc ebx
add esi, 0x14
cmp ebx, dword [esp + 0x3040]
jl 0x4e7fc7
xor eax, eax
mov ecx, dword [esp + 0x3034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b4f32
add esp, 0x3028
ret 0x14
cmp eax, 2
jne 0x4e802c
mov eax, 9
jmp 0x4e802e