Function at 0x14005ea20
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r14, r9
mov rdi, rcx
mov rsi, qword [rsp + 0x108]
mov r12d, dword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov eax, dword [rsp + 0xf0]
mov r9d, dword [rsp + 0xe8]
mov ebp, dword [rsp + 0xe0]
mov rcx, qword [rcx + 8]
lock inc dword [rcx + 0x30]
cmp qword [rdx], 0xffffffffffffffff
je 0x14005ea96
test r8b, r8b
je 0x14005eae1
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400c1350]
mov qword [rsi], rax
mov qword [rsi + 0x10], 1
jmp 0x14005eab3
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400c1350]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x14005eb63
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, rdx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, r9d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r13, rax
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
je 0x14005ebbd
mov eax, 0
mov ebx, 0
cmp ebp, 0x17
mov ebp, 0
jne 0x14005ec06
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov rcx, r13
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ebp, ebp
xor eax, eax
xor ebx, ebx
jmp 0x14005ec06
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [rbx + 0x90]
mov qword [rsi + 0x20], 0
mov rcx, qword [rbx + 0x98]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, rax
mov qword [rdx], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14005ebe5
test ebp, ebp
setne al
jmp 0x14005ebf8
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, ebp
call qword [rax + 0x30]
movzx ebx, al
or rbx, 2
lea rax, [0x1400c1350]
mov qword [rsp + 0x68], rbp
mov rbp, rax
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x14005ec41
vxorps xmm0, xmm0, xmm0
vmovaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x4f], 0
lea rdx, [rsp + 0x4f]
lea r9, [rsp + 0x50]
mov r8b, 1
call fcn.140052b60
mov qword [r14], r13
cmp r13, 0xffffffffffffffff
je 0x14005ecb2
mov dword [rsp + 0x50], 0
mov rcx, qword [r15]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov rdx, r13
mov r8, qword [rsp + 0x70]
xor r9d, r9d
call sub.MSWSOCK.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [rdi + 8]
test ebx, ebx
jne 0x14005ecd0
cmp eax, 0x3e5
je 0x14005ecd0
mov dword [rsi + 0x30], 1
lea rcx, [0x1400c1350]
mov qword [rsi], rcx
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], 0
jmp 0x14005ece5
mov r14, qword [rdi + 8]
mov dword [rsi + 0x30], 1
test rbx, rbx
je 0x14005ed20
cmp ebx, 1
jne 0x14005ed27
lea rbp, [0x1400c2e20]
jmp 0x14005ed27
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ecx
cmp eax, 1
jne 0x14005ead0
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14005ead0
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
lea rax, [r14 + 0x90]
jmp 0x14005ed72
lea rbp, [0x1400c1350]
mov qword [rsi], rbp
mov rax, qword [rsp + 0x68]
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], 0
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14005ead0
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [r14 + 0x90]
mov qword [rsi + 0x20], 0
mov rcx, qword [r14 + 0x98]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, rax
mov qword [rdx], rsi
mov qword [r14 + 0x98], rsi
mov eax, 1
xchg dword [r14 + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14005ead0