Function at 0x14006d880
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401dedc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x34], edx
mov r14, rcx
lea rbp, [rcx + 0x30]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [rsp + 0x48], al
cmp byte [r14 + 0x198], 0
jne 0x14006dfea
lea r15, [r14 + 0x148]
mov rax, qword [r15]
xor edi, edi
mov dword [rax], edi
mov qword [r15 + 0x10], 0xffffffffffffffff
mov rax, qword [r14 + 0x160]
mov dword [rax], edi
mov qword [r14 + 0x170], 0xffffffffffffffff
mov rax, qword [rbp + 0x148]
mov dword [rax], edi
mov qword [rbp + 0x158], 0xffffffffffffffff
mov rbx, qword [r14 + 0x58]
mov ecx, edi
mov r8, qword [r15]
mov edx, dword [r8]
test edx, edx
je 0x14006d93f
nop
mov eax, ecx
cmp qword [r8 + rax*8 + 8], rbx
je 0x14006d958
inc ecx
cmp ecx, edx
jb 0x14006d930
inc edx
mov rcx, r15
call fcn.14006b3a0
mov rcx, qword [r15]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rbx
mov rax, qword [r15]
inc dword [rax]
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x14006d97a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14006d98f
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006d964
xor al, al
nop dword [rax]
test al, al
jne 0x14006d993
cmp qword [r14 + 0x78], rdi
jne 0x14006d993
xor r13b, r13b
jmp 0x14006d996
mov al, 1
jmp 0x14006d980
mov r13b, 1
mov rax, qword [r14 + 0x70]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14006da48
nop word [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rbp, qword [r15]
mov eax, dword [rbp]
lea edx, [rax + 1]
mov ecx, dword [r15 + 8]
cmp edx, ecx
jbe 0x14006da2e
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r12d, edx
lea rcx, [rdx*8 + 8]
call fcn.14014ac08
mov rbp, rax
mov rcx, qword [r15]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov r8, qword [r15]
cmp dword [r8], edx
jbe 0x14006da1c
nop word [rax + rax]
lea rcx, [rdx*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + rbp + 8], rax
inc edx
mov r8, qword [r15]
cmp edx, dword [r8]
jb 0x14006da00
mov rcx, r8
call fcn.14014b340
mov qword [r15], rbp
mov dword [r15 + 8], r12d
mov eax, dword [rbp]
mov rcx, qword [rdi + 0x10]
mov qword [rbp + rax*8 + 8], rcx
mov rax, qword [r15]
inc dword [rax]
cmp rbx, qword [r14 + 0x70]
jne 0x14006d9b0
xor edi, edi
mov r12, qword [r14 + 0x158]
test r12, r12
cmove r12, rdi
test r13b, r13b
jne 0x14006da65
cmp qword [r14 + 0xb0], 0
je 0x14006da68
mov r13b, 1
mov rax, qword [r14 + 0xa8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14006db45
xor esi, esi
nop dword [rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rax, qword [r14 + 0x160]
mov edx, dword [rax]
inc edx
mov ecx, dword [r14 + 0x168]
cmp edx, ecx
jbe 0x14006db18
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov ebp, edx
lea rcx, [rdx*8 + 8]
call fcn.14014ac08
mov r15, rax
mov rcx, qword [r14 + 0x160]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r14 + 0x160]
cmp dword [r8], esi
jbe 0x14006db02
nop dword [rax]
nop word [rax + rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [rcx + r8 + 8]
mov qword [r15 + rcx + 8], rax
inc edx
mov r8, qword [r14 + 0x160]
cmp edx, dword [r8]
jb 0x14006dae0
mov rcx, r8
call fcn.14014b340
mov qword [r14 + 0x160], r15
mov dword [r14 + 0x168], ebp
mov rdx, qword [rdi + 0x10]
mov rcx, qword [r14 + 0x160]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rdx
mov rax, qword [r14 + 0x160]
inc dword [rax]
cmp rbx, qword [r14 + 0xa8]
jne 0x14006da80
mov rsi, qword [rsp + 0x50]
mov rax, qword [r14 + 0x170]
cmp rax, r12
cmova r12, rax
test r13b, r13b
jne 0x14006db62
cmp qword [r14 + 0xe8], 0
je 0x14006db65
mov r13b, 1
mov rax, qword [r14 + 0xe0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14006dc45
xor esi, esi
nop word [rax + rax]
lea rdi, [rbx]
mov rbx, qword [rbx]
mov rax, qword [r14 + 0x178]
mov edx, dword [rax]
inc edx
mov ecx, dword [r14 + 0x180]
cmp edx, ecx
jbe 0x14006dc18
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov ebp, edx
lea rcx, [rdx*8 + 8]
call fcn.14014ac08
mov r15, rax
mov rcx, qword [r14 + 0x178]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, esi
mov r8, qword [r14 + 0x178]
cmp dword [r8], esi
jbe 0x14006dc02
nop dword [rax]
nop word [rax + rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [rcx + r8 + 8]
mov qword [r15 + rcx + 8], rax
inc edx
mov r8, qword [r14 + 0x178]
cmp edx, dword [r8]
jb 0x14006dbe0
mov rcx, r8
call fcn.14014b340
mov qword [r14 + 0x178], r15
mov dword [r14 + 0x180], ebp
mov rdx, qword [rdi + 0x10]
mov rcx, qword [r14 + 0x178]
mov eax, dword [rcx]
mov qword [rcx + rax*8 + 8], rdx
mov rax, qword [r14 + 0x178]
inc dword [rax]
cmp rbx, qword [r14 + 0xe0]
jne 0x14006db80
mov rsi, qword [rsp + 0x50]
mov rax, qword [r14 + 0x188]
cmp rax, r12
cmova r12, rax
test r13b, r13b
jne 0x14006dc66
cmp qword [r14 + 0x120], 0
jne 0x14006dc66
xor bl, bl
jmp 0x14006dc68
mov bl, 1
mov r8, rsi
lea rdx, [r14 + 0x110]
lea rcx, [r14 + 0x160]
call fcn.140070340
mov rax, qword [r14 + 0x170]
cmp rax, r12
cmova r12, rax
mov r8, rsi
lea rdx, [r14 + 0x110]
lea rcx, [r14 + 0x178]
call fcn.140070340
mov rbp, qword [r14 + 0x188]
cmp rbp, r12
cmovbe rbp, r12
mov ecx, dword [rsp + 0x34]
test ecx, ecx
jne 0x14006dcc0
test bl, bl
je 0x14006e01f
xor ebx, ebx
mov qword [rsp + 0x70], rbx
test ecx, ecx
je 0x14006dd1a
mov eax, 0x11e1a300
cmp ecx, eax
cmova ecx, eax
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x14006dcf7
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006dce1
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x70], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x74], ecx
xor ebx, ebx
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r12b, r12b
mov byte [rsp + 0x30], r12b
mov byte [rsp + 0x48], r12b
mov r9, qword [r14 + 0x178]
mov r8, qword [r14 + 0x160]
mov rdx, qword [r14 + 0x148]
test rdx, rdx
jne 0x14006de5d
test r8, r8
jne 0x14006de5d
test r9, r9
jne 0x14006de5d
mov eax, 0x10624dd3
imul dword [rsp + 0x74]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x70], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbp, [r14 + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [rsp + 0x30], al
mov byte [rsp + 0x48], al
test ebx, ebx
jle 0x14006dfc3
mov r8, rsi
lea rdx, [r14 + 0x110]
lea rcx, [r14 + 0x178]
call fcn.140063340
mov r8, rsi
lea rdx, [r14 + 0x110]
lea rcx, [r14 + 0x160]
call fcn.140063340
mov r13d, 2
lea r12, [r14 + 0x178]
lea rbp, [r14 + 0xe0]
xor eax, eax
nop dword [rax]
mov r15d, eax
mov rcx, qword [r12]
cmp dword [rcx], 0
jbe 0x14006dfac
mov eax, r15d
mov r8, qword [rcx + rax*8 + 8]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14006df9a
xor edx, edx
mov rax, r8
div rcx
add rdx, rdx
mov rax, qword [rbp + 0x20]
mov rbx, qword [rax + rdx*8]
cmp rbx, qword [rbp]
je 0x14006df9a
mov rax, qword [rax + rdx*8 + 8]
mov rcx, qword [rax]
cmp rbx, rcx
je 0x14006df9a
cmp qword [rbx + 0x10], r8
je 0x14006df25
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rcx
jne 0x14006de43
jmp 0x14006df9a
cmp dword [rsp + 0x70], 0
jne 0x14006de7e
mov ecx, dword [rsp + 0x74]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x74], ecx
lea ecx, [rbp + 1]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rsp + 0x58]
call fcn.14004e6e0
test ebx, ebx
jle 0x14006dd8c
mov rdx, qword [r14 + 0x148]
mov rcx, qword [r14 + 0x58]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006dd8c
lea rcx, [r14 + 0x58]
call fcn.14006cf80
test al, al
jne 0x14006df11
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
mov byte [r14 + 0x198], 1
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [r14 + 0x1a8]
call fcn.140063970
movzx r12d, byte [rsp + 0x48]
mov byte [rsp + 0x30], r12b
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbp
jmp 0x14006df15
lea rbp, [r14 + 0x30]
dec ebx
test r12b, r12b
jne 0x14006dda3
jmp 0x14006dd90
cmp rbx, qword [rbp]
je 0x14006df9a
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x14006df8e
mov rax, qword [rdi + 0x60]
mov rcx, rdi
call rax
test eax, eax
je 0x14006df9a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006df69
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14006df61
mov qword [rbx + 0x20], rax
mov qword [rcx + 0x20], rax
jmp 0x14006df6b
xor eax, eax
mov qword [rcx + 0x20], rax
jmp 0x14006df6b
xor eax, eax
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 8]
test rax, rax
je 0x14006df7e
mov qword [rax + 0x20], rdi
jmp 0x14006df81
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdi, qword [rbx + 0x18]
test rdi, rdi
jne 0x14006df34
lea rcx, [rbp - 8]
mov rdx, rbx
call fcn.14004d4f0
inc r15d
mov rcx, qword [r12]
cmp r15d, dword [rcx]
jb 0x14006de00
xor eax, eax
sub r12, 0x18
sub rbp, 0x38
sub r13, 1
jns 0x14006ddf0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [r14 + 0x190]
test rbx, rbx
je 0x14006dfe5
nop
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14006dfd0
movzx eax, byte [rsp + 0x30]
test al, al
je 0x14006dff7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14014b190
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov al, 1
mov rbp, qword [rsp + 0x38]
jmp 0x14006dfea