Function at 0x1400a5328
Capabilities:
Get socket status

Disassembly:
jmp 0x140160f70
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4f8]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x490], rax
lea rcx, [0x140283783]
call fcn.1400a8dd4
nop
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x234], 0
jmp 0x140160fe4
mov eax, dword [rbp + 0x234]
inc eax
mov dword [rbp + 0x234], eax
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x234], eax
jae 0x14016100a
mov eax, dword [rbp + 0x234]
mov rcx, qword [rbp + 0x4c0]
mov rcx, qword [rcx]
cmp qword [rbp + rax*8 + 0x18], rcx
jne 0x140161008
jmp 0x14016100a
jmp 0x140160fd6
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x234], eax
jne 0x140161038
cmp dword [rbp + 0x10], 0x40
jae 0x140161038
mov eax, dword [rbp + 0x234]
mov rcx, qword [rbp + 0x4c0]
mov rcx, qword [rcx]
mov qword [rbp + rax*8 + 0x18], rcx
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
xor eax, eax
test eax, eax
jne 0x140160fca
mov rax, qword [rbp + 0x4d0]
cqo
mov ecx, 0x3e8
idiv rcx
mov dword [rbp + 0x258], eax
mov rax, qword [rbp + 0x4d0]
cqo
mov ecx, 0x3e8
idiv rcx
mov rax, rdx
imul rax, rax, 0x3e8
mov dword [rbp + 0x25c], eax
cmp qword [rbp + 0x4d0], 0
jl 0x140161090
lea rax, [rbp + 0x258]
mov qword [rbp + 0x478], rax
jmp 0x14016109b
mov qword [rbp + 0x478], 0
cmp dword [rbp + 0x4c8], 1
jne 0x1401610b1
lea rax, [rbp + 0x10]
mov qword [rbp + 0x480], rax
jmp 0x1401610bc
mov qword [rbp + 0x480], 0
cmp dword [rbp + 0x4c8], 0
jne 0x1401610d2
lea rax, [rbp + 0x10]
mov qword [rbp + 0x488], rax
jmp 0x1401610dd
mov qword [rbp + 0x488], 0
mov rax, qword [rbp + 0x478]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x480]
mov rdx, qword [rbp + 0x488]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov dword [rbp + 0x274], eax
cmp dword [rbp + 0x274], 0xffffffff
jne 0x1401611bd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1401611bd
cmp qword [rbp + 0x4d0], 0
jl 0x140161140
lea rax, [rbp + 0x258]
mov qword [rbp + 0x478], rax
jmp 0x14016114b
mov qword [rbp + 0x478], 0
cmp dword [rbp + 0x4c8], 1
jne 0x140161161
lea rax, [rbp + 0x10]
mov qword [rbp + 0x480], rax
jmp 0x14016116c
mov qword [rbp + 0x480], 0
cmp dword [rbp + 0x4c8], 0
jne 0x140161182
lea rax, [rbp + 0x10]
mov qword [rbp + 0x488], rax
jmp 0x14016118d
mov qword [rbp + 0x488], 0
mov rax, qword [rbp + 0x478]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x480]
mov rdx, qword [rbp + 0x488]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov dword [rbp + 0x274], eax
jmp 0x140161108
cmp dword [rbp + 0x274], 0xffffffff
jne 0x14016120d
call fcn.1400a97bb
mov qword [rbp + 0x478], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.Failed_to_select_socket
mov rcx, qword [rbp + 0x478]
mov r8, rcx
mov edx, eax
lea rcx, [rbp + 0x418]
call fcn.1400a77e0
lea rdx, [0x140256708]
lea rcx, [rbp + 0x418]
call fcn.1400a96e9
nop
jmp 0x14016123d
cmp dword [rbp + 0x274], 0
jne 0x14016123d
lea rdx, str.Request_timed_out
lea rcx, [rbp + 0x458]
call fcn.1400a813b
lea rdx, [0x1402568c8]
lea rcx, [rbp + 0x458]
call fcn.1400a96e9
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400a7dda
mov rcx, qword [rbp + 0x490]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret