Function at 0x14000e620
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.14019aba0
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 [0x14027d2cc], eax
lea rcx, [r12*8]
mov dword [rsp + 0x60], r12d
mov esi, r12d
call fcn.140198594
mov r13, rax
test rax, rax
jne 0x14000e697
lea rdx, str.ProcessLoop_failure_allocating_client_sockets.
lea ecx, [rax + 2]
call qword [r15 + 0x28]
or eax, 0xffffffff
jmp 0x14000eb5d
mov qword [rsp + 0x2140], rbx
mov qword [rsp + 0x20f8], rdi
mov qword [rsp + 0x20f0], r14
test r12d, r12d
je 0x14000e6c1
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 [0x14027d2d0], 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 0x14000e755
mov ecx, ebx
nop
mov eax, ecx
cmp qword [rbp + rax*8 - 0x78], rdi
je 0x14000e73f
inc ecx
cmp ecx, edx
jb 0x14000e730
cmp ecx, edx
jne 0x14000e74f
mov edx, 2
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x80], edx
mov r9d, 1
test r12d, r12d
je 0x14000e7a6
mov r8, r13
mov r10, rsi
mov rdi, qword [r8]
cmp rdi, 0xffffffffffffffff
je 0x14000e79d
mov eax, ebx
test edx, edx
je 0x14000e77f
nop
mov ecx, eax
cmp qword [rbp + rcx*8 - 0x78], rdi
je 0x14000e77f
inc eax
cmp eax, edx
jb 0x14000e770
cmp eax, edx
jne 0x14000e79a
cmp edx, 0x200
jae 0x14000e79a
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 0x14000e760
test r9d, r9d
jle 0x14000e7c3
mov ecx, dword [0x14027d1b8]
lea eax, [r9 - 1]
cmp eax, ecx
cmova ecx, eax
test r9d, r9d
mov dword [0x14027d1b8], ecx
je 0x14000ead6
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 0x14000e941
mov qword [rsp + 0x48], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x14000eacd
mov rax, qword [r15]
cmp rax, 0xffffffffffffffff
je 0x14000e857
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 0x14000e857
mov qword [r15], 0xffffffffffffffff
mov rax, qword [r15 + 8]
mov dword [rbp + 0xf90], ebx
cmp rax, 0xffffffffffffffff
je 0x14000e8a7
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 0x14000e8a7
mov qword [r15 + 8], 0xffffffffffffffff
test r12d, r12d
je 0x14000e910
mov rdi, r13
mov rbx, rsi
xor r12d, r12d
mov rax, qword [rdi]
cmp rax, 0xffffffffffffffff
je 0x14000e902
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 0x14000e902
mov qword [rdi], 0xffffffffffffffff
add rdi, 8
dec rbx
jne 0x14000e8b5
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.140197aa8
lea rdx, [rbp + 0x1fa0]
mov ecx, 2
call qword [r15 + 0x28]
jmp 0x14000eacd
test eax, eax
je 0x14000eacd
mov rcx, qword [r15]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000ea2b
mov esi, dword [r15 + 0x18]
mov r14d, ebx
mov edi, ebx
add esi, esi
je 0x14000e9dd
mov rax, r13
nop
cmp qword [rax], 0xffffffffffffffff
je 0x14000e982
inc edi
add rax, 8
cmp edi, esi
jb 0x14000e970
jmp 0x14000e9dd
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 0x14000e9bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2728
je 0x14000e982
sub eax, 0xb
je 0x14000e982
cmp eax, 0x14
je 0x14000e982
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
jmp 0x14000e9db
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 0x14000e9e9
mov r14d, 0x1c
jmp 0x14000e9fd
cmp r14d, 0x18
jne 0x14000e9f8
lea rdx, str.Too_many_files_are_currently_opened_in_order_to_process_this_request.
jmp 0x14000ea1a
test r14d, r14d
je 0x14000ea23
lea rdx, str.ProcessLoop_DoAccept_returned__d
lea rcx, [rbp + 0x1fa0]
mov r8d, r14d
call fcn.140197aa8
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 0x14000eaa9
mov rsi, qword [rsp + 0x70]
mov rbx, r13
nop word [rax + rax]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000ea94
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000ea94
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.14000eb80
cmp eax, 0xfffffffe
mov eax, 0
cmove r14d, eax
inc edi
add rbx, 8
cmp edi, r12d
jb 0x14000ea40
mov dword [rsp + 0x40], r14d
mov esi, r12d
xor ebx, ebx
mov rcx, qword [r15 + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000eacd
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000eacd
mov rcx, r15
call fcn.14000edc0
test eax, eax
jne 0x14000ead6
test r14d, r14d
jne 0x14000e710
mov r14, qword [rsp + 0x20f0]
test r12d, r12d
je 0x14000eb43
mov rbx, r13
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x14000eb3a
test rdi, rdi
je 0x14000eb33
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 0x14000eb10
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
add rbx, 8
dec rsi
jne 0x14000eae6
mov rcx, r13
call fcn.140198554
mov rdi, qword [rsp + 0x20f8]
mov rbx, qword [rsp + 0x2140]
xor eax, eax
mov rcx, qword [rbp + 0x1fe0]
xor rcx, rsp
call fcn.14019ac00
add rsp, 0x2100
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret