Function at 0x52f740
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x6b8
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
xor edi, edi
cmp rcx, 0xffffffffffffffff
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov r14, r8
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
mov ebp, edi
mov esi, r9d
mov r13, rdx
mov r12, rcx
jne 0x52f7bf
cmp rdx, rcx
jne 0x52f7bf
cmp r8, rcx
jne 0x52f7bf
test r9d, r9d
je 0x52f7b8
test r9d, r9d
jns 0x52f7af
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, r12d
mov eax, r12d
jmp 0x52fabc
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
jmp 0x52fabc
test r9d, r9d
mov qword [rsp + 0x6b0], rbx
jle 0x52f7d9
mov ebp, r9d
call fcn.0053bed0
mov rbx, rax
jmp 0x52f7de
mov rbx, qword [rsp + 0x30]
mov r9, 0xffffffffffffffff
mov edx, edi
mov dword [rsp + 0x40], edi
cmp r12, r9
mov ecx, edi
mov dword [rsp + 0x250], edi
lea eax, [r9 + 2]
je 0x52f81c
mov qword [rsp + 0x258], r12
mov ecx, eax
mov dword [rsp + 0x250], eax
mov qword [rsp + 0x48], r12
mov edx, eax
mov dword [rsp + 0x40], eax
mov r9, r12
cmp r13, 0xffffffffffffffff
je 0x52f8a3
test ecx, ecx
mov eax, edi
je 0x52f843
lea r8, [rsp + 0x258]
cmp qword [r8], r13
je 0x52f843
inc eax
add r8, 8
cmp eax, ecx
jb 0x52f834
cmp eax, ecx
jne 0x52f864
cmp ecx, 0x40
jae 0x52f864
mov qword [rsp + rax*8 + 0x258], r13
mov ecx, dword [rsp + 0x250]
inc ecx
mov dword [rsp + 0x250], ecx
test edx, edx
mov eax, edi
je 0x52f87f
lea r8, [rsp + 0x48]
nop
cmp qword [r8], r13
je 0x52f87f
inc eax
add r8, 8
cmp eax, edx
jb 0x52f870
cmp eax, edx
jne 0x52f897
cmp edx, 0x40
jae 0x52f897
mov qword [rsp + rax*8 + 0x48], r13
mov edx, dword [rsp + 0x40]
inc edx
mov dword [rsp + 0x40], edx
cmp r13, r9
mov eax, 1
cmova r9, r13
cmp r14, 0xffffffffffffffff
mov dword [rsp + AfxDaoInit], edi
je 0x52f8f8
test edx, edx
mov dword [rsp + AfxDaoInit], eax
mov qword [rsp + 0x468], r14
mov eax, edi
je 0x52f8df
lea r8, [rsp + 0x48]
nop
nop
cmp qword [r8], r14
je 0x52f8df
inc eax
add r8, 8
cmp eax, edx
jb 0x52f8d0
cmp eax, edx
jne 0x52f8f1
cmp edx, 0x40
jae 0x52f8f1
mov qword [rsp + rax*8 + 0x48], r14
inc dword [rsp + 0x40]
cmp r14, r9
cmova r9, r14
mov qword [rsp + 0x678], r15
lea r10d, [r9 + 1]
lea r15, [rsp + 0x30]
test esi, esi
mov dword [rsp + 0x38], r10d
cmovs r15, rdi
jmp 0x52f930
mov ecx, dword [rsp + 0x250]
mov r10d, dword [rsp + 0x38]
nop
test esi, esi
jle 0x52f95f
mov eax, 0x10624dd3
imul ebp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x52f96b
test esi, esi
jne 0x52f96b
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
cmp dword [rsp + 0x460], edi
lea r8, [rsp + 0x460]
lea rdx, [rsp + 0x250]
cmove r8, rdi
test ecx, ecx
lea r9, [rsp + 0x40]
cmove rdx, rdi
mov ecx, r10d
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov r12d, eax
jne 0x52f9f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x52f9c0
cmp dword [0x00773684], edi
jne 0x52f9f1
cmp eax, 0x2714
jne 0x52f9f1
test esi, esi
jle 0x52f920
call fcn.0053bed0
mov rdx, rbx
mov rcx, rax
call fcn.0053bf10
mov ebp, esi
sub ebp, eax
test ebp, ebp
jle 0x52fa05
mov ecx, dword [rsp + 0x250]
mov r10d, dword [rsp + 0x38]
jmp 0x52f930
test r12d, r12d
jns 0x52fa00
mov eax, 0xffffffff
jmp 0x52faac
test r12d, r12d
jne 0x52fa0c
xor eax, eax
jmp 0x52faac
mov rbx, qword [rsp + 0x6c0]
cmp rbx, 0xffffffffffffffff
je 0x52fa48
lea rdx, [rsp + 0x250]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rsp + 0x40]
mov rcx, rbx
test eax, eax
mov eax, 1
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fa48
or edi, 4
cmp r13, 0xffffffffffffffff
je 0x52fa79
lea rdx, [rsp + 0x250]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fa65
or edi, 8
lea rdx, [rsp + 0x40]
mov rcx, r13
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fa79
or edi, 4
cmp r14, 0xffffffffffffffff
je 0x52faaa
lea rdx, [rsp + 0x460]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52fa96
or edi, 2
lea rdx, [rsp + 0x40]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x52faaa
or edi, 4
mov eax, edi
mov r15, qword [rsp + 0x678]
mov rbx, qword [rsp + 0x6b0]
mov r14, qword [rsp + 0x680]
mov r13, qword [rsp + 0x688]
mov r12, qword [rsp + 0x690]
mov rdi, qword [rsp + 0x698]
mov rsi, qword [rsp + 0x6a0]
mov rbp, qword [rsp + 0x6a8]
add rsp, 0x6b8
ret