Function at 0x14003e760
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x14008e168]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov eax, 0x7fffffff
xor ebx, ebx
mov r10, r9
cmp r9, rax
mov rsi, r8
mov rdi, rdx
cmovge r10, rax
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14003e7dd
cmp rdx, rcx
jne 0x14003e7dd
cmp r8, rcx
jne 0x14003e7dd
test r10d, r10d
je 0x14003e7d6
jns 0x14003e7cd
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or ebx, r14d
mov eax, ebx
jmp 0x14003ea51
mov ecx, r10d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x14003ea51
test r10, r10
mov qword [rsp + 0x698], r12
mov r8d, ebx
cmovg r8d, r10d
or r11, 0xffffffffffffffff
mov qword [rsp + 0x690], r13
mov qword [rsp + 0x688], r15
mov ecx, ebx
mov dword [rbp + 0x360], ebx
lea r15d, [r11 + 2]
mov r9d, ebx
mov dword [rsp + 0x40], ebx
cmp r14, r11
je 0x14003e83b
mov ecx, r15d
mov qword [rsp + 0x48], r14
mov r9d, r15d
mov dword [rsp + 0x40], r15d
mov qword [rbp + 0x368], r14
mov r11, r14
mov dword [rbp + 0x360], ecx
cmp rdx, 0xffffffffffffffff
je 0x14003e8c5
mov eax, ebx
test r9d, r9d
je 0x14003e861
lea rdx, [rsp + 0x48]
cmp qword [rdx], rdi
je 0x14003e861
inc eax
add rdx, 8
cmp eax, r9d
jb 0x14003e851
cmp eax, r9d
jne 0x14003e87e
cmp r9d, 0x40
jae 0x14003e87e
mov qword [rsp + rax*8 + 0x48], rdi
mov r9d, dword [rsp + 0x40]
inc r9d
mov dword [rsp + 0x40], r9d
mov eax, ebx
test ecx, ecx
je 0x14003e89f
lea rdx, [rbp + 0x368]
nop dword [rax + rax]
cmp qword [rdx], rdi
je 0x14003e89f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x14003e890
cmp eax, ecx
jne 0x14003e8be
cmp ecx, 0x40
jae 0x14003e8be
mov qword [rbp + rax*8 + 0x368], rdi
mov ecx, dword [rbp + 0x360]
inc ecx
mov dword [rbp + 0x360], ecx
cmp rdi, r11
cmova r11, rdi
mov r13d, ebx
mov dword [rbp + 0x150], ebx
cmp rsi, 0xffffffffffffffff
je 0x14003e91f
mov qword [rbp + 0x158], rsi
mov r13d, r15d
mov dword [rbp + 0x150], r15d
mov eax, ebx
test ecx, ecx
je 0x14003e901
lea rdx, [rbp + 0x368]
cmp qword [rdx], rsi
je 0x14003e901
inc eax
add rdx, 8
cmp eax, ecx
jb 0x14003e8f2
cmp eax, ecx
jne 0x14003e918
cmp ecx, 0x40
jae 0x14003e918
mov qword [rbp + rax*8 + 0x368], rsi
inc dword [rbp + 0x360]
cmp rsi, r11
cmova r11, rsi
lea r12, [rsp + 0x30]
test r10, r10
cmovs r12, rbx
jle 0x14003e95a
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub r8d, edx
imul r8d, r8d, 0x3e8
mov dword [rsp + 0x34], r8d
jmp 0x14003e961
jne 0x14003e961
mov qword [rsp + 0x30], rbx
test r13d, r13d
lea r8, [rbp + 0x150]
lea rdx, [rsp + 0x40]
cmove r8, rbx
test r9d, r9d
lea ecx, [r11 + 1]
lea r9, [rbp + 0x360]
cmove rdx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_select]
mov r13, qword [rsp + 0x690]
mov r12, qword [rsp + 0x698]
test eax, eax
jns 0x14003e9ad
or eax, 0xffffffff
jmp 0x14003ea49
jne 0x14003e9b6
xor eax, eax
jmp 0x14003ea49
cmp r14, 0xffffffffffffffff
je 0x14003e9e5
lea rdx, [rsp + 0x40]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rbp + 0x360]
mov rcx, r14
test eax, eax
cmovne ebx, r15d
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14003e9e5
or ebx, 4
cmp rdi, 0xffffffffffffffff
je 0x14003ea15
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14003e9ff
or ebx, 8
lea rdx, [rbp + 0x360]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14003ea15
or ebx, 4
cmp rsi, 0xffffffffffffffff
je 0x14003ea47
lea rdx, [rbp + 0x150]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14003ea31
or ebx, 2
lea rdx, [rbp + 0x360]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14003ea47
or ebx, 4
mov eax, ebx
mov r15, qword [rsp + 0x688]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1400512b0
add rsp, 0x6a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret