Function at 0x52fb00
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
test rcx, rcx
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov esi, r8d
mov ebp, edx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
mov r12d, edi
mov r13, rcx
je 0x52fb59
test edx, edx
mov r8d, edi
je 0x52fb59
mov rax, rcx
cmp qword [rax], 0xffffffffffffffff
jne 0x52fb87
inc r8d
add rax, 0x10
cmp r8d, ebp
jb 0x52fb47
test esi, esi
je 0x52fb80
test esi, esi
jns 0x52fb78
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, 0xffffffff
mov eax, edi
jmp 0x52fece
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x52fece
test esi, esi
mov qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips], rbx
jle 0x52fba0
mov r12d, esi
call fcn.0053bed0
mov rbx, rax
jmp 0x52fba5
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x678], r14
mov qword [rsp + 0x670], r15
mov r10d, edi
mov r15, rbp
mov dword [rsp + 0x40], edi
mov r11d, edi
mov dword [rsp + 0x250], edi
mov r8d, edi
mov dword [rsp + AfxDaoInit], edi
mov r14, 0xffffffffffffffff
nop
nop
mov rdx, qword [r13]
mov word [r13 + 0xa], di
cmp rdx, 0xffffffffffffffff
je 0x52fcea
movzx r9d, word [r13 + 8]
test r9b, 7
je 0x52fcea
cmp rdx, r14
cmova r14, rdx
test r9b, 1
je 0x52fc4e
test r10d, r10d
mov ecx, edi
mov rax, rdi
je 0x52fc31
nop
nop
cmp qword [rsp + rax*8 + 0x48], rdx
je 0x52fc31
inc ecx
inc rax
cmp ecx, r10d
jb 0x52fc20
cmp ecx, r10d
jne 0x52fc4e
cmp r10d, 0x40
jae 0x52fc4e
mov qword [rsp + rax*8 + 0x48], rdx
mov r10d, dword [rsp + 0x40]
inc r10d
mov dword [rsp + 0x40], r10d
test r9b, 4
je 0x52fc9a
test r11d, r11d
mov ecx, edi
mov rax, rdi
je 0x52fc74
nop
cmp qword [rsp + rax*8 + 0x258], rdx
je 0x52fc74
inc ecx
inc rax
cmp ecx, r11d
jb 0x52fc60
cmp ecx, r11d
jne 0x52fc9a
cmp r11d, 0x40
jae 0x52fc9a
mov qword [rsp + rax*8 + 0x258], rdx
mov r11d, dword [rsp + 0x250]
inc r11d
mov dword [rsp + 0x250], r11d
test r9b, 2
je 0x52fcea
test r8d, r8d
mov ecx, edi
mov rax, rdi
je 0x52fcc4
nop
nop
cmp qword [rsp + rax*8 + 0x468], rdx
je 0x52fcc4
inc ecx
inc rax
cmp ecx, r8d
jb 0x52fcb0
cmp ecx, r8d
jne 0x52fcea
cmp r8d, 0x40
jae 0x52fcea
mov qword [rsp + rax*8 + 0x468], rdx
mov r8d, dword [rsp + 0x460]
inc r8d
mov dword [rsp + AfxDaoInit], r8d
add r13, 0x10
dec rbp
jne 0x52fbe0
test r10d, r10d
jne 0x52fd32
test r11d, r11d
jne 0x52fd32
test r8d, r8d
jne 0x52fd32
test esi, esi
je 0x52feb4
test esi, esi
jns 0x52fd25
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea edi, [rbp - 1]
jmp 0x52feb4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x52feb4
lea r13, [rsp + 0x30]
test esi, esi
cmovs r13, rdi
jmp 0x52fd55
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x250]
mov r8d, dword [rsp + 0x460]
test esi, esi
jle 0x52fd86
mov eax, 0x10624dd3
imul r12d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r12d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x52fd92
test esi, esi
jne 0x52fd92
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
test r8d, r8d
lea r9, [rsp + 0x460]
lea r8, [rsp + 0x250]
cmove r9, rdi
test r11d, r11d
lea rdx, [rsp + 0x40]
cmove r8, rdi
test r10d, r10d
lea ecx, [r14 + 1]
cmove rdx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x52fe28
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x52fdeb
cmp dword [0x00773684], edi
jne 0x52fe28
cmp eax, 0x2714
jne 0x52fe28
test esi, esi
jle 0x52fd40
call fcn.0053bed0
mov rdx, rbx
mov rcx, rax
call fcn.0053bf10
mov r12d, esi
sub r12d, eax
test r12d, r12d
jle 0x52fe3a
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x250]
mov r8d, dword [rsp + 0x460]
jmp 0x52fd55
test ebp, ebp
jns 0x52fe36
mov eax, 0xffffffff
jmp 0x52feb6
test ebp, ebp
jne 0x52fe3e
xor eax, eax
jmp 0x52feb6
mov rbx, qword [rsp + 0x6b0]
add rbx, 0xa
nop
nop
mov rcx, qword [rbx - 0xa]
mov word [rbx], 0
cmp rcx, 0xffffffffffffffff
je 0x52feab
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fe71
or word [rbx], 1
mov rcx, qword [rbx - 0xa]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fe8a
or word [rbx], 4
mov rcx, qword [rbx - 0xa]
lea rdx, [rsp + 0x460]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fea3
or word [rbx], 2
cmp word [rbx], 0
je 0x52feab
inc edi
add rbx, 0x10
dec r15
jne 0x52fe50
mov eax, edi
mov r14, qword [rsp + 0x678]
mov r15, qword [rsp + 0x670]
mov rbx, qword [rsp + reloc.MFC42u.dll_CWnd::CancelToolTips]
mov r13, qword [rsp + 0x680]
mov r12, qword [rsp + 0x688]
mov rdi, qword [rsp + 0x690]
mov rsi, qword [rsp + 0x698]
mov rbp, qword [rsp + 0x6a0]
add rsp, 0x6a8
ret