Function at 0x14006ee80
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x378]
sub rsp, 0x478
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rsi, qword [0x140400720]
mov rax, r9
mov r10, r8
mov r11d, edx
cmp ecx, 0x6166616d
jne 0x14006eeda
cmp edx, 2
je 0x14006eecf
cmp edx, 0x17
je 0x14006eecf
mov eax, 0xffffffff
jmp 0x14006f308
mov dword [rsi + 0x5c], r11d
xor eax, eax
jmp 0x14006f308
cmp ecx, 0x636f6e6e
je 0x14006eed3
cmp ecx, 0x64697363
je 0x14006eed3
cmp ecx, 0x2b697036
jne 0x14006ef09
lea rcx, [rsi + 0x90]
mov r8d, r11d
mov rdx, r10
call fcn.140069a90
jmp 0x14006f308
cmp ecx, 0x2d697036
jne 0x14006ef28
lea rcx, [rsi + 0x90]
mov r8d, r11d
mov rdx, r10
call fcn.14006a130
jmp 0x14006f308
cmp ecx, 0x7e697036
jne 0x14006ef4a
lea rcx, [rsi + 0x90]
mov r9d, r11d
mov r8, rax
mov rdx, r10
call fcn.140069f90
jmp 0x14006f308
cmp ecx, 0x6c616472
jne 0x14006ef5d
mov dword [rsi + 0x78], r11d
xor eax, eax
jmp 0x14006f308
cmp ecx, 0x6d617870
jne 0x14006ef70
mov dword [rsi + 0x58], r11d
xor eax, eax
jmp 0x14006f308
mov qword [rsp + 0x490], rbx
cmp ecx, 0x706f6c6c
jne 0x14006f21f
xor ebx, ebx
mov qword [rsp + 0x470], rdi
mov eax, 0x10624dd3
mov dword [rsp + 0x40], ebx
imul r11d
mov eax, 0x10624dd3
mov dword [rbp + 0x150], ebx
sar edx, 6
mov edi, ebx
mov ecx, edx
mov r8d, ebx
shr ecx, 0x1f
mov r9d, ebx
add edx, ecx
mov dword [rsp + 0x30], edx
imul r11d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
sub r11d, eax
imul eax, r11d, 0x3e8
mov dword [rsp + 0x34], eax
test r10, r10
je 0x14006f0ac
mov r11d, ebx
cmp qword [r10], rbx
je 0x14006f181
cmp r11d, 0x40
jge 0x14006f181
mov ecx, ebx
test r8d, r8d
je 0x14006f01e
mov rax, qword [r10]
mov rdx, qword [rax + 0x10]
nop dword [rax]
cmp qword [rsp + rcx*8 + 0x48], rdx
je 0x14006f01e
inc ecx
cmp ecx, r8d
jb 0x14006f010
cmp ecx, r8d
jne 0x14006f042
cmp r8d, 0x40
jae 0x14006f042
mov rax, qword [r10]
mov rax, qword [rax + 0x10]
mov qword [rsp + rcx*8 + 0x48], rax
mov r8d, dword [rsp + 0x40]
inc r8d
mov dword [rsp + 0x40], r8d
mov ecx, ebx
test r9d, r9d
je 0x14006f061
mov rax, qword [r10]
mov rdx, qword [rax + 0x10]
cmp qword [rbp + rcx*8 + 0x158], rdx
je 0x14006f061
inc ecx
cmp ecx, r9d
jb 0x14006f050
cmp ecx, r9d
jne 0x14006f08c
cmp r9d, 0x40
jae 0x14006f08c
mov rax, qword [r10]
mov rax, qword [rax + 0x10]
mov qword [rbp + rcx*8 + 0x158], rax
mov r9d, dword [rbp + 0x150]
inc r9d
mov dword [rbp + 0x150], r9d
mov rax, qword [r10]
cmp dword [rax + 0x10], edi
jle 0x14006f097
mov edi, dword [rax + 0x10]
add r10, 8
inc r11d
cmp qword [r10], rbx
jne 0x14006eff1
jmp 0x14006f181
xor ecx, ecx
call fcn.14006bf70
mov r9, qword [rsi]
mov r11d, ebx
test r9, r9
je 0x14006f17a
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x150]
nop dword [rax]
cmp r11d, 0x40
jge 0x14006f17a
cmp qword [r9 + 0x10], 0xffffffffffffffff
je 0x14006f16b
mov ecx, ebx
test edx, edx
je 0x14006f0fd
mov r10, qword [r9 + 0x10]
nop
cmp qword [rsp + rcx*8 + 0x48], r10
je 0x14006f0fd
inc ecx
cmp ecx, edx
jb 0x14006f0f0
cmp ecx, edx
jne 0x14006f119
cmp edx, 0x40
jae 0x14006f119
mov rax, qword [r9 + 0x10]
mov qword [rsp + rcx*8 + 0x48], rax
mov edx, dword [rsp + 0x40]
inc edx
mov dword [rsp + 0x40], edx
mov eax, ebx
test r8d, r8d
je 0x14006f137
mov r10, qword [r9 + 0x10]
mov ecx, eax
cmp qword [rbp + rcx*8 + 0x158], r10
je 0x14006f137
inc eax
cmp eax, r8d
jb 0x14006f124
cmp eax, r8d
jne 0x14006f161
cmp r8d, 0x40
jae 0x14006f161
mov ecx, eax
mov rax, qword [r9 + 0x10]
mov qword [rbp + rcx*8 + 0x158], rax
mov r8d, dword [rbp + 0x150]
inc r8d
mov dword [rbp + 0x150], r8d
cmp dword [r9 + 0x10], edi
jle 0x14006f16b
mov edi, dword [r9 + 0x10]
mov r9, qword [r9]
inc r11d
test r9, r9
jne 0x14006f0d0
xor ecx, ecx
call fcn.14006c200
lea rax, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x150]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
jle 0x14006f210
xor ecx, ecx
call fcn.14006bf70
mov rbx, qword [rsi]
test rbx, rbx
je 0x14006f209
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x14006f201
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006f201
cmp qword [rbx + 0x1b8], 0
je 0x14006f201
test byte [rbx + 0x1a4], 2
je 0x14006f201
mov r8, qword [rbx + 0x1b0]
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x1b8]
call fcn.140064500
mov dword [rbx + 0x1a8], eax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006f1b8
xor ecx, ecx
call fcn.14006c200
mov eax, edi
mov rdi, qword [rsp + 0x470]
jmp 0x14006f300
cmp ecx, 0x73646362
jne 0x14006f256
mov qword [rsp + 0x30], r10
lea rcx, [rsi + 0xb8]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
test r11d, r11d
je 0x14006f24c
call fcn.14006b410
jmp 0x14006f300
call fcn.14006b640
jmp 0x14006f300
cmp ecx, 0x7370616d
jne 0x14006f269
mov dword [rsi + 0x74], r11d
xor eax, eax
jmp 0x14006f300
cmp ecx, 0x76616464
jne 0x14006f29e
xor ebx, ebx
cmp word [rsi + 0x18], bx
je 0x14006f291
lea rax, [rsi + 0x18]
nop dword [rax]
inc ebx
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x14006f280
cmp ebx, 0x20
jge 0x14006f2fb
movsxd rax, ebx
mov word [rsi + rax*2 + 0x18], r11w
xor eax, eax
jmp 0x14006f300
cmp ecx, 0x7664656c
jne 0x14006f2fb
xor ebx, ebx
lea rax, [rsi + 0x1a]
mov ecx, ebx
mov edx, ebx
cmp word [rax - 2], r11w
je 0x14006f2ea
cmp word [rax], r11w
je 0x14006f2e8
cmp word [rax + 2], r11w
je 0x14006f2e3
cmp word [rax + 4], r11w
je 0x14006f2de
add rdx, 4
add rax, 8
add ecx, 4
cmp rdx, 0x20
jl 0x14006f2b0
jmp 0x14006f2ea
add ecx, 3
jmp 0x14006f2ea
add ecx, 2
jmp 0x14006f2ea
inc ecx
cmp ecx, 0x20
jge 0x14006f2fb
movsxd rax, ecx
mov word [rsi + rax*2 + 0x18], bx
xor eax, eax
jmp 0x14006f300
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x490]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x478
pop rsi
pop rbp
ret