Function at 0x140098740
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, qword [0x1401fbd90]
mov rsi, rdx
test rbx, rbx
je case.default.0x1400987c6
cmp dword [rbx + 0x2b84], 0
je 0x140098b91
mov eax, dword [rbx + 0x68]
cmp eax, 8
je 0x140098b91
dec eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
cmp eax, 5
ja case.default.0x1400987c6
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x98e38]
add rcx, rdx
jmp rcx
xor edx, edx
lea rcx, [rsp + 0x63]
mov r8d, 0xfe
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x58], 0
mov word [rsp + 0x60], 0x105
je 0x1400987f3
cmp qword [rbx + 0x60], 0
je 0x1400987f3
mov al, 2
jmp 0x1400987f5
xor al, al
mov ecx, 3
mov byte [rsp + 0x62], al
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x24]
mov r9d, 1
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
call fcn.14000c650
test eax, eax
jle case.default.0x1400987c6
mov dword [rbx + 0x68], 2
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x48]
xor r13d, r13d
mov qword [rsp + 0x40], rax
lea rdx, [rbx + 0x24]
mov word [rsp + 0x48], r13w
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], 2
call fcn.14000c740
test eax, eax
jle case.default.0x1400987c6
cmp byte [rsp + 0x48], 5
jne 0x140098b85
movzx edx, byte [rsp + 0x49]
test dl, 0xfd
jne 0x140098b85
cmp dl, 2
mov eax, 5
mov ecx, 3
cmove eax, ecx
mov dword [rbx + 0x68], eax
jmp case.default.0x1400987c6
xor edx, edx
lea rcx, [rsp + 0x62]
mov r8d, 0x1ff
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx + 0x58]
mov rdx, 0xffffffffffffffff
mov rax, rdx
mov byte [rsp + 0x60], 1
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400988f0
lea r8, [rsp + 0x62]
mov byte [rsp + 0x61], al
sub r8, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140098910
mov rcx, qword [rbx + 0x60]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140098923
movzx eax, byte [rsp + 0x61]
lea r8, [rsp + 0x63]
mov byte [rsp + rax + 0x62], dl
movzx eax, byte [rsp + 0x61]
add r8, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [r8], al
lea r8, [r8 + 1]
test al, al
jne 0x140098950
movzx ecx, dl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rdx, [rbx + 0x24]
movzx eax, byte [rsp + 0x61]
lea r8, [rsp + 0x38]
add rax, 3
mov r9d, 1
add rcx, rax
mov qword [rsp + 0x38], rcx
mov rcx, qword [rbx + 8]
call fcn.14000c650
test eax, eax
jle case.default.0x1400987c6
mov dword [rbx + 0x68], 4
jmp case.default.0x1400987c6
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x48]
xor r13d, r13d
mov qword [rsp + 0x40], rax
lea rdx, [rbx + 0x24]
mov word [rsp + 0x48], r13w
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], 2
call fcn.14000c740
test eax, eax
jle case.default.0x1400987c6
cmp byte [rsp + 0x48], 1
jne 0x140098b85
cmp byte [rsp + 0x49], r13b
jne 0x140098b85
mov dword [rbx + 0x68], 5
jmp case.default.0x1400987c6
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x24]
xor eax, eax
mov qword [rsp + 0x38], 0xa
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x38]
mov word [rsp + 0x58], ax
mov r9d, 1
lea rax, [rsp + 0x50]
mov word [rsp + 0x50], 0x305
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x53], 1
call fcn.14000c650
test eax, eax
jle case.default.0x1400987c6
mov dword [rbx + 0x68], 6
jmp case.default.0x1400987c6
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x24]
xor eax, eax
mov qword [rsp + 0x38], 0xa
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x38]
mov word [rsp + 0x58], ax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
call fcn.14000c740
test eax, eax
jle case.default.0x1400987c6
cmp byte [rsp + 0x50], 5
jne 0x140098b85
cmp byte [rsp + 0x51], 0
jne 0x140098b85
cmp byte [rsp + 0x53], 1
jne 0x140098b85
mov eax, dword [rsp + 0x54]
test eax, eax
jne 0x140098aca
movups xmm0, xmmword [0x14015af18]
movups xmmword [rbx + 0x10], xmm0
jmp 0x140098b0b
cmp eax, 0xffffffff
jne 0x140098adc
movups xmm0, xmmword [0x14015ae70]
movups xmmword [rbx + 0x10], xmm0
jmp 0x140098b0b
movzx ecx, byte [rsp + 0x54]
movups xmm0, xmmword [0x14015ae60]
movups xmmword [rbx + 0x10], xmm0
mov byte [rbx + 0x1c], cl
mov ecx, eax
shr ecx, 8
mov byte [rbx + 0x1d], cl
mov ecx, eax
shr ecx, 0x10
shr eax, 0x18
mov byte [rbx + 0x1f], al
mov word [rbx + 0x1a], 0xffff
mov byte [rbx + 0x1e], cl
movzx ecx, word [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbx + 0x88]
mov word [rbx + 0x20], ax
imul rax, qword [rbx + 0x90], 0x208
add rax, rdx
cmp rdx, rax
jae 0x140098b79
lea rcx, [rdx + 0x22]
nop dword [rax + rax]
movups xmm0, xmmword [rbx + 0x10]
add rdx, 0x208
lea rcx, [rcx + 0x208]
movups xmmword [rcx - 0x208], xmm0
mov eax, dword [rbx + 0x20]
mov dword [rcx - 0x1f8], eax
imul rax, qword [rbx + 0x90], 0x208
add rax, qword [rbx + 0x88]
cmp rdx, rax
jb 0x140098b40
mov dword [rbx + 0x68], 8
jmp case.default.0x1400987c6
mov dword [rbx + 0x68], 7
jmp case.default.0x1400987c6
xor r13d, r13d
test rsi, rsi
je 0x140098bbe
mov rcx, rbx
mov dword [rdx], r13d
mov qword [rdx + 8], r13
mov qword [rdx + 0x18], r13
call fcn.140095c00
cmp eax, 0xffffffff
je 0x140098cfe
cmp eax, 1
je 0x140098ccf
call fcn.14009aa30
mov dword [rsp + 0x48], eax
mov ecx, dword [rbx + 0x74]
mov edx, eax
mov dword [rbx + 0xa0], eax
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x3e8
jb 0x140098bee
mov rcx, rbx
call fcn.14009a640
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call fcn.140097f90
cmp eax, 0xffffffff
je 0x140098cfe
cmp eax, 1
je 0x140098ccf
mov r14d, r13d
lea r15, [rbx + 0xb18]
nop dword [rax + rax]
mov eax, dword [rbx + 0x78]
lea r8, [rsp + 0x38]
mov rcx, qword [rbx]
lea rdx, [rbx + 0x2b18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r15
call fcn.14000c740
movsxd rdi, eax
cmp edi, 0xfffffffe
je 0x140098cee
test eax, eax
js 0x140098cfe
je 0x140098d0a
cmp dword [rbx + 0x2b84], r13d
je 0x140098c76
mov rcx, qword [rsp + 0x40]
lea r8, [rdi - 0xa]
lea rdx, [rcx + 0xa]
call sub.VCRUNTIME140.dll_memmove
mov rax, rdi
mov qword [rbx + 0x2b30], r15
mov qword [rbx + 0x2b38], rax
cmp dword [rbx + 0x2b84], r13d
je 0x140098c9b
add rax, 0xfffffffffffffff6
mov qword [rbx + 0x2b38], rax
add dword [rbx + 0x2b48], edi
inc dword [rbx + 0x2b4c]
mov rax, qword [rbx + 0x2b50]
test rax, rax
je 0x140098cd9
mov rdx, rsi
mov rcx, rbx
call rax
cmp eax, 0xffffffff
je 0x140098cfe
cmp eax, 1
jne 0x140098cd9
test rsi, rsi
je 0x140098cee
cmp dword [rsi], r13d
je 0x140098cee
mov eax, 1
jmp 0x140098832
mov rdx, rsi
mov rcx, rbx
call fcn.140096dd0
cmp eax, 0xffffffff
je 0x140098cfe
cmp eax, 1
je 0x140098ccf
inc r14d
cmp r14d, 0x100
jl 0x140098c20
mov rax, 0xffffffffffffffff
jmp 0x140098832
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call fcn.140097f90
cmp eax, 0xffffffff
je 0x140098cfe
cmp eax, 1
je 0x140098ccf
test rsi, rsi
je 0x140098d3f
mov rdx, rsi
mov rcx, rbx
call fcn.140095c00
cmp eax, 0xffffffff
je 0x140098cfe
cmp eax, 1
je 0x140098ccf
mov eax, dword [rbx + 0xa0]
mov r14d, dword [rsp + 0x48]
sub eax, r14d
cmp eax, 0x5265c00
jb case.default.0x1400987c6
call fcn.14009aa30
mov edx, eax
mov dword [rbx + 0xa0], eax
sub edx, r14d
cmp edx, 0x5265c00
jb case.default.0x1400987c6
mov rdi, qword [rbx]
lea r8, [rbp + 0x170]
mov ecx, r14d
mov dword [rbp + 0x170], r13d
sub ecx, eax
mov qword [rsp + 0x68], rdi
cmp ecx, 0x5265c00
mov dword [rsp + 0x60], 1
movabs rax, 0x624dd2f1a9fbe77
cmovb edx, ecx
xor r9d, r9d
mov ecx, edx
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
lea rdx, [rsp + 0x60]
shr rax, 9
mov dword [rsp + 0x50], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
lea ecx, [rdi + 1]
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140098cfe
je 0x140098e25
lea rdx, [rbp + 0x170]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140098e25
call fcn.14009aa30
jmp 0x140098bc7
call fcn.14009aa30
mov dword [rbx + 0xa0], eax
jmp case.default.0x1400987c6