Function at 0x140001260
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1b28
call fcn.1400061d0
sub rsp, rax
mov rax, qword [0x140035ef8]
xor rax, rsp
mov qword [rsp + 0x1b10], rax
mov eax, 0x3e8
mov word [rsp + 0x30], ax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 0
cmp qword [rsp + 0x1b40], 0
jne 0x1400012cb
mov r8d, 0x130
lea rdx, [0x140034190]
lea rcx, [0x1400341a8]
call fcn.14000bb44
xor eax, eax
cmp qword [rsp + 0x1b48], 0xffffffffffffffff
jne 0x1400012f1
mov r8d, 0x131
lea rdx, [0x1400341c0]
lea rcx, str.SOCKET_IS_VALID_sockfd_
call fcn.14000bb44
xor eax, eax
cmp dword [rsp + 0x3c], 0
jne 0x140001318
lea rcx, [rsp + 0x58]
call fcn.140004310
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140001318
cmp dword [rsp + 0x40], 0
jle 0x140001744
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x34], 0
jmp 0x140001340
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x34], eax
jae 0x140001367
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x1b48]
cmp qword [rsp + rax*8 + 0x98], rcx
jne 0x140001365
jmp 0x140001367
jmp 0x140001336
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x34], eax
jne 0x1400013a2
cmp dword [rsp + 0x90], 0x40
jae 0x1400013a2
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x1b48]
mov qword [rsp + rax*8 + 0x98], rcx
mov eax, dword [rsp + 0x90]
inc eax
mov dword [rsp + 0x90], eax
xor eax, eax
test eax, eax
jne 0x14000132c
mov edx, dword [reloc.WSOCK32.dll_bind]
lea rcx, [rsp + 0x60]
call fcn.140005e70
cmp dword [rsp + 0x3c], 0
je 0x1400013e9
lea rax, [rsp + 0x2a0]
lea rcx, [rsp + 0x90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x208
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1b48]
inc rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x90]
mov ecx, eax
call qword [sym.imp.WSOCK32.dll_select]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000144e
mov ecx, 2
call fcn.14000bd70
lea rdx, str.timeout__normal_end_of_scan__n
mov rcx, rax
call fcn.140002060
mov rcx, qword [rsp + 0x1b40]
call fcn.14000c180
jmp 0x140001744
cmp dword [rsp + 0x44], 0
jge 0x140001475
call fcn.14000a25c
mov ecx, dword [rax]
call fcn.14000a364
mov rdx, rax
lea rcx, str.ERROR___s__n
call fcn.1400020b0
jmp 0x140001744
cmp dword [rsp + 0x44], 0
jle 0x140001636
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x1b48]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x140001636
mov r8d, sendto
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140006f50
mov r8d, 0xd38
xor edx, edx
lea rcx, [rsp + 0xcd0]
call fcn.140006f50
lea r9, [rsp + 0x78]
mov r8d, 0x40c
lea rdx, [rsp + 0x4b0]
mov ecx, dword [rsp + 0x1b48]
call fcn.140001960
mov dword [rsp + 0x38], eax
cmp dword [0x140036b78], 0
je 0x140001569
cmp dword [rsp + 0x38], 0
jge 0x14000151c
call fcn.14000a25c
mov ecx, dword [rax]
call fcn.14000a364
mov r8, rax
lea rdx, str.Error_on_read:__s_n
mov rcx, qword [rsp + 0x1b40]
call fcn.140002060
jmp 0x140001569
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov r9, rax
mov r8d, dword [rsp + 0x38]
lea rdx, str.Got__d_bytes_from__s_n
mov rcx, qword [rsp + 0x1b40]
call fcn.140002060
cmp dword [0x140036b78], 1
jle 0x140001569
mov ecx, 1
call fcn.14000bd70
mov r8, rax
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x4b0]
call fcn.1400022a0
cmp dword [rsp + 0x38], 0
jg 0x140001575
jmp 0x1400012f1
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x1a10]
lea r8, [rsp + 0xcd0]
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x4b0]
call fcn.140003970
test eax, eax
je 0x14000160d
lea rax, [rsp + 0xcd0]
lea rcx, [rsp + 0x78]
mov rdi, rax
mov rsi, rcx
mov ecx, sendto
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xcd4]
call fcn.140004470
test eax, eax
je 0x14000160b
cmp dword [0x140036b80], 0
je 0x1400015ef
lea rdx, [rsp + 0xcd0]
mov rcx, qword [rsp + 0x1b40]
call fcn.1400046f0
jmp 0x14000160b
mov r8d, dword [0x140036b90]
lea rdx, [rsp + 0xcd0]
mov rcx, qword [rsp + 0x1b40]
call fcn.1400033e0
jmp 0x140001636
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
lea r9, [rsp + 0x1a10]
mov r8, rax
lea rdx, str.ERROR:_no_parse_for__s_____s_n
mov rcx, qword [rsp + 0x1b40]
call fcn.140002060
cmp dword [rsp + 0x44], 0
jle 0x14000173f
cmp qword [rsp + 0x50], 0
je 0x14000173f
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x1b48]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x14000173f
mov r8d, sendto
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140006f50
mov eax, 2
mov word [rsp + 0x68], ax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x6c], eax
movzx ecx, word [0x140034004]
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rsp + 0x6a], ax
mov dword [rsp + 0x3c], 0
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x48], ax
movzx r8d, word [rsp + 0x48]
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x8c0]
call fcn.140001770
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
cmp dword [0x140036b78], 0
je 0x1400016fe
mov ecx, dword [rsp + 0x6c]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov r8, rax
lea rdx, str.sending_to__s_n
mov rcx, qword [rsp + 0x1b40]
call fcn.140002060
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x8c0]
mov ecx, dword [rsp + 0x1b48]
call fcn.140001920
cmp dword [0x140034064], 0
jle 0x140001730
mov ecx, dword [0x140034064]
call fcn.140005da0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
jmp 0x1400012f1
jmp 0x1400012f1
mov rcx, qword [rsp + 0x1b10]
xor rcx, rsp
call fcn.140006230
add rsp, 0x1b28
pop rdi
pop rsi
ret