Function at 0x14013d110
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 rdi
mov eax, 0x12b0
call fcn.14037c5f0
sub rsp, rax
lea rdi, [rsp + 0x50]
mov ecx, 0x498
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x12c0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x12a0], rax
mov rax, qword [rsp + 0x12c0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x720], 0
mov dword [rsp + 0x944], 0x5265c00
mov qword [rsp + 0x978], 0
lea rax, [rsp + 0x988]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
xor eax, eax
cmp eax, 1
je 0x14013dc13
mov rax, qword [rsp + 0x12c0]
mov rcx, qword [rax + 0x950]
call fcn.140142af0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14013d900
mov rcx, qword [rsp + 0x68]
call fcn.140142d00
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14013d900
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x14013d8ec
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x2c0], 0
mov dword [rsp + 0x4f0], 0
lea rax, [rsp + 0x944]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c0]
lea r8, [rsp + 0x4f0]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
call qword [rax]
mov r8d, 0x208
lea rdx, [rsp + 0x720]
lea rcx, [rsp + 0x90]
call fcn.1404104c0
test eax, eax
jne 0x14013d2be
mov r8d, 0x208
lea rdx, [rsp + 0x720]
lea rcx, [rsp + 0x4f0]
call fcn.1404104c0
test eax, eax
jne 0x14013d2be
mov r8d, 0x208
lea rdx, [rsp + 0x720]
lea rcx, [rsp + 0x2c0]
call fcn.1404104c0
test eax, eax
je 0x14013d8ec
mov dword [rsp + 0x1244], 0
mov dword [rsp + 0x954], 0
jmp 0x14013d2e6
mov eax, dword [rsp + 0x954]
inc eax
mov dword [rsp + 0x954], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x954], eax
jge 0x14013d328
movsxd rax, dword [rsp + 0x954]
movsxd rcx, dword [rsp + 0x1244]
mov rax, qword [rsp + rax*8 + 0x98]
mov qword [rsp + rcx*8 + 0x1040], rax
mov eax, dword [rsp + 0x1244]
inc eax
mov dword [rsp + 0x1244], eax
jmp 0x14013d2d6
mov dword [rsp + 0x954], 0
jmp 0x14013d345
mov eax, dword [rsp + 0x954]
inc eax
mov dword [rsp + 0x954], eax
mov eax, dword [rsp + 0x4f0]
cmp dword [rsp + 0x954], eax
jge 0x14013d3a8
movsxd rax, dword [rsp + 0x954]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + rax*8 + 0x4f8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14013d3a6
movsxd rax, dword [rsp + 0x954]
movsxd rcx, dword [rsp + 0x1244]
mov rax, qword [rsp + rax*8 + 0x4f8]
mov qword [rsp + rcx*8 + 0x1040], rax
mov eax, dword [rsp + 0x1244]
inc eax
mov dword [rsp + 0x1244], eax
jmp 0x14013d335
mov dword [rsp + 0x954], 0
jmp 0x14013d3c5
mov eax, dword [rsp + 0x954]
inc eax
mov dword [rsp + 0x954], eax
mov eax, dword [rsp + 0x2c0]
cmp dword [rsp + 0x954], eax
jge 0x14013d44c
movsxd rax, dword [rsp + 0x954]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + rax*8 + 0x2c8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14013d447
movsxd rax, dword [rsp + 0x954]
lea rdx, [rsp + 0x4f0]
mov rcx, qword [rsp + rax*8 + 0x2c8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14013d447
movsxd rax, dword [rsp + 0x954]
movsxd rcx, dword [rsp + 0x1244]
mov rax, qword [rsp + rax*8 + 0x2c8]
mov qword [rsp + rcx*8 + 0x1040], rax
mov eax, dword [rsp + 0x1244]
inc eax
mov dword [rsp + 0x1244], eax
jmp 0x14013d3b5
mov dword [rsp + 0x954], 0
jmp 0x14013d469
mov eax, dword [rsp + 0x954]
inc eax
mov dword [rsp + 0x954], eax
mov eax, dword [rsp + 0x1244]
cmp dword [rsp + 0x954], eax
jge 0x14013d8ec
mov dword [rsp + 0x994], 0
movsxd rax, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12c8]
mov rcx, rax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14013d609
movsxd rax, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12d0]
mov rcx, rax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14013d609
movsxd rax, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12d8]
mov rcx, rax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14013d609
mov dword [rsp + 0x9b0], 0
mov dword [rsp + 0xbe0], 0
mov dword [rsp + 0xe10], 0
mov dword [rsp + 0x1248], 0
jmp 0x14013d526
mov eax, dword [rsp + 0x1248]
inc eax
mov dword [rsp + 0x1248], eax
mov eax, dword [rsp + 0x9b0]
cmp dword [rsp + 0x1248], eax
jae 0x14013d55b
mov eax, dword [rsp + 0x1248]
movsxd rcx, dword [rsp + 0x954]
mov rcx, qword [rsp + rcx*8 + 0x1040]
cmp qword [rsp + rax*8 + 0x9b8], rcx
jne 0x14013d559
jmp 0x14013d55b
jmp 0x14013d516
mov eax, dword [rsp + 0x9b0]
cmp dword [rsp + 0x1248], eax
jne 0x14013d5a4
cmp dword [rsp + 0x9b0], 0x40
jae 0x14013d5a4
movsxd rax, dword [rsp + 0x954]
mov ecx, dword [rsp + 0x1248]
mov rax, qword [rsp + rax*8 + 0x1040]
mov qword [rsp + rcx*8 + 0x9b8], rax
mov eax, dword [rsp + 0x9b0]
inc eax
mov dword [rsp + 0x9b0], eax
xor eax, eax
test eax, eax
jne 0x14013d509
lea rax, [rsp + 0x988]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe10]
lea r8, [rsp + 0xbe0]
lea rdx, [rsp + 0x9b0]
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14013d5f0
mov dword [rsp + 0x1258], 1
jmp 0x14013d5fb
mov dword [rsp + 0x1258], 0
mov eax, dword [rsp + 0x1258]
mov dword [rsp + 0x994], eax
cmp qword [rsp + 0x58], 0
jne 0x14013d767
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0
je 0x14013d658
movsxd rax, dword [rsp + 0x954]
lea r9, [rsp + 0x968]
mov r8d, dword [rsp + rax*8 + 0x1040]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x12c0]
mov rax, qword [rsp + 0x70]
call qword [rax + 0x18]
mov qword [rsp + 0x1260], rax
jmp 0x14013d669
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x1260], rax
cmp dword [rsp + 0x994], 0
jne 0x14013d684
lea rax, [0x140577330]
mov qword [rsp + 0x1268], rax
jmp 0x14013d693
lea rax, [0x14055a470]
mov qword [rsp + 0x1268], rax
movsxd rax, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12d8]
mov rcx, qword [rsp + rax*8 + 0x1040]
call sub.WS2_32.dll___WSAFDIsSet
mov dword [rsp + 0x1270], eax
movsxd rcx, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12d0]
mov rcx, qword [rsp + rcx*8 + 0x1040]
call sub.WS2_32.dll___WSAFDIsSet
mov dword [rsp + 0x1274], eax
movsxd rcx, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12c8]
mov rcx, qword [rsp + rcx*8 + 0x1040]
call sub.WS2_32.dll___WSAFDIsSet
movsxd rcx, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x1260]
mov qword [rsp + 0x40], rdx
mov edx, dword [rsp + 0x1270]
mov dword [rsp + 0x38], edx
mov edx, dword [rsp + 0x1274]
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + rcx*8 + 0x1040]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1268]
lea r8, [0x14055a478]
xor edx, edx
xor ecx, ecx
call fcn.140015f00
cdqe
mov rcx, qword [rsp + 0x978]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x978], rax
jmp 0x14013d8e7
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0
je 0x14013d7aa
movsxd rax, dword [rsp + 0x954]
lea r9, [rsp + 0x968]
mov r8d, dword [rsp + rax*8 + 0x1040]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x12c0]
mov rax, qword [rsp + 0x70]
call qword [rax + 0x18]
mov qword [rsp + 0x1278], rax
jmp 0x14013d7bb
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x1278], rax
cmp dword [rsp + 0x994], 0
jne 0x14013d7d6
lea rax, [0x140577331]
mov qword [rsp + 0x1280], rax
jmp 0x14013d7e5
lea rax, [0x14055a4a0]
mov qword [rsp + 0x1280], rax
movsxd rax, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12d8]
mov rcx, qword [rsp + rax*8 + 0x1040]
call sub.WS2_32.dll___WSAFDIsSet
mov dword [rsp + 0x1288], eax
movsxd rcx, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12d0]
mov rcx, qword [rsp + rcx*8 + 0x1040]
call sub.WS2_32.dll___WSAFDIsSet
mov dword [rsp + 0x128c], eax
movsxd rcx, dword [rsp + 0x954]
mov rdx, qword [rsp + 0x12c8]
mov rcx, qword [rsp + rcx*8 + 0x1040]
call sub.WS2_32.dll___WSAFDIsSet
movsxd rcx, dword [rsp + 0x954]
movsxd rdx, dword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rdi, qword [rdi - 0x18]
sub rdi, rdx
mov rdx, rdi
movsxd rdi, dword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
add r8, rdi
mov rdi, r8
mov r8, qword [rsp + 0x1278]
mov qword [rsp + 0x40], r8
mov r8d, dword [rsp + 0x1288]
mov dword [rsp + 0x38], r8d
mov r8d, dword [rsp + 0x128c]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + rcx*8 + 0x1040]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1280]
lea r8, str.__sFD__d___R:__d__W:__d__E:__d_____s_n
mov rcx, rdi
call fcn.140015f80
mov dword [rsp + 0x958], eax
cmp dword [rsp + 0x958], 0
jle 0x14013d8e7
mov eax, dword [rsp + 0x958]
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
jmp 0x14013d459
mov rcx, qword [rsp + 0x68]
call fcn.140142b90
mov qword [rsp + 0x68], rax
jmp 0x14013d1d5
mov dword [rsp + 0x954], 0
jmp 0x14013d91d
mov eax, dword [rsp + 0x954]
inc eax
mov dword [rsp + 0x954], eax
cmp dword [rsp + 0x954], 0x40
jge 0x14013db10
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x9a0]
cmp dword [rsp + 0x954], eax
jge 0x14013db10
movsxd rax, dword [rsp + 0x954]
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax*8 + 0x520], 0
je 0x14013db0b
mov eax, dword [rsp + 0x954]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax*8 + 0x520], 0
je 0x14013db0b
cmp qword [rsp + 0x58], 0
jne 0x14013da36
movsxd rax, dword [rsp + 0x954]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax*8 + 0x520]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x14013d9bc
mov dword [rsp + 0x1290], 1
jmp 0x14013d9c7
mov dword [rsp + 0x1290], 0
mov eax, dword [rsp + 0x954]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax*8 + 0x520]
add rax, 0x20
movsxd rcx, dword [rsp + 0x954]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x1290]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + rcx*8 + 0x520]
lea r8, [0x14055a4d0]
xor edx, edx
xor ecx, ecx
call fcn.140015f00
cdqe
mov rcx, qword [rsp + 0x978]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x978], rax
jmp 0x14013db0b
movsxd rax, dword [rsp + 0x954]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax*8 + 0x520]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x14013da67
mov dword [rsp + 0x1294], 1
jmp 0x14013da72
mov dword [rsp + 0x1294], 0
mov eax, dword [rsp + 0x954]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax*8 + 0x520]
add rax, 0x20
movsxd rcx, dword [rsp + 0x954]
movsxd rdx, dword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rdi, qword [rdi - 0x18]
sub rdi, rdx
mov rdx, rdi
movsxd rdi, dword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
add r8, rdi
mov rdi, r8
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x1294]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + rcx*8 + 0x520]
lea r8, str._H__p___Signaled:__d_____s_n
mov rcx, rdi
call fcn.140015f80
mov dword [rsp + 0x958], eax
cmp dword [rsp + 0x958], 0
jle 0x14013db0b
mov eax, dword [rsp + 0x958]
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
jmp 0x14013d90d
cmp qword [rsp + 0x58], 0
jne 0x14013dc0c
mov rax, qword [rsp + 0x978]
add rax, 0x400
mov ecx, 0xffffffff
cmp rax, rcx
jae 0x14013dba3
mov rax, qword [rsp + 0x978]
add rax, 0x400
mov ecx, 0xffffffff
sub rcx, rax
mov rax, rcx
test rax, rax
jbe 0x14013dba3
mov rax, qword [rsp + 0x978]
add rax, 0x400
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x14013dba3
xor eax, eax
cmp eax, 1
je 0x14013dba3
mov rax, qword [rsp + 0x978]
add rax, 0x418
mov r9d, 0xd60
lea r8, [0x14055a510]
mov edx, 1
mov rcx, rax
call fcn.1403ba980
mov qword [rsp + 0x1298], rax
jmp 0x14013dbaf
mov qword [rsp + 0x1298], 0
mov eax, dword [rsp + 0x978]
add eax, 0x400
cdqe
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x1298]
call fcn.1401375b0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov r9d, dword [rax + 0x930]
lea r8, str._Chain_Timeout:__u_milliseconds_n
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax - 0x18]
mov rcx, qword [rsp + 0x58]
call fcn.140015f80
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
jmp 0x14013dc0e
jmp 0x14013dc13
jmp 0x14013d1b1
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x58]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140435e40]
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x12a0]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x12b0
pop rdi
ret