Function at 0x1400d6b20
Capabilities:
Get socket status

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x728
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xd8], 0
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x740], 0
je 0x1400d6bb9
mov dword [rsp + 0x30], 0
jmp 0x1400d6b8c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x1400d6bb9
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
je 0x1400d6bb7
mov byte [rsp + 0x38], 0
jmp 0x1400d6bb9
jmp 0x1400d6b82
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400d6bdb
mov ecx, dword [rsp + 0x750]
call fcn.1400d72f0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1400d72c5
cmp dword [rsp + 0x750], 0
jle 0x1400d6c12
mov eax, dword [rsp + 0x750]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xb0]
call fcn.140101640
lea rcx, [rsp + 0xd0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xe0], 0
mov dword [rsp + 0x2f0], 0
mov dword [rsp + 0x500], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x30], 0
jmp 0x1400d6c50
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x1400d6f1e
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x740]
mov word [rdx + rax + 0xa], cx
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x1400d6c91
jmp 0x1400d6c46
xor eax, eax
test eax, eax
jne 0x1400d6c91
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x710
test eax, eax
je 0x1400d6f19
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
mov rdx, qword [rsp + 0x58]
cmp qword [rcx + rax], rdx
jbe 0x1400d6ced
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x300
test eax, eax
je 0x1400d6da7
mov dword [rsp + 0x3c], 0
jmp 0x1400d6d23
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x3c], eax
jae 0x1400d6d56
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov rcx, qword [rdx + rcx]
cmp qword [rsp + rax*8 + 0xe8], rcx
jne 0x1400d6d54
jmp 0x1400d6d56
jmp 0x1400d6d19
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x3c], eax
jne 0x1400d6d9d
cmp dword [rsp + 0xe0], 0x40
jae 0x1400d6d9d
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx*8 + 0xe8], rax
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
xor eax, eax
test eax, eax
jne 0x1400d6d0f
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x10
test eax, eax
je 0x1400d6e5f
mov dword [rsp + 0x40], 0
jmp 0x1400d6ddb
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x40], eax
jae 0x1400d6e0e
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov rcx, qword [rdx + rcx]
cmp qword [rsp + rax*8 + 0x2f8], rcx
jne 0x1400d6e0c
jmp 0x1400d6e0e
jmp 0x1400d6dd1
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x40], eax
jne 0x1400d6e55
cmp dword [rsp + 0x2f0], 0x40
jae 0x1400d6e55
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx*8 + 0x2f8], rax
mov eax, dword [rsp + 0x2f0]
inc eax
mov dword [rsp + 0x2f0], eax
xor eax, eax
test eax, eax
jne 0x1400d6dc7
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 8]
and eax, 0x600
test eax, eax
je 0x1400d6f19
mov dword [rsp + 0x44], 0
jmp 0x1400d6e95
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x44], eax
jae 0x1400d6ec8
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov rcx, qword [rdx + rcx]
cmp qword [rsp + rax*8 + 0x508], rcx
jne 0x1400d6ec6
jmp 0x1400d6ec8
jmp 0x1400d6e8b
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x44], eax
jne 0x1400d6f0f
cmp dword [rsp + 0x500], 0x40
jae 0x1400d6f0f
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x740]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx*8 + 0x508], rax
mov eax, dword [rsp + 0x500]
inc eax
mov dword [rsp + 0x500], eax
xor eax, eax
test eax, eax
jne 0x1400d6e81
jmp 0x1400d6c46
cmp dword [rsp + 0xe0], 0
jne 0x1400d6f55
cmp dword [rsp + 0x2f0], 0
jne 0x1400d6f55
cmp dword [rsp + 0x500], 0
jne 0x1400d6f55
mov ecx, dword [rsp + 0x750]
call fcn.1400d72f0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1400d72c5
cmp dword [rsp + 0x750], 0
jge 0x1400d6f6a
mov qword [rsp + 0x60], 0
jmp 0x1400d6f74
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x750], 0
jle 0x1400d6fb5
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x54], eax
jmp 0x1400d6fcf
cmp dword [rsp + 0x750], 0
jne 0x1400d6fcf
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0x500], 0
je 0x1400d6fe8
lea rax, [rsp + 0x500]
mov qword [rsp + 0x68], rax
jmp 0x1400d6ff1
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x2f0], 0
je 0x1400d700a
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x70], rax
jmp 0x1400d7013
mov qword [rsp + 0x70], 0
cmp dword [rsp + 0xe0], 0
je 0x1400d702c
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x78], rax
jmp 0x1400d7035
mov qword [rsp + 0x78], 0
mov eax, dword [rsp + 0x58]
inc eax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x1400d706f
jmp 0x1400d7121
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400d7098
cmp dword [0x1401a9fa0], 0
jne 0x1400d7093
cmp dword [rsp + 0x4c], 0x2714
je 0x1400d7098
jmp 0x1400d7121
cmp dword [rsp + 0x750], 0
jle 0x1400d7116
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0xd0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xc0]
call fcn.140101640
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa0]
call fcn.140101720
mov ecx, dword [rsp + 0x750]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jg 0x1400d7116
mov dword [rsp + 0x34], 0
jmp 0x1400d7121
cmp dword [rsp + 0x34], 0xffffffff
je 0x1400d6f81
cmp dword [rsp + 0x34], 0
jge 0x1400d7132
mov eax, 0xffffffff
jmp 0x1400d72c5
cmp dword [rsp + 0x34], 0
jne 0x1400d7140
xor eax, eax
jmp 0x1400d72c5
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
jmp 0x1400d715c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x1400d72c1
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x740]
mov word [rdx + rax + 0xa], cx
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x1400d719d
jmp 0x1400d7152
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x740]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d71f2
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
or eax, 0x300
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov word [rdx + rcx + 0xa], ax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x740]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d7245
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
or eax, 0x10
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov word [rdx + rcx + 0xa], ax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rdx, [rsp + 0x500]
mov rcx, qword [rsp + 0x740]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d7299
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
bts eax, 0xa
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x740]
mov word [rdx + rcx + 0xa], ax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
movsx eax, word [rcx + rax + 0xa]
test eax, eax
je 0x1400d72bc
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x1400d7152
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x728
pop rdi
pop rsi
ret