Function at 0x14000b220
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r14, qword [rcx + 0x390]
xor r15d, r15d
mov dword [rax + 0x18], 1
mov rsi, rcx
mov dword [rax + 8], r15d
cmp dword [r14], 0xf00a0001
jne 0x14000b5e2
lea rbx, [rcx + 0x88]
test rbx, rbx
jne 0x14000b2c1
lea edx, [rbx - 1]
mov dword [0x14004550c], r15d
lea rbp, str.init_server_client
mov dword [0x140045510], 1
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000workcomplat_srcmod_net_netinterface.c
movzx eax, word [rsi + 0x32]
lea r8, [0x140045500]
mov dword [rsp + 0x38], eax
mov ecx, 3
lea rax, str.can_not_create_server_objsock__d__n
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x88e
mov qword [rsp + 0x20], rbp
call sym.Launcher.exe_elog_fmt
mov eax, 0xffffffff
jmp 0x14000b6fc
xorps xmm0, xmm0
mov edx, 1
movups xmmword [rcx + 0x90], xmm0
mov eax, r15d
movups xmmword [rcx + 0xa0], xmm0
lea r8d, [rdx + 5]
movups xmmword [rcx + 0xb0], xmm0
movups xmmword [rcx + 0xc0], xmm0
movups xmmword [rcx + 0xd0], xmm0
mov qword [rbx], 0xffffffffffffffff
lea ecx, [rdx + 1]
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r15d
mov dword [rbx + 0x10], r15d
xchg dword [rbx + 0x14], eax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14000b33f
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x14000b33f
mov rax, qword [rbx]
mov ecx, r15d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000b33f
mov edx, r15d
jmp 0x14000b349
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
neg edx
mov eax, dword [rbx + 8]
mov rcx, rbx
cmp eax, 1
je 0x14000b266
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x14000b266
mov rax, qword [rbx]
mov ecx, r15d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000b266
xor eax, eax
lea rbp, str.init_server_client
mov dword [rsp + 0x80], eax
mov edi, 4
mov eax, dword [rbx + 8]
mov dword [rsp + 0x88], edi
cmp eax, ecx
je 0x14000b4b6
mov eax, dword [rbx + 0xc]
cmp eax, ecx
je 0x14000b4b6
mov rax, qword [rbx]
mov ecx, r15d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000b4b6
lock inc dword [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rsp + 0x90]
mov r8d, edi
mov dword [rsp + 0x20], edi
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000b3f9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
neg edx
jmp 0x14000b3fc
mov edx, r15d
lock dec dword [rbx + 0x14]
test edx, edx
jne 0x14000b4bb
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14000b4ab
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x14000b4ab
mov rax, qword [rbx]
mov ecx, r15d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000b4ab
cmp dword [rsp + 0x88], r15d
je 0x14000b4ab
lock inc dword [rbx + 0x14]
mov rcx, qword [rbx]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8d, edi
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x14000b479
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
neg edx
jmp 0x14000b47c
mov edx, r15d
lock dec dword [rbx + 0x14]
test edx, edx
jne 0x14000b4bb
cmp dword [rsp + 0x88], edi
jne 0x14000b4b0
nop dword [rax]
movzx eax, byte [rsp + rdi + 0x8f]
dec rdi
cmp byte [rsp + rdi + 0x80], al
jne 0x14000b4b6
test rdi, rdi
jne 0x14000b490
jmp 0x14000b516
mov edx, 0xffffffff
test edx, edx
je 0x14000b516
jmp 0x14000b4bb
mov edx, 0xffffffff
mov eax, dword [rsp + 0x80]
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000workcomplat_srcmod_net_netinterface.c
mov dword [rsp + 0x40], eax
lea r8, [0x1400457d0]
mov eax, dword [rsp + 0x90]
mov ecx, 2
mov dword [rsp + 0x38], eax
lea rax, str.serversock_set_SO_REUSEADDR_incorrectly__expect__d__but__d_n
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x896
mov qword [rsp + 0x20], rbp
mov dword [0x1400457dc], 1
mov dword [0x1400457e0], 1
call sym.Launcher.exe_elog_fmt
movzx r8d, word [rsi + 0x32]
lea rdi, [rsi + 0x10]
mov rdx, rdi
mov rcx, rbx
call sym.Launcher.exe_sock_bind
test eax, eax
je 0x14000b591
mov dword [0x14004631c], r15d
lea r8, [0x140046310]
mov dword [0x140046320], 1
mov edx, eax
movzx ecx, word [rsi + 0x32]
mov dword [rsp + 0x40], ecx
lea rcx, str.bind_local_server__s:_u_n
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x89c
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000workcomplat_srcmod_net_netinterface.c
mov qword [rsp + 0x20], rbp
mov ecx, 3
call sym.Launcher.exe_elog_fmt
mov rcx, rbx
call sym.Launcher.exe_sock_free
mov eax, 0xffffffff
jmp 0x14000b6fc
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14000b65e
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x14000b65e
mov rax, qword [rbx]
mov ecx, r15d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000b65e
lea edx, [rcx + 4]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14000b5e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
neg edx
jne 0x14000b663
xor r9d, r9d
mov qword [rsi + 0x380], rsi
xor edx, edx
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsi + 0x368], rax
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
movzx r9d, word [rsi + 0x32]
lea rcx, [rsi + 0x230]
mov qword [rsi + 0x360], rax
lea rdx, [0x140008580]
cmp dword [r14 + 0xb0], 1
jne 0x14000b6a1
mov r8d, dword [0x140043f58]
mov dword [rsp + 0x20], r9d
lea r9, str.tcp_recv__u
lea eax, [r8 + 1]
mov dword [0x140043f58], eax
call sym.Launcher.exe_com_thread_create_cpu
jmp 0x14000b6ad
mov edx, 0xffffffff
mov dword [0x140045dcc], r15d
lea r8, [0x140045dc0]
mov dword [0x140045dd0], 1
movzx eax, word [rsi + 0x32]
mov dword [rsp + 0x40], eax
lea rax, str.listen_local_server__s:_u_n
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8a4
jmp 0x14000b569
lea r8, str.tcp_recv__u
call sym.Launcher.exe_com_thread_create
cmp dword [r14 + 0xac], 1
lea rcx, [rsi + 0x298]
movzx r9d, word [rsi + 0x32]
lea rdx, [0x140009170]
jne 0x14000b6ee
mov r8d, dword [0x140043f58]
mov dword [rsp + 0x20], r9d
lea r9, str.tcp_send__u
lea eax, [r8 + 1]
mov dword [0x140043f58], eax
call sym.Launcher.exe_com_thread_create_cpu
jmp 0x14000b6fa
lea r8, str.tcp_send__u
call sym.Launcher.exe_com_thread_create
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret