Function at 0x140034730
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x1400f3680]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x120]
mov r14, rcx
mov rcx, qword [r8]
xor esi, esi
mov rbp, qword [rsp + 0x130]
mov ebx, r9d
mov rdi, qword [rsp + 0x138]
mov qword [r11 - 0x38], r12
mov r12, r8
mov qword [rsp + 0x60], rax
lea rax, [0x1400e96c0]
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x68], rdx
cmp rcx, 0xffffffffffffffff
je 0x1400347c2
lea r9, [r11 - 0x78]
mov qword [r11 - 0x78], rsi
mov r8b, 1
mov qword [r11 - 0x70], rax
lea rdx, [rsp + 0x40]
mov byte [rsp + 0x40], sil
call fcn.140023e20
mov qword [r12], 0xffffffffffffffff
mov rax, qword [r14 + 8]
lock inc dword [rax + 0x30]
test rbp, rbp
je 0x1400347f0
mov eax, esi
lock xadd dword [rbp], eax
cmp eax, 1
jne 0x1400347f0
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, 0x3e3
mov rdx, rdi
call fcn.140030380
mov r8d, dword [rsp + 0x118]
mov r15d, 1
mov edx, dword [rsp + 0x110]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov ecx, ebx
mov dword [rsp + 0x20], esi
mov qword [rsp + 0xa8], r13
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140034872
cmp dword [rsp + 0x90], 0x17
lea rax, [0x1400e96c0]
mov qword [rsp + 0x50], rax
mov r13d, esi
jne 0x1400348ad
lea r9, [rsp + 0x90]
mov dword [rsp + 0x90], esi
lea edx, [r15 + 0x28]
mov dword [rsp + 0x20], 4
lea r8d, [r15 + 0x1a]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x50]
jmp 0x1400348ad
call fcn.1400298b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x58], rbx
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmm0, xmm1
movd r13d, xmm1
psrldq xmm0, 8
movq rax, xmm0
mov qword [rsp + 0x50], rax
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x1400348ee
lea rax, [0x1400e96c0]
mov qword [rsp + 0x80], rsi
lea r9, [rsp + 0x80]
mov qword [rsp + 0x88], rax
movzx r8d, r15b
mov byte [rsp + 0x41], sil
lea rdx, [rsp + 0x41]
call fcn.140023e20
mov rax, qword [rsp + 0x50]
mov qword [r12], rbx
mov r12, qword [rsp + 0xb0]
cmp rbx, 0xffffffffffffffff
jne 0x14003496e
mov rbx, qword [r14 + 8]
xor edx, edx
mov dword [rdi + 0x30], r15d
mov r9, rdi
mov qword [rdi], rax
mov dword [rdi + 0x10], r13d
mov dword [rdi + 0x14], esi
lea r8d, [rdx + 2]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1400349fc
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rdi + 0x20], rsi
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x14003494d
mov qword [rax + 0x20], rdi
jmp 0x140034954
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0x98], rdi
lea rcx, [rbx + 0x60]
xchg dword [rbx + 0x58], r15d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400349fc
mov r15, qword [rsp + 0x68]
lea rax, [rsp + 0x94]
mov r8, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x94], esi
call sub.MSWSOCK.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400349d5
cmp eax, 0x3e5
je 0x1400349d5
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call fcn.140030380
jmp 0x1400349fc
test rbp, rbp
je 0x1400349f0
lock xadd dword [rbp], esi
cmp esi, 1
jne 0x1400349f0
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [r14 + 8]
mov rdx, rdi
call fcn.140030650
mov r13, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140097850
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret