Function at 0x54eba0
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 0x54ec14
cmp rdx, rcx
jne 0x54ec14
test r8d, r8d
je 0x54ec0d
test r8d, r8d
jns 0x54ec04
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, r14d
mov eax, r14d
jmp 0x54ee18
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x54ee18
test r8d, r8d
mov qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips], rbx
jle 0x54ec2e
mov r13d, r8d
call fcn.00552c90
mov rbx, rax
jmp 0x54ec33
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 0x54ec6d
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 + AfxDeleteObject], edi
je 0x54ecbc
test edx, edx
mov dword [rsp + AfxDeleteObject], eax
mov qword [rsp + 0x468], rbp
mov eax, edi
je 0x54eca3
lea rcx, [rsp + 0x48]
cmp qword [rcx], rbp
je 0x54eca3
inc eax
add rcx, 8
cmp eax, edx
jb 0x54ec94
cmp eax, edx
jne 0x54ecb5
cmp edx, 0x40
jae 0x54ecb5
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 + 0x688], r12
cmovs r15, rdi
nop
nop
test esi, esi
jle 0x54ed11
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 0x54ed1d
test esi, esi
jne 0x54ed1d
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 0x54ed7c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x54ed59
cmp eax, 0x2714
jne 0x54ed7c
test esi, esi
jle 0x54ece0
call fcn.00552c90
mov rdx, rbx
mov rcx, rax
call fcn.00552cd0
mov r13d, esi
sub r13d, eax
test r13d, r13d
jg 0x54ece0
test r12d, r12d
mov r15, qword [rsp + 0x670]
mov rbx, qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips]
mov r14, qword [rsp + 0x6b0]
jns 0x54eda0
mov eax, 0xffffffff
jmp 0x54ee10
test r12d, r12d
jne 0x54eda9
xor eax, eax
jmp 0x54ee10
cmp r14, 0xffffffffffffffff
je 0x54eddd
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 0x54eddd
or edi, 4
cmp rbp, 0xffffffffffffffff
je 0x54ee0e
lea rdx, [rsp + 0x460]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x54edfa
or edi, 2
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x54ee0e
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