Function at 0x14000e6b0
Capabilities:
Check mutex on windows
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x2000]
mov eax, 0x2100
call fcn.14019a9c0
sub rsp, rax
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rbp + 0x1fe0], rax
mov eax, dword [rcx + 0x18]
mov r15, rcx
mov qword [rsp + 0x70], rdx
lea r12d, [rax + rax]
mov dword [0x14027d30c], eax
lea rcx, [r12*8]
mov dword [rsp + 0x60], r12d
mov esi, r12d
call fcn.140198304
mov r13, rax
test rax, rax
jne 0x14000e727
lea rdx, str.ProcessLoop_failure_allocating_client_sockets.
lea ecx, [rax + 2]
call qword [r15 + 0x28]
or eax, 0xffffffff
jmp 0x14000ebed
mov qword [rsp + 0x2140], rbx
mov qword [rsp + 0x20f8], rdi
mov qword [rsp + 0x20f0], r14
test r12d, r12d
je 0x14000e751
mov rdi, rax
mov rcx, rsi
or rax, 0xffffffffffffffff
rep stosq qword [rdi], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14d, 1
xor ebx, ebx
mov qword [0x14027d310], rax
mov dword [rsp + 0x40], r14d
nop word [rax + rax]
mov rdi, qword [r15 + 8]
mov rax, qword [r15]
mov edx, 1
mov r9d, ebx
mov dword [rbp - 0x80], edx
mov qword [rbp - 0x78], rax
cmp rdi, 0xffffffffffffffff
je 0x14000e7e5
mov ecx, ebx
nop
mov eax, ecx
cmp qword [rbp + rax*8 - 0x78], rdi
je 0x14000e7cf
inc ecx
cmp ecx, edx
jb 0x14000e7c0
cmp ecx, edx
jne 0x14000e7df
mov edx, 2
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x80], edx
mov r9d, 1
test r12d, r12d
je 0x14000e836
mov r8, r13
mov r10, rsi
mov rdi, qword [r8]
cmp rdi, 0xffffffffffffffff
je 0x14000e82d
mov eax, ebx
test edx, edx
je 0x14000e80f
nop
mov ecx, eax
cmp qword [rbp + rcx*8 - 0x78], rdi
je 0x14000e80f
inc eax
cmp eax, edx
jb 0x14000e800
cmp eax, edx
jne 0x14000e82a
cmp edx, 0x200
jae 0x14000e82a
mov ecx, eax
mov qword [rbp + rcx*8 - 0x78], rdi
mov edx, dword [rbp - 0x80]
inc edx
mov dword [rbp - 0x80], edx
inc r9d
add r8, 8
dec r10
jne 0x14000e7f0
test r9d, r9d
jle 0x14000e853
mov ecx, dword [0x14027d1f8]
lea eax, [r9 - 1]
cmp eax, ecx
cmova ecx, eax
test r9d, r9d
mov dword [0x14027d1f8], ecx
je 0x14000eb66
lea rdx, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x200
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14000e9d1
mov qword [rsp + 0x48], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x14000eb5d
mov rax, qword [r15]
cmp rax, 0xffffffffffffffff
je 0x14000e8e7
mov qword [rbp + 0xf98], rax
lea rax, [rsp + 0x48]
lea rdx, [rbp + 0xf90]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x200
mov qword [rsp + 0x20], rax
mov dword [rbp + 0xf90], 1
mov qword [rsp + 0x48], 0
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14000e8e7
mov qword [r15], 0xffffffffffffffff
mov rax, qword [r15 + 8]
mov dword [rbp + 0xf90], ebx
cmp rax, 0xffffffffffffffff
je 0x14000e937
mov qword [rbp + 0xf98], rax
lea rax, [rsp + 0x48]
lea rdx, [rbp + 0xf90]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x200
mov qword [rsp + 0x20], rax
mov dword [rbp + 0xf90], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14000e937
mov qword [r15 + 8], 0xffffffffffffffff
test r12d, r12d
je 0x14000e9a0
mov rdi, r13
mov rbx, rsi
xor r12d, r12d
mov rax, qword [rdi]
cmp rax, 0xffffffffffffffff
je 0x14000e992
mov qword [rbp + 0xf98], rax
lea rax, [rsp + 0x48]
lea rdx, [rbp + 0xf90]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x200
mov qword [rsp + 0x20], rax
mov dword [rbp + 0xf90], 1
mov qword [rsp + 0x48], r12
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14000e992
mov qword [rdi], 0xffffffffffffffff
add rdi, 8
dec rbx
jne 0x14000e945
mov r12d, dword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ProcessLoop_select_failed_with__d
lea rcx, [rbp + 0x1fa0]
mov r8d, eax
call fcn.140197bf8
lea rdx, [rbp + 0x1fa0]
mov ecx, 2
call qword [r15 + 0x28]
jmp 0x14000eb5d
test eax, eax
je 0x14000eb5d
mov rcx, qword [r15]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000eabb
mov esi, dword [r15 + 0x18]
mov r14d, ebx
mov edi, ebx
add esi, esi
je 0x14000ea6d
mov rax, r13
nop
cmp qword [rax], 0xffffffffffffffff
je 0x14000ea12
inc edi
add rax, 8
cmp edi, esi
jb 0x14000ea00
jmp 0x14000ea6d
mov rcx, qword [r15]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ea4b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2728
je 0x14000ea12
sub eax, 0xb
je 0x14000ea12
cmp eax, 0x14
je 0x14000ea12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
jmp 0x14000ea6b
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
mov eax, edi
mov qword [r13 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
cmp edi, esi
jne 0x14000ea79
mov r14d, 0x1c
jmp 0x14000ea8d
cmp r14d, 0x18
jne 0x14000ea88
lea rdx, str.Too_many_files_are_currently_opened_in_order_to_process_this_request.
jmp 0x14000eaaa
test r14d, r14d
je 0x14000eab3
lea rdx, str.ProcessLoop_DoAccept_returned__d
lea rcx, [rbp + 0x1fa0]
mov r8d, r14d
call fcn.140197bf8
lea rdx, [rbp + 0x1fa0]
mov ecx, 2
call qword [r15 + 0x28]
mov r14d, dword [rsp + 0x40]
mov esi, r12d
mov edi, ebx
test r12d, r12d
je 0x14000eb39
mov rsi, qword [rsp + 0x70]
mov rbx, r13
nop word [rax + rax]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000eb24
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000eb24
mov eax, edi
mov qword [rsp + 0x30], rsi
mov rdx, r13
lea r9, [rax*8]
lea rax, [rsp + 0x58]
mov rcx, r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
add r9, r13
mov qword [rsp + 0x20], rax
call fcn.14000ec10
cmp eax, 0xfffffffe
mov eax, 0
cmove r14d, eax
inc edi
add rbx, 8
cmp edi, r12d
jb 0x14000ead0
mov dword [rsp + 0x40], r14d
mov esi, r12d
xor ebx, ebx
mov rcx, qword [r15 + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000eb5d
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000eb5d
mov rcx, r15
call fcn.14000ee50
test eax, eax
jne 0x14000eb66
test r14d, r14d
jne 0x14000e7a0
mov r14, qword [rsp + 0x20f0]
test r12d, r12d
je 0x14000ebd3
mov rbx, r13
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x14000ebca
test rdi, rdi
je 0x14000ebc3
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
je 0x14000eba0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
add rbx, 8
dec rsi
jne 0x14000eb76
mov rcx, r13
call fcn.1401982c4
mov rdi, qword [rsp + 0x20f8]
mov rbx, qword [rsp + 0x2140]
xor eax, eax
mov rcx, qword [rbp + 0x1fe0]
xor rcx, rsp
call fcn.14019aa20
add rsp, 0x2100
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret