Function at 0x1400d63a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
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 dword [rsp + 0x50], 0
cmp qword [rsp + 0x758], 0x7fffffff
jl 0x1400d6408
mov qword [rsp + 0x758], 0x7fffffff
cmp qword [rsp + 0x740], 0xffffffffffffffff
jne 0x1400d6442
cmp qword [rsp + 0x748], 0xffffffffffffffff
jne 0x1400d6442
cmp qword [rsp + 0x750], 0xffffffffffffffff
jne 0x1400d6442
mov ecx, dword [rsp + 0x758]
call fcn.1400d72f0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1400d6af9
cmp qword [rsp + 0x758], 0
jle 0x1400d647a
mov eax, dword [rsp + 0x758]
mov dword [rsp + 0x50], 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 qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x2f0], 0
cmp qword [rsp + 0x740], 0xffffffffffffffff
je 0x1400d65b3
xor eax, eax
test eax, eax
jne 0x1400d64a8
mov dword [rsp + 0x38], 0
jmp 0x1400d64c2
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x38], eax
jae 0x1400d64e9
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x740]
cmp qword [rsp + rax*8 + 0x2f8], rcx
jne 0x1400d64e7
jmp 0x1400d64e9
jmp 0x1400d64b8
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x38], eax
jne 0x1400d6524
cmp dword [rsp + 0x2f0], 0x40
jae 0x1400d6524
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x740]
mov qword [rsp + rax*8 + 0x2f8], rcx
mov eax, dword [rsp + 0x2f0]
inc eax
mov dword [rsp + 0x2f0], eax
xor eax, eax
test eax, eax
jne 0x1400d64ae
mov dword [rsp + 0x3c], 0
jmp 0x1400d653e
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x3c], eax
jae 0x1400d6565
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x740]
cmp qword [rsp + rax*8 + 0xe8], rcx
jne 0x1400d6563
jmp 0x1400d6565
jmp 0x1400d6534
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x3c], eax
jne 0x1400d65a0
cmp dword [rsp + 0xe0], 0x40
jae 0x1400d65a0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x740]
mov qword [rsp + rax*8 + 0xe8], rcx
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
xor eax, eax
test eax, eax
jne 0x1400d652a
mov rax, qword [rsp + 0x740]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x748], 0xffffffffffffffff
je 0x1400d66dc
xor eax, eax
test eax, eax
jne 0x1400d65c2
mov dword [rsp + 0x40], 0
jmp 0x1400d65dc
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x40], eax
jae 0x1400d6603
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x748]
cmp qword [rsp + rax*8 + 0x2f8], rcx
jne 0x1400d6601
jmp 0x1400d6603
jmp 0x1400d65d2
mov eax, dword [rsp + 0x2f0]
cmp dword [rsp + 0x40], eax
jne 0x1400d663e
cmp dword [rsp + 0x2f0], 0x40
jae 0x1400d663e
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x748]
mov qword [rsp + rax*8 + 0x2f8], rcx
mov eax, dword [rsp + 0x2f0]
inc eax
mov dword [rsp + 0x2f0], eax
xor eax, eax
test eax, eax
jne 0x1400d65c8
mov dword [rsp + 0x44], 0
jmp 0x1400d6658
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x44], eax
jae 0x1400d667f
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x748]
cmp qword [rsp + rax*8 + 0xe8], rcx
jne 0x1400d667d
jmp 0x1400d667f
jmp 0x1400d664e
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x44], eax
jne 0x1400d66ba
cmp dword [rsp + 0xe0], 0x40
jae 0x1400d66ba
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x748]
mov qword [rsp + rax*8 + 0xe8], rcx
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
xor eax, eax
test eax, eax
jne 0x1400d6644
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x748], rax
jbe 0x1400d66dc
mov rax, qword [rsp + 0x748]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x500], 0
cmp qword [rsp + 0x750], 0xffffffffffffffff
je 0x1400d6810
xor eax, eax
test eax, eax
jne 0x1400d66f6
mov dword [rsp + 0x48], 0
jmp 0x1400d6710
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x48], eax
jae 0x1400d6737
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x750]
cmp qword [rsp + rax*8 + 0x508], rcx
jne 0x1400d6735
jmp 0x1400d6737
jmp 0x1400d6706
mov eax, dword [rsp + 0x500]
cmp dword [rsp + 0x48], eax
jne 0x1400d6772
cmp dword [rsp + 0x500], 0x40
jae 0x1400d6772
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x750]
mov qword [rsp + rax*8 + 0x508], rcx
mov eax, dword [rsp + 0x500]
inc eax
mov dword [rsp + 0x500], eax
xor eax, eax
test eax, eax
jne 0x1400d66fc
mov dword [rsp + 0x4c], 0
jmp 0x1400d678c
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x4c], eax
jae 0x1400d67b3
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x750]
cmp qword [rsp + rax*8 + 0xe8], rcx
jne 0x1400d67b1
jmp 0x1400d67b3
jmp 0x1400d6782
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x4c], eax
jne 0x1400d67ee
cmp dword [rsp + 0xe0], 0x40
jae 0x1400d67ee
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x750]
mov qword [rsp + rax*8 + 0xe8], rcx
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
xor eax, eax
test eax, eax
jne 0x1400d6778
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x750], rax
jbe 0x1400d6810
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x758], 0
jge 0x1400d6826
mov qword [rsp + 0x70], 0
jmp 0x1400d6830
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x758], 0
jle 0x1400d6872
mov eax, dword [rsp + 0x50]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x50]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x6c], eax
jmp 0x1400d688d
cmp qword [rsp + 0x758], 0
jne 0x1400d688d
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], 0
cmp dword [rsp + 0x500], 0
je 0x1400d68a6
lea rax, [rsp + 0x500]
mov qword [rsp + 0x78], rax
jmp 0x1400d68af
mov qword [rsp + 0x78], 0
cmp dword [rsp + 0x2f0], 0
je 0x1400d68cb
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x80], rax
jmp 0x1400d68d7
mov qword [rsp + 0x80], 0
mov eax, dword [rsp + 0x58]
inc eax
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0xe0]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x1400d6917
jmp 0x1400d69cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400d6940
cmp dword [0x1401a9fa0], 0
jne 0x1400d693b
cmp dword [rsp + 0x60], 0x2714
je 0x1400d6940
jmp 0x1400d69cf
cmp qword [rsp + 0x758], 0
jle 0x1400d69c4
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
cdqe
mov rcx, qword [rsp + 0x758]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jg 0x1400d69c4
mov dword [rsp + 0x34], 0
jmp 0x1400d69cf
cmp dword [rsp + 0x34], 0xffffffff
je 0x1400d683d
cmp dword [rsp + 0x34], 0
jge 0x1400d69e0
mov eax, 0xffffffff
jmp 0x1400d6af9
cmp dword [rsp + 0x34], 0
jne 0x1400d69ee
xor eax, eax
jmp 0x1400d6af9
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x740], 0xffffffffffffffff
je 0x1400d6a4b
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x740]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d6a26
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x740]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d6a4b
mov eax, dword [rsp + 0x30]
or eax, 4
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x748], 0xffffffffffffffff
je 0x1400d6aa0
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x748]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d6a7b
mov eax, dword [rsp + 0x30]
or eax, 8
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x748]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d6aa0
mov eax, dword [rsp + 0x30]
or eax, 4
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x750], 0xffffffffffffffff
je 0x1400d6af5
lea rdx, [rsp + 0x500]
mov rcx, qword [rsp + 0x750]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d6ad0
mov eax, dword [rsp + 0x30]
or eax, 2
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x750]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400d6af5
mov eax, dword [rsp + 0x30]
or eax, 4
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x728
pop rdi
pop rsi
ret