Function at 0x140034520
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x1400b1080]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov r14, r8
mov rdi, rdx
mov r8d, 0x7fffffff
mov r15, rcx
cmp r9, r8
cmovge r9, r8
cmp rcx, 0xffffffffffffffff
jne 0x14003459e
cmp rdx, rcx
jne 0x14003459e
cmp r14, rcx
jne 0x14003459e
test r9d, r9d
je 0x140034595
jns 0x14003458c
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, r15
mov eax, ebx
jmp 0x140034852
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov eax, ebx
jmp 0x140034852
xor ebx, ebx
mov qword [rsp + 0x690], rsi
mov dword [rsp + 0x40], ebx
mov ecx, ebx
mov dword [rbp + 0x150], ebx
mov r10d, ebx
cmp r15, 0xffffffffffffffff
je 0x1400345dd
mov r10d, 1
mov qword [rbp + 0x158], r15
mov ecx, r10d
mov dword [rbp + 0x150], r10d
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], r15
mov r13, 0xffffffffffffffff
mov r11, r15
cmove r11, r13
cmp rdi, r13
je 0x140034670
mov edx, ebx
test r10d, r10d
je 0x140034613
nop dword [rax + rax]
mov eax, edx
cmp qword [rbp + rax*8 + 0x158], rdi
je 0x140034613
inc edx
cmp edx, r10d
jb 0x140034600
cmp edx, r10d
jne 0x140034639
cmp r10d, 0x40
jae 0x140034639
mov eax, edx
mov qword [rbp + rax*8 + 0x158], rdi
mov r10d, dword [rbp + 0x150]
inc r10d
mov dword [rbp + 0x150], r10d
mov edx, ebx
test ecx, ecx
je 0x14003464f
nop
mov eax, edx
cmp qword [rsp + rax*8 + 0x48], rdi
je 0x14003464f
inc edx
cmp edx, ecx
jb 0x140034640
cmp edx, ecx
jne 0x140034669
cmp ecx, 0x40
jae 0x140034669
mov eax, edx
mov qword [rsp + rax*8 + 0x48], rdi
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
cmp rdi, r11
cmova r11, rdi
mov dword [rbp + 0x360], ebx
mov esi, ebx
cmp r14, r13
je 0x1400346c5
mov qword [rbp + 0x368], r14
mov esi, 1
mov dword [rbp + 0x360], esi
mov edx, ebx
test ecx, ecx
je 0x1400346a4
mov eax, edx
cmp qword [rsp + rax*8 + 0x48], r14
je 0x1400346a4
inc edx
cmp edx, ecx
jb 0x140034695
cmp edx, ecx
jne 0x1400346be
cmp ecx, 0x40
jae 0x1400346be
mov eax, edx
mov qword [rsp + rax*8 + 0x48], r14
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
cmp r14, r11
cmova r11, r14
cmp r9, r8
cmovge r9, r8
test r10d, r10d
jne 0x14003470a
test esi, esi
jne 0x14003470a
test ecx, ecx
jne 0x14003470a
test r9d, r9d
jne 0x1400346e5
mov eax, ebx
jmp 0x140034796
jns 0x1400346fa
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, r13d
jmp 0x140034796
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x140034796
mov qword [rsp + 0x688], r12
lea r12, [rsp + 0x30]
test r9, r9
jns 0x140034721
mov r12, rbx
jmp 0x140034759
jle 0x14003474f
mov eax, 0x10624dd3
imul r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r9d, eax
imul eax, r9d, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x140034759
test r9, r9
jne 0x140034759
mov qword [rsp + 0x30], rbx
test ecx, ecx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
cmove r9, rbx
lea r8, [rbp + 0x360]
test esi, esi
lea rdx, [rbp + 0x150]
lea ecx, [r11 + 1]
cmove r8, rbx
test r10d, r10d
cmove rdx, rbx
call qword [sym.imp.WS2_32.dll_select]
mov r12, qword [rsp + 0x688]
test eax, eax
jns 0x1400347a2
mov eax, r13d
jmp 0x14003484a
jne 0x1400347ab
xor eax, eax
jmp 0x14003484a
cmp r15, r13
je 0x1400347dc
lea rdx, [rbp + 0x150]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea rdx, [rsp + 0x40]
mov rcx, r15
setne bl
mov esi, ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400347dc
or esi, 4
mov ebx, esi
cmp rdi, r13
je 0x140034812
lea rdx, [rbp + 0x150]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
mov esi, ebx
lea rdx, [rsp + 0x40]
or esi, 8
mov rcx, rdi
test eax, eax
cmove esi, ebx
mov ebx, esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140034812
or esi, 4
mov ebx, esi
cmp r14, r13
je 0x140034848
lea rdx, [rbp + 0x360]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
mov edi, ebx
lea rdx, [rsp + 0x40]
or edi, 2
mov rcx, r14
test eax, eax
cmove edi, ebx
mov ebx, edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140034848
or edi, 4
mov ebx, edi
mov eax, ebx
mov rsi, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140011830
add rsp, 0x698
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret