Function at 0x1400c1550
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 [0x140158280]
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 0x1400c15e9
mov dword [rsp + 0x30], 0
jmp 0x1400c15bc
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x1400c15e9
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x740]
cmp qword [rcx + rax], 0xffffffffffffffff
je 0x1400c15e7
mov byte [rsp + 0x38], 0
jmp 0x1400c15e9
jmp 0x1400c15b2
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400c160b
mov ecx, dword [rsp + 0x750]
call fcn.1400c1d20
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1400c1cf5
cmp dword [rsp + 0x750], 0
jle 0x1400c1642
mov eax, dword [rsp + 0x750]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xc0]
call fcn.1400c39a0
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 0x1400c1680
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x1400c194e
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 0x1400c16c1
jmp 0x1400c1676
xor eax, eax
test eax, eax
jne 0x1400c16c1
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 0x1400c1949
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 0x1400c171d
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 0x1400c17d7
mov dword [rsp + 0x40], 0
jmp 0x1400c1753
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x40], eax
jae 0x1400c1786
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 + 0xe8], rcx
jne 0x1400c1784
jmp 0x1400c1786
jmp 0x1400c1749
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x40], eax
jne 0x1400c17cd
cmp dword [rsp + 0xe0], 0x40
jae 0x1400c17cd
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 + 0xe8], rax
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
xor eax, eax
test eax, eax
jne 0x1400c173f
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 0x1400c188f
mov dword [rsp + 0x3c], 0
jmp 0x1400c180b
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x3c], eax
jae 0x1400c183e
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 + 0x2f8], rcx
jne 0x1400c183c
jmp 0x1400c183e
jmp 0x1400c1801
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x3c], eax
jne 0x1400c1885
cmp dword [rsp + 0x2f0], 0x40
jae 0x1400c1885
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 + 0x2f8], rax
mov eax, dword [rsp + 0x2f0]
inc eax
mov dword [rsp + 0x2f0], eax
xor eax, eax
test eax, eax
jne 0x1400c17f7
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 0x1400c1949
mov dword [rsp + 0x44], 0
jmp 0x1400c18c5
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x44], eax
jae 0x1400c18f8
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 0x1400c18f6
jmp 0x1400c18f8
jmp 0x1400c18bb
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x44], eax
jne 0x1400c193f
cmp dword [rsp + 0x500], 0x40
jae 0x1400c193f
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 0x1400c18b1
jmp 0x1400c1676
cmp dword [rsp + 0xe0], 0
jne 0x1400c1985
cmp dword [rsp + 0x2f0], 0
jne 0x1400c1985
cmp dword [rsp + 0x500], 0
jne 0x1400c1985
mov ecx, dword [rsp + 0x750]
call fcn.1400c1d20
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1400c1cf5
cmp dword [rsp + 0x750], 0
jge 0x1400c199a
mov qword [rsp + 0x78], 0
jmp 0x1400c19a4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x750], 0
jle 0x1400c19e5
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 0x1400c19ff
cmp dword [rsp + 0x750], 0
jne 0x1400c19ff
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0x500], 0
je 0x1400c1a18
lea rax, [rsp + 0x500]
mov qword [rsp + 0x60], rax
jmp 0x1400c1a21
mov qword [rsp + 0x60], 0
cmp dword [rsp + 0x2f0], 0
je 0x1400c1a3a
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x68], rax
jmp 0x1400c1a43
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0xe0], 0
je 0x1400c1a5c
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x70], rax
jmp 0x1400c1a65
mov qword [rsp + 0x70], 0
mov eax, dword [rsp + 0x58]
inc eax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x1400c1a9f
jmp 0x1400c1b51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400c1ac8
cmp dword [0x140168c94], 0
jne 0x1400c1ac3
cmp dword [rsp + 0x4c], 0x2714
je 0x1400c1ac8
jmp 0x1400c1b51
cmp dword [rsp + 0x750], 0
jle 0x1400c1b46
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 + 0xb0]
call fcn.1400c39a0
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.1400c3940
mov ecx, dword [rsp + 0x750]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jg 0x1400c1b46
mov dword [rsp + 0x34], 0
jmp 0x1400c1b51
cmp dword [rsp + 0x34], 0xffffffff
je 0x1400c19b1
cmp dword [rsp + 0x34], 0
jge 0x1400c1b62
mov eax, 0xffffffff
jmp 0x1400c1cf5
cmp dword [rsp + 0x34], 0
jne 0x1400c1b70
xor eax, eax
jmp 0x1400c1cf5
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
jmp 0x1400c1b8c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x748]
cmp dword [rsp + 0x30], eax
jae 0x1400c1cf1
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 0x1400c1bcd
jmp 0x1400c1b82
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 0x1400c1c22
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 0x1400c1c75
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 0x1400c1cc9
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 0x1400c1cec
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x1400c1b82
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x728
pop rdi
pop rsi
ret