Function at 0x14003fd70
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov rax, qword [0x1400e0300]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov qword [rbp - 0x60], r9
mov esi, r8d
mov dword [rsp + 0x78], r8d
mov edi, edx
mov dword [rsp + 0x30], edi
mov r14, rcx
mov qword [rsp + 0x40], rcx
test r9, r9
je 0x1400401cb
mov rcx, qword [r9]
mov qword [rbp - 0x78], rcx
test rcx, rcx
je 0x1400401cb
mov qword [rbp - 0x80], rcx
xor r15d, r15d
mov qword [r9], r15
cmp edi, 0x3f
jae 0x1400401b6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov r13d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x70], r15
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
lea r8, [rbp - 0x80]
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14003f800
mov r12d, r15d
mov rbx, qword [rsp + 0x50]
test edi, edi
mov rdi, qword [rsp + 0x68]
je 0x14003ff8f
nop dword [rax]
mov word [r14 + 0xa], r15w
mov rsi, r14
mov qword [rbp - 0x68], r14
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rbp - 0x70], rax
cmp rdi, r13
je 0x14003fe65
mov qword [rdi], rax
mov r14, r15
mov rax, qword [rsp + 0x40]
mov qword [rdi + 8], rax
add rdi, 0x10
mov qword [rsp + 0x68], rdi
jmp 0x14003fe8d
lea r8, [rbp - 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14003f9a0
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x38], r13
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x70]
test r14, r14
je 0x14003feb4
test rsi, rsi
je 0x14003feab
cmp dword [rsi], 0xffffffff
je 0x14003feab
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
lea rsi, [rdi - 0x10]
mov r14, qword [rsi]
mov qword [rbp - 0x80], r14
test r14, r14
je 0x14003ffd4
cmp rbx, qword [rsp + 0x58]
je 0x14003fedd
mov qword [rbx], r14
add rbx, 8
mov qword [rsp + 0x50], rbx
jmp 0x14003fef3
lea r8, [rbp - 0x80]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14003f800
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
movzx r9d, word [rax + 8]
movzx eax, r9w
mov ecx, 0x300
and ax, cx
neg ax
sbb ecx, ecx
and ecx, 9
mov r8d, ecx
or r8d, 0x12
test r9b, 0x10
cmove r8d, ecx
mov rdx, r14
mov r14, qword [rsp + 0x40]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x14003ff78
mov word [r14 + 0xa], 4
mov rdx, qword [rsi]
test rdx, rdx
je 0x14003ff67
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14003ff5e
cmp dword [rcx], 0xffffffff
je 0x14003ff5e
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rdi, rsi
mov qword [rsp + 0x68], rsi
sub rbx, 8
mov qword [rsp + 0x50], rbx
inc r12d
add r14, 0x10
mov qword [rsp + 0x40], r14
cmp r12d, dword [rsp + 0x30]
jb 0x14003fe30
mov rsi, qword [rsp + 0x48]
sub rbx, rsi
sar rbx, 3
mov r9d, 0xffffffff
cmp dword [rsp + 0x78], 0xffffffff
cmovne r9d, dword [rsp + 0x78]
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rdx, rsi
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x14003fff4
mov r15d, 0xffffffff
mov r12, qword [rsp + 0x60]
jmp 0x1400400ea
mov ecx, 0x2747
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x48]
mov r15d, 0xffffffff
mov r12, qword [rsp + 0x60]
jmp 0x1400400ea
cmp eax, 0x102
je 0x140040010
test eax, eax
jne 0x14004001a
mov rax, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x78]
mov qword [rax], rcx
mov r15d, 1
mov r12, qword [rsp + 0x60]
jmp 0x1400400ea
lea r14d, [rax - 1]
mov r13d, r15d
mov rax, rdi
mov r12, qword [rsp + 0x60]
sub rax, r12
sar rax, 4
mov qword [rbp - 0x78], rax
cmp r14d, eax
jge 0x1400400e7
movsxd rsi, r14d
shl rsi, 4
add rsi, r12
mov r12, rax
nop word [rax + rax]
mov rbx, qword [rsi + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x58]
mov rdx, qword [rsi]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x140040084
mov word [rbx + 0xa], 1
jmp 0x1400400c8
mov eax, dword [rbp - 0x58]
test eax, eax
je 0x1400400c8
test al, 0xd
je 0x14004009b
mov eax, 0x300
or word [rbx + 0xa], ax
mov eax, dword [rbp - 0x58]
test al, 0x12
je 0x1400400a4
or word [rbx + 0xa], 0x10
mov rax, r15
cmp dword [rbp + rax*4 - 0x54], 0
jne 0x1400400b9
inc rax
cmp rax, 0xa
jl 0x1400400a7
jmp 0x1400400be
or word [rbx + 0xa], 1
cmp word [rbx + 0xa], 0
je 0x1400400c8
inc r13d
inc r14d
add rsi, 0x10
cmp r14d, r12d
jl 0x140040050
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
mov r15d, r13d
test rsi, rsi
je 0x140040131
mov rax, qword [rsp + 0x58]
sub rax, rsi
sar rax, 3
lea rdx, [rax*8]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140040128
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400403d5
mov rcx, rsi
call fcn.140073ed4
nop
test r12, r12
je 0x1400401ae
mov rbx, r12
cmp r12, rdi
je 0x140040174
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x14004016b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140040162
cmp dword [rcx], 0xffffffff
je 0x140040162
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
add rbx, 0x10
cmp rbx, rdi
jne 0x140040140
mov rdx, qword [rsp + 0x38]
sub rdx, r12
and rdx, 0xfffffffffffffff0
mov rax, r12
cmp rdx, 0x1000
jb 0x1400401a6
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400403cf
mov rcx, r12
call fcn.140073ed4
mov eax, r15d
jmp 0x1400403a5
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
jmp 0x1400403a5
xor r15d, r15d
mov ebx, r15d
mov r9d, r15d
mov dword [rbp - 0x20], r15d
mov r8d, r15d
mov dword [rbp + 0x1f0], r15d
mov edx, r15d
mov dword [rbp + 0x400], edx
mov r12d, 0x300
test edi, edi
je 0x1400402e7
mov r10, r14
nop dword [rax]
mov r11, qword [r10]
mov rax, r11
cmp r11, rbx
cmovbe rax, rbx
mov rbx, rax
test word [r10 + 8], r12w
je 0x140040249
mov ecx, r15d
test r9d, r9d
je 0x14004022e
nop
cmp qword [rbp + rcx*8 - 0x18], r11
je 0x14004022e
inc ecx
cmp ecx, r9d
jb 0x140040220
cmp ecx, r9d
jne 0x140040249
cmp r9d, 0x40
jae 0x140040249
mov qword [rbp + rcx*8 - 0x18], r11
mov r9d, dword [rbp - 0x20]
inc r9d
mov dword [rbp - 0x20], r9d
test byte [r10 + 8], 0x10
je 0x140040295
mov ecx, r15d
test r8d, r8d
je 0x140040271
nop dword [rax + rax]
cmp qword [rbp + rcx*8 + 0x1f8], r11
je 0x140040271
inc ecx
cmp ecx, r8d
jb 0x140040260
cmp ecx, r8d
jne 0x140040295
cmp r8d, 0x40
jae 0x140040295
mov qword [rbp + rcx*8 + 0x1f8], r11
mov r8d, dword [rbp + 0x1f0]
inc r8d
mov dword [rbp + 0x1f0], r8d
test byte [r10 + 8], 1
je 0x1400402d5
mov ecx, r15d
test edx, edx
je 0x1400402b3
cmp qword [rbp + rcx*8 + 0x408], r11
je 0x1400402b3
inc ecx
cmp ecx, edx
jb 0x1400402a3
cmp ecx, edx
jne 0x1400402d5
cmp edx, 0x40
jae 0x1400402d5
mov rax, qword [r10]
mov qword [rbp + rcx*8 + 0x408], rax
mov edx, dword [rbp + 0x400]
inc edx
mov dword [rbp + 0x400], edx
add r10, 0x10
sub rdi, 1
jne 0x140040200
mov edi, dword [rsp + 0x30]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x38], edx
imul eax, edx, 0x3e8
mov ecx, esi
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
cmp esi, 0xffffffff
cmove rax, r15
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x400]
lea r8, [rbp + 0x1f0]
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
test eax, eax
js 0x1400403a3
test edi, edi
je 0x1400403a3
lea rbx, [r14 + 0xa]
nop word [rax + rax]
mov word [rbx], r15w
lea rdx, [rbp - 0x20]
mov rcx, qword [rbx - 0xa]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140040369
or word [rbx], r12w
lea rdx, [rbp + 0x1f0]
mov rcx, qword [rbx - 0xa]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140040381
or word [rbx], 0x10
lea rdx, [rbp + 0x400]
mov rcx, qword [rbx - 0xa]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140040399
or word [rbx], 1
add rbx, 0x10
sub rdi, 1
jne 0x140040350
mov eax, esi
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.140073a40
mov rbx, qword [rsp + 0x768]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007a684
nop
call fcn.14007a684
nop
int3