Function at 0x14009f630
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
push rdi
push r14
sub rsp, 0x698
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, r8
mov r14, rcx
test rcx, rcx
je 0x14009f889
test edx, edx
je 0x14009f8cd
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r15
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [r11 - 0x458], r15d
test edx, 0x300
je 0x14009f69d
mov rax, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dl, 0x10
je 0x14009f6b8
mov rax, qword [rcx]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 1
mov rax, qword [rcx]
mov qword [rsp + 0x468], rax
mov dword [rsp + 0x460], 1
call fcn.14005fed0
mov rbp, rax
mov qword [rsp + 0x6b8], rbx
movabs r12, 0x20c49ba5e353f7cf
test rdi, rdi
jns 0x14009f6f9
mov ebx, 0xffffffff
mov qword [rsp + 0x20], r15
jmp 0x14009f756
jne 0x14009f700
mov ebx, r15d
jmp 0x14009f723
mov rcx, rdi
mov rax, r12
sub rcx, rbp
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
test ebx, ebx
cmovs ebx, r15d
mov eax, 0x10624dd3
mov ecx, ebx
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x460]
xor ecx, ecx
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14009f78f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [r14 + 8], eax
call fcn.14002ed7c
mov dword [rax], ebx
jmp 0x14009f7b6
mov rcx, qword [r14]
lea rdx, [rsp + 0x460]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14009f7b0
call fcn.14002ed7c
mov dword [rax], 0x2746
jmp 0x14009f7b6
test esi, esi
jg 0x14009f81f
jns 0x14009f808
call fcn.14002ed7c
cmp dword [rax], 0xb
je 0x14009f7da
call fcn.14002ed7c
cmp dword [rax], 0x2733
je 0x14009f7da
call fcn.14002ed7c
cmp dword [rax], 0x2734
jne 0x14009f7f1
test rdi, rdi
js 0x14009f6ed
call fcn.14005fed0
cmp rdi, rax
jge 0x14009f6e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [r14 + 8], eax
call fcn.14002ed7c
mov dword [rax], ebx
xor al, al
jmp 0x14009f846
test ebx, ebx
mov eax, 0xb
mov ecx, 0x274c
cmovne eax, ecx
mov dword [r14 + 8], eax
xor al, al
jmp 0x14009f846
mov rcx, qword [r14]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14009f844
mov rcx, qword [r14]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14009f81b
mov al, 1
mov rbx, qword [rsp + 0x6b8]
mov rsi, qword [rsp + 0x690]
mov rbp, qword [rsp + 0x6c8]
mov r12, qword [rsp + 0x688]
mov r15, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140023a50
add rsp, 0x698
pop r14
pop rdi
ret
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.sock
mov r9d, 0xa3
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str._mongoc_socket_wait
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.events
mov r9d, 0xa4
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str._mongoc_socket_wait
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3