Function at 0x1401b6b30
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3150
call fcn.1401e1980
sub rsp, rax
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x3140], rax
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x58], r8
mov r14, rdx
movsxd r12, ecx
mov rbx, qword [rsp + 0x31b0]
mov qword [rsp + 0x48], rbx
mov r15, qword [rsp + 0x31b8]
mov dword [r8], 0xffffffff
test rdx, rdx
jne 0x1401b6ba7
mov rax, qword [r15]
lea rdx, str.NULL_arg.
mov rcx, r15
call qword [rax + 0x28]
xor al, al
jmp 0x1401b6ec0
mov esi, 1
cmp r9d, 0xabcd0123
cmovne esi, r9d
mov rcx, rbx
call fcn.14007d090
xor ebp, ebp
test r12d, r12d
jle 0x1401b6bec
mov ecx, ebp
mov rax, r14
nop dword [rax + rax]
mov byte [rax + 0x20], bpl
cmp qword [rax], 0xffffffffffffffff
je 0x1401b6cac
inc rcx
add rax, 0xb8
cmp rcx, r12
jl 0x1401b6bd0
mov r13d, ebp
mov dword [rsp + 0x60], ebp
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401b6c18
mov r13d, dword [rax + 0xd0]
lea eax, [r13 - 1]
mov ecx, gethostbyname
cmp eax, 0x30
cmovbe r13d, ecx
mov dword [rsp + 0x60], r13d
mov eax, 0xc042c00
test esi, esi
cmove esi, eax
mov dword [rsp + 0x40], esi
test r13d, r13d
jne 0x1401b6c43
mov rcx, rbx
call fcn.14007d110
mov ecx, 0x42
test al, al
cmovne r13d, ecx
mov dword [rsp + 0x60], r13d
test r12d, r12d
jle 0x1401b6c6e
mov rbx, rbp
mov rsi, r14
nop
mov ecx, dword [rsi]
call fcn.140011c90
test al, al
jne 0x1401b6cc7
inc rbx
add rsi, 0xb8
cmp rbx, r12
jl 0x1401b6c50
mov esi, dword [rsp + 0x40]
mov r13d, ebp
mov dil, 1
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x70]
call fcn.140133330
nop
test esi, esi
je 0x1401b6ea8
mov ecx, 0x14d
mov eax, dword [rsp + 0x60]
mov ebx, esi
sub ebx, r13d
test eax, eax
jne 0x1401b6dc8
cmp ebx, ecx
cmovae ebx, ecx
jmp 0x1401b6dd2
mov rax, qword [r15]
lea rdx, str.Invalid_socket.
mov rcx, r15
call qword [rax + 0x28]
mov byte [rbx + 0x2a], 1
xor al, al
jmp 0x1401b6ec0
xor edx, edx
mov r8d, 0x2020
lea rcx, [rsp + 0x1120]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x1120]
call fcn.1401d6c00
nop
mov rbx, rbp
mov rsi, r14
mov r8d, 1
mov rdx, qword [rsi]
lea rcx, [rsp + 0x1120]
call fcn.1401d7350
test al, al
je 0x1401b6da9
inc rbx
add rsi, 0xb8
cmp rbx, r12
jl 0x1401b6cf0
mov r8d, dword [rsp + 0x40]
test r8d, r8d
mov eax, 0xc042c00
cmove r8d, eax
mov dword [rsp + 0x60], ebp
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], 0
mov r9b, 1
mov edx, r13d
lea rcx, [rsp + 0x1120]
call fcn.1401d6cc0
cmp dword [rsp + 0x60], 0
je 0x1401b6da5
mov rbx, rbp
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r14]
lea rcx, [rsp + 0x1120]
call fcn.1401d7430
test al, al
jne 0x1401b6dbd
inc ebp
inc rbx
add r14, 0xb8
cmp rbx, r12
jl 0x1401b6d80
mov byte [rsi + 0x28], 1
xor bl, bl
lea rcx, [rsp + 0x1120]
call fcn.1401d6c20
jmp 0x1401b6ebd
mov rax, qword [rsp + 0x58]
mov dword [rax], ebp
mov bl, 1
jmp 0x1401b6dab
cmp eax, ebx
cmovbe ebx, eax
cmp ebx, eax
cmova ebx, eax
test dil, dil
je 0x1401b6de4
shr ebx, 1
cmp ebx, 1
mov eax, 1
cmovb ebx, eax
cmp ebx, esi
cmova ebx, esi
mov eax, 0x10624dd3
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
mov ecx, ebx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x70]
call fcn.140133710
mov esi, ebp
test r12d, r12d
jle 0x1401b6e45
mov rdi, r14
nop
mov r8, r15
mov edx, dword [rdi]
lea rcx, [rsp + 0x70]
call fcn.1401336d0
test al, al
je 0x1401b6eeb
inc esi
add rdi, 0xb8
cmp esi, r12d
jl 0x1401b6e20
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x88]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1401b6eb1
jne 0x1401b6f0c
cmp dword [rsp + 0x50], 0xabcd0123
je 0x1401b6ea8
add r13d, ebx
lea eax, [r13 + 1]
mov esi, dword [rsp + 0x40]
cmp eax, esi
jae 0x1401b6ea8
mov rdx, r15
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14007d210
test al, al
jne 0x1401b6ef6
xor dil, dil
cmp r13d, esi
jb 0x1401b6c8c
mov rsi, qword [rsp + 0x48]
mov byte [rsi + 0x28], 1
xor bl, bl
lea rcx, [rsp + 0x70]
call fcn.1401334a0
movzx eax, bl
mov rcx, qword [rsp + 0x3140]
xor rcx, rsp
call fcn.1401e12d0
mov rbx, qword [rsp + 0x3190]
add rsp, 0x3150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rsp + 0x48]
mov byte [rsi + 0x2a], 1
jmp 0x1401b6eb1
mov byte [rbx + 0x29], 1
mov rax, qword [r15]
lea rdx, str.socket_operation_aborted_by_application
mov rcx, r15
call qword [rax + 0x28]
jmp 0x1401b6eb1
test r12d, r12d
jle 0x1401b6f53
nop dword [rax]
nop word [rax + rax]
mov r8, r15
mov edx, dword [r14]
lea rcx, [rsp + 0x70]
call fcn.1401336b0
test al, al
je 0x1401b6f45
mov byte [r14 + 0x20], 1
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
jge 0x1401b6f45
mov dword [rax], ebp
inc ebp
add r14, 0xb8
cmp ebp, r12d
jl 0x1401b6f20
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
jl 0x1401b6eb1
mov bl, 1
jmp 0x1401b6eb3