Function at 0x1400389c0
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rdi
mov esi, r9d
mov r15, r8
mov r14, rdx
mov r13, rcx
mov r12d, edi
cmp rcx, 0xffffffffffffffff
jne 0x140038a24
cmp rdx, rcx
jne 0x140038a24
cmp r8, rcx
jne 0x140038a24
mov ecx, r9d
call fcn.140038d30
jmp 0x140038d05
mov qword [rsp + 0x698], rbx
test esi, esi
jle 0x140038a3d
mov r12d, esi
call fcn.140026ce0
mov rbx, rax
jmp 0x140038a42
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x50], edi
mov r9d, edi
mov eax, 1
cmp r13, 0xffffffffffffffff
je 0x140038a67
mov qword [rsp + 0x58], r13
mov r9d, eax
mov dword [rsp + 0x50], eax
mov qword [rbp + 0x378], r13
mov rcx, 0xffffffffffffffff
mov r10, r13
cmove r10, rcx
mov edx, r9d
mov dword [rbp + 0x370], edx
mov r8d, r9d
cmp r14, rcx
je 0x140038b1e
mov ecx, edi
test r9d, r9d
je 0x140038aa1
mov eax, ecx
cmp qword [rsp + rax*8 + 0x58], r14
je 0x140038aa1
inc ecx
cmp ecx, r9d
jb 0x140038a91
cmp ecx, r9d
jne 0x140038ac0
cmp r9d, 0x40
jae 0x140038ac0
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], r14
mov r9d, dword [rsp + 0x50]
inc r9d
mov dword [rsp + 0x50], r9d
mov ecx, edi
test r8d, r8d
je 0x140038ae3
nop word [rax + rax]
mov eax, ecx
cmp qword [rbp + rax*8 + 0x378], r14
je 0x140038ae3
inc ecx
cmp ecx, r8d
jb 0x140038ad0
mov dword [rbp + 0x370], edx
cmp ecx, r8d
jne 0x140038b12
mov dword [rbp + 0x370], edx
cmp r8d, 0x40
jae 0x140038b12
mov eax, ecx
mov qword [rbp + rax*8 + 0x378], r14
mov edx, dword [rbp + 0x370]
inc edx
mov dword [rbp + 0x370], edx
cmp r14, r10
mov eax, 1
cmova r10, r14
mov dword [rbp + 0x160], edi
cmp r15, 0xffffffffffffffff
je 0x140038b72
mov qword [rbp + 0x168], r15
mov ecx, edi
mov dword [rbp + 0x160], eax
test edx, edx
je 0x140038b52
nop dword [rax]
mov eax, ecx
cmp qword [rbp + rax*8 + 0x378], r15
je 0x140038b52
inc ecx
cmp ecx, edx
jb 0x140038b40
cmp ecx, edx
jne 0x140038b6b
cmp edx, 0x40
jae 0x140038b6b
mov eax, ecx
mov qword [rbp + rax*8 + 0x378], r15
inc dword [rbp + 0x370]
cmp r15, r10
cmova r10, r15
test esi, esi
lea r13, [rsp + 0x30]
cmovs r13, rdi
inc r10d
mov dword [rsp + 0x38], r10d
test esi, esi
jle 0x140038bb6
mov eax, 0x10624dd3
mov ecx, r12d
imul r12d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x140038bbd
jne 0x140038bbd
mov qword [rsp + 0x30], rdi
cmp dword [rbp + 0x160], edi
lea r8, [rbp + 0x160]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r13
cmove r8, rdi
mov ecx, r10d
test r9d, r9d
lea r9, [rbp + 0x370]
cmove rdx, rdi
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x140038c4a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140038c0d
cmp dword [0x1401d1b28], edi
jne 0x140038c4e
cmp eax, 0x2714
jne 0x140038c4e
test esi, esi
jg 0x140038c20
mov r9d, dword [rsp + 0x50]
mov r10d, dword [rsp + 0x38]
jmp 0x140038b85
call fcn.140026ce0
mov rcx, rax
mov rdx, rbx
call fcn.140026c50
mov r12d, esi
sub r12d, eax
test r12d, r12d
jle 0x140038c5a
mov r9d, dword [rsp + 0x50]
mov r10d, dword [rsp + 0x38]
jmp 0x140038b85
test eax, eax
jns 0x140038c58
mov eax, 0xffffffff
jmp 0x140038cfd
jne 0x140038c61
xor eax, eax
jmp 0x140038cfd
mov rbx, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x140038c99
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea rdx, [rbp + 0x370]
mov eax, 1
mov rcx, rbx
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140038c99
or edi, 4
cmp r14, 0xffffffffffffffff
je 0x140038cc9
lea rdx, [rsp + 0x50]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140038cb3
or edi, 8
lea rdx, [rbp + 0x370]
mov rcx, r14
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140038cc9
or edi, 4
cmp r15, 0xffffffffffffffff
je 0x140038cfb
lea rdx, [rbp + 0x160]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140038ce5
or edi, 2
lea rdx, [rbp + 0x370]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140038cfb
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x698]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret