Function at 0x4ae480
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x6a8
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
xor edi, edi
cmp rcx, 0xffffffffffffffff
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov esi, r8d
mov rbp, rdx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
mov r13d, edi
mov r14, rcx
jne 0x4ae4f4
cmp rdx, rcx
jne 0x4ae4f4
test r8d, r8d
je 0x4ae4ed
test r8d, r8d
jns 0x4ae4e4
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, r14d
mov eax, r14d
jmp 0x4ae6f8
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x4ae6f8
test r8d, r8d
mov qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips], rbx
jle 0x4ae50e
mov r13d, r8d
call fcn.004b2570
mov rbx, rax
jmp 0x4ae513
mov rbx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
mov edx, edi
mov dword [rsp + 0x40], edi
cmp r14, r8
lea eax, [r8 + 2]
mov dword [rsp + 0x250], edi
je 0x4ae54d
mov qword [rsp + 0x258], r14
mov dword [rsp + 0x250], eax
mov qword [rsp + 0x48], r14
mov edx, eax
mov dword [rsp + 0x40], eax
mov r8, r14
cmp rbp, 0xffffffffffffffff
mov dword [rsp + AfxDaoInit], edi
je 0x4ae59c
test edx, edx
mov dword [rsp + AfxDaoInit], eax
mov qword [rsp + 0x468], rbp
mov eax, edi
je 0x4ae583
lea rcx, [rsp + 0x48]
cmp qword [rcx], rbp
je 0x4ae583
inc eax
add rcx, 8
cmp eax, edx
jb 0x4ae574
cmp eax, edx
jne 0x4ae595
cmp edx, 0x40
jae 0x4ae595
mov qword [rsp + rax*8 + 0x48], rbp
inc dword [rsp + 0x40]
cmp rbp, r8
cmova r8, rbp
mov qword [rsp + 0x670], r15
lea r15, [rsp + 0x30]
test esi, esi
lea r14d, [r8 + 1]
mov qword [rsp + CWnd::BindProperty], r12
cmovs r15, rdi
nop
nop
test esi, esi
jle 0x4ae5f1
mov eax, 0x10624dd3
imul r13d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r13d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x4ae5fd
test esi, esi
jne 0x4ae5fd
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x460]
lea rdx, [rsp + 0x250]
mov ecx, r14d
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov r12d, eax
jne 0x4ae65c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4ae639
cmp eax, 0x2714
jne 0x4ae65c
test esi, esi
jle 0x4ae5c0
call fcn.004b2570
mov rdx, rbx
mov rcx, rax
call fcn.004b25b0
mov r13d, esi
sub r13d, eax
test r13d, r13d
jg 0x4ae5c0
test r12d, r12d
mov r15, qword [rsp + 0x670]
mov rbx, qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips]
mov r14, qword [rsp + 0x6b0]
jns 0x4ae680
mov eax, 0xffffffff
jmp 0x4ae6f0
test r12d, r12d
jne 0x4ae689
xor eax, eax
jmp 0x4ae6f0
cmp r14, 0xffffffffffffffff
je 0x4ae6bd
lea rdx, [rsp + 0x250]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rsp + 0x40]
mov rcx, r14
test eax, eax
mov eax, 1
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ae6bd
or edi, 4
cmp rbp, 0xffffffffffffffff
je 0x4ae6ee
lea rdx, [rsp + 0x460]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ae6da
or edi, 2
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ae6ee
or edi, 4
mov eax, edi
mov r12, qword [rsp + 0x688]
mov r14, qword [rsp + 0x678]
mov r13, qword [rsp + 0x680]
mov rdi, qword [rsp + 0x690]
mov rsi, qword [rsp + 0x698]
mov rbp, qword [rsp + 0x6a0]
add rsp, 0x6a8
ret