Function at 0x140118250
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, 0x1170
call fcn.14026deb0
sub rsp, rax
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov rax, qword [rsp + 0x1180]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x930], 0
mov dword [rsp + 0xa0], 0x5265c00
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
xor eax, eax
cmp eax, 1
je 0x140118c62
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax + 0x950]
call fcn.140121800
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140118991
mov rcx, qword [rsp + 0x98]
call fcn.1401218e0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140118991
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140118977
mov dword [rsp + 0x300], 0
mov dword [rsp + 0x720], 0
mov dword [rsp + 0x510], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x720]
lea r8, [rsp + 0x510]
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax]
mov r8d, 0x208
lea rdx, [rsp + 0x930]
lea rcx, [rsp + 0x300]
call fcn.140270070
test eax, eax
jne 0x1401183ee
mov r8d, 0x208
lea rdx, [rsp + 0x930]
lea rcx, [rsp + 0x510]
call fcn.140270070
test eax, eax
jne 0x1401183ee
mov r8d, 0x208
lea rdx, [rsp + 0x930]
lea rcx, [rsp + 0x720]
call fcn.140270070
test eax, eax
je 0x140118977
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
jmp 0x14011840a
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x300]
cmp dword [rsp + 0x50], eax
jge 0x14011843d
movsxd rax, dword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x58]
mov rax, qword [rsp + rax*8 + 0x308]
mov qword [rsp + rcx*8 + 0xf60], rax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x140118400
mov dword [rsp + 0x50], 0
jmp 0x140118451
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x510]
cmp dword [rsp + 0x50], eax
jge 0x1401184a3
movsxd rax, dword [rsp + 0x50]
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + rax*8 + 0x518]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1401184a1
movsxd rax, dword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x58]
mov rax, qword [rsp + rax*8 + 0x518]
mov qword [rsp + rcx*8 + 0xf60], rax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x140118447
mov dword [rsp + 0x50], 0
jmp 0x1401184b7
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x720]
cmp dword [rsp + 0x50], eax
jge 0x140118528
movsxd rax, dword [rsp + 0x50]
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + rax*8 + 0x728]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140118526
movsxd rax, dword [rsp + 0x50]
lea rdx, [rsp + 0x510]
mov rcx, qword [rsp + rax*8 + 0x728]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140118526
movsxd rax, dword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x58]
mov rax, qword [rsp + rax*8 + 0x728]
mov qword [rsp + rcx*8 + 0xf60], rax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x1401184ad
mov dword [rsp + 0x50], 0
jmp 0x14011853c
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x50], eax
jge 0x140118977
mov dword [rsp + 0x88], 0
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1188]
mov rcx, rax
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1401186b5
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1190]
mov rcx, rax
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1401186b5
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1198]
mov rcx, rax
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1401186b5
mov dword [rsp + 0xf0], 0
mov dword [rsp + 0xd50], 0
mov dword [rsp + 0xb40], 0
mov dword [rsp + 0x5c], 0
jmp 0x1401185e4
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0x5c], eax
jae 0x140118610
mov eax, dword [rsp + 0x5c]
movsxd rcx, dword [rsp + 0x50]
mov rcx, qword [rsp + rcx*8 + 0xf60]
cmp qword [rsp + rax*8 + 0xf8], rcx
jne 0x14011860e
jmp 0x140118610
jmp 0x1401185da
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0x5c], eax
jne 0x140118650
cmp dword [rsp + 0xf0], 0x40
jae 0x140118650
movsxd rax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x5c]
mov rax, qword [rsp + rax*8 + 0xf60]
mov qword [rsp + rcx*8 + 0xf8], rax
mov eax, dword [rsp + 0xf0]
inc eax
mov dword [rsp + 0xf0], eax
xor eax, eax
test eax, eax
jne 0x1401185d0
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb40]
lea r8, [rsp + 0xd50]
lea rdx, [rsp + 0xf0]
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14011869c
mov dword [rsp + 0x8c], 1
jmp 0x1401186a7
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0x68], 0
jne 0x140118807
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0
je 0x140118701
movsxd rax, dword [rsp + 0x50]
lea r9, [rsp + 0xe8]
mov r8d, dword [rsp + rax*8 + 0xf60]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x1180]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x18]
mov qword [rsp + 0xb8], rax
jmp 0x140118712
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xb8], rax
cmp dword [rsp + 0x88], 0
jne 0x14011872d
lea rax, [0x1403b99a6]
mov qword [rsp + 0xc0], rax
jmp 0x14011873c
lea rax, [0x140334544]
mov qword [rsp + 0xc0], rax
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1198]
mov rcx, qword [rsp + rax*8 + 0xf60]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [rsp + 0xa4], eax
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1190]
mov rcx, qword [rsp + rcx*8 + 0xf60]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [rsp + 0xa8], eax
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1188]
mov rcx, qword [rsp + rcx*8 + 0xf60]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rdx
mov edx, dword [rsp + 0xa4]
mov dword [rsp + 0x38], edx
mov edx, dword [rsp + 0xa8]
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + rcx*8 + 0xf60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc0]
lea r8, str.__sFD__d___R:__d__W:__d__E:__d_____s_n
xor edx, edx
xor ecx, ecx
call fcn.140001480
cdqe
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
jmp 0x140118972
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0
je 0x140118847
movsxd rax, dword [rsp + 0x50]
lea r9, [rsp + 0xe8]
mov r8d, dword [rsp + rax*8 + 0xf60]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x1180]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x18]
mov qword [rsp + 0xc8], rax
jmp 0x140118858
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xc8], rax
cmp dword [rsp + 0x88], 0
jne 0x140118873
lea rax, [0x1403b99a5]
mov qword [rsp + 0xd0], rax
jmp 0x140118882
lea rax, [0x140334514]
mov qword [rsp + 0xd0], rax
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1198]
mov rcx, qword [rsp + rax*8 + 0xf60]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [rsp + 0xac], eax
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1190]
mov rcx, qword [rsp + rcx*8 + 0xf60]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [rsp + 0xb0], eax
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x1188]
mov rcx, qword [rsp + rcx*8 + 0xf60]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movsxd rcx, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x54]
mov rdi, qword [rsp + 0x68]
mov rdi, qword [rdi - 0x18]
sub rdi, rdx
mov rdx, rdi
movsxd rdi, dword [rsp + 0x54]
mov r8, qword [rsp + 0x68]
add r8, rdi
mov rdi, r8
mov r8, qword [rsp + 0xc8]
mov qword [rsp + 0x40], r8
mov r8d, dword [rsp + 0xac]
mov dword [rsp + 0x38], r8d
mov r8d, dword [rsp + 0xb0]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + rcx*8 + 0xf60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xd0]
lea r8, [0x1403ac310]
mov rcx, rdi
call fcn.140001420
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jle 0x140118972
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x140118532
mov rcx, qword [rsp + 0x98]
call fcn.140121880
mov qword [rsp + 0x98], rax
jmp 0x1401182ff
mov dword [rsp + 0x50], 0
jmp 0x1401189a5
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x40
jge 0x140118b71
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9a0]
cmp dword [rsp + 0x50], eax
jge 0x140118b71
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + rax*8 + 0x520], 0
je 0x140118b6c
mov eax, dword [rsp + 0x50]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + rax*8 + 0x520], 0
je 0x140118b6c
cmp qword [rsp + 0x68], 0
jne 0x140118aa9
movsxd rax, dword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + rax*8 + 0x520]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x140118a35
mov dword [rsp + 0x90], 1
jmp 0x140118a40
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x50]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx + rax*8 + 0x520]
add rax, 0x20
movsxd rcx, dword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x78]
mov r9, qword [rax + rcx*8 + 0x520]
lea r8, str._H__p___Signaled:__d_____s_n
xor edx, edx
xor ecx, ecx
call fcn.140001480
cdqe
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
jmp 0x140118b6c
movsxd rax, dword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + rax*8 + 0x520]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x140118ad7
mov dword [rsp + 0x94], 1
jmp 0x140118ae2
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x50]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx + rax*8 + 0x520]
add rax, 0x20
movsxd rcx, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x54]
mov rdi, qword [rsp + 0x68]
mov rdi, qword [rdi - 0x18]
sub rdi, rdx
mov rdx, rdi
movsxd rdi, dword [rsp + 0x54]
mov r8, qword [rsp + 0x68]
add r8, rdi
mov rdi, r8
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x78]
mov r9, qword [rax + rcx*8 + 0x520]
lea r8, [0x1403ac2d0]
mov rcx, rdi
call fcn.140001420
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jle 0x140118b6c
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x14011899b
cmp qword [rsp + 0x68], 0
jne 0x140118c5b
mov rax, qword [rsp + 0x80]
add rax, 0x400
mov ecx, 0xffffffff
cmp rax, rcx
jae 0x140118bf2
mov rax, qword [rsp + 0x80]
add rax, 0x400
mov ecx, 0xffffffff
sub rcx, rax
mov rax, rcx
test rax, rax
jbe 0x140118bf2
mov rax, qword [rsp + 0x80]
add rax, 0x400
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x140118bf2
xor eax, eax
cmp eax, 1
je 0x140118bf2
mov rax, qword [rsp + 0x80]
add rax, 0x418
mov rcx, rax
call fcn.14027bb94
mov qword [rsp + 0xd8], rax
jmp 0x140118bfe
mov qword [rsp + 0xd8], 0
mov eax, dword [rsp + 0x80]
add eax, 0x400
cdqe
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xd8]
call fcn.140113960
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x78]
mov r9d, dword [rax + 0x930]
lea r8, str._Chain_Timeout:__u_milliseconds_n
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax - 0x18]
mov rcx, qword [rsp + 0x68]
call fcn.140001420
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x140118c5d
jmp 0x140118c62
jmp 0x1401182d8
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x1170
pop rdi
ret