Function at 0x14001f0a0
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
mov dword [rbp + 0x1f8], edx
mov qword [rbp + 0x200], r8
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1cc], 0
jmp 0x14001f0fa
mov eax, dword [rbp + 0x1cc]
mov rdx, qword [rbp + rax*8 - 0x38]
mov rax, qword [rbp + 0x1f0]
mov rax, qword [rax]
cmp rdx, rax
je 0x14001f107
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1cc], eax
jb 0x14001f0d9
jmp 0x14001f108
nop
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1cc], eax
jne 0x14001f139
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x14001f139
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax]
mov eax, dword [rbp + 0x1cc]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov rcx, qword [rbp + 0x200]
movabs rdx, 0x20c49ba5e353f7cf
mov rax, rcx
imul rdx
mov rax, rdx
sar rax, 7
sar rcx, 0x3f
mov rdx, rcx
sub rax, rdx
mov dword [rbp - 0x48], eax
mov rcx, qword [rbp + 0x200]
movabs rdx, 0x20c49ba5e353f7cf
mov rax, rcx
imul rdx
mov rax, rdx
sar rax, 7
mov rdx, rcx
sar rdx, 0x3f
sub rax, rdx
imul rdx, rax, 0x3e8
mov rax, rcx
sub rax, rdx
imul eax, eax, 0x3e8
mov dword [rbp - 0x44], eax
cmp qword [rbp + 0x200], 0
js 0x14001f1b2
lea rdx, [rbp - 0x48]
jmp 0x14001f1b7
mov edx, 0
cmp dword [rbp + 0x1f8], 1
jne 0x14001f1c6
lea rcx, [rbp - 0x40]
jmp 0x14001f1cb
mov ecx, 0
cmp dword [rbp + 0x1f8], 0
jne 0x14001f1da
lea rax, [rbp - 0x40]
jmp 0x14001f1df
mov eax, 0
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.WSOCK32.dll_select]
call rax
mov dword [rbp + 0x1c8], eax
jmp 0x14001f268
cmp qword [rbp + 0x200], 0
js 0x14001f216
lea rdx, [rbp - 0x48]
jmp 0x14001f21b
mov edx, 0
cmp dword [rbp + 0x1f8], 1
jne 0x14001f22a
lea rcx, [rbp - 0x40]
jmp 0x14001f22f
mov ecx, 0
cmp dword [rbp + 0x1f8], 0
jne 0x14001f23e
lea rax, [rbp - 0x40]
jmp 0x14001f243
mov eax, 0
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.WSOCK32.dll_select]
call rax
mov dword [rbp + 0x1c8], eax
cmp dword [rbp + 0x1c8], 0xffffffff
jne 0x14001f288
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
cmp eax, 0x2714
jne 0x14001f288
mov eax, 1
jmp 0x14001f28d
mov eax, 0
test al, al
jne 0x14001f206
cmp dword [rbp + 0x1c8], 0xffffffff
jne 0x14001f2e5
mov ecx, 0x20
call fcn.140131750
mov rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
lea r9, str.Failed_to_select_socket
lea r8, [0x1401351c0]
mov edx, eax
mov rcx, rbx
call fcn.1400cf2b0
mov r8, qword [fcn.1400cf460]
lea rax, [0x14013fda0]
mov rdx, rax
mov rcx, rbx
call fcn.140131e30
cmp dword [rbp + 0x1c8], 0
jne 0x14001f355
mov ecx, 0x10
call fcn.140131750
mov rbx, rax
lea rax, str.Request_timed_out
mov rdx, rax
mov rcx, rbx
call fcn.14001c1f0
lea rax, [fcn.14001c2a0]
mov r8, rax
lea rax, [0x14013e440]
mov rdx, rax
mov rcx, rbx
call fcn.140131e30
mov rsi, rax
mov rcx, rbx
call fcn.140131a40
mov rax, rsi
mov rcx, rax
call fcn.140008850
mov rsi, rax
mov rcx, rbx
call fcn.140131a40
mov rax, rsi
mov rcx, rax
call fcn.140008850
nop
add rsp, 0x250
pop rbx
pop rsi
pop rbp
ret