Function at 0x14000514c
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r14d, r9d
mov r12, r8
mov r9, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call fcn.14002d3f2
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
movzx ebx, word [r12]
cmp bx, 2
mov eax, 2
mov r15d, 0x17
cmove r15d, eax
cmp qword [rdi + 8], 0xffffffffffffffff
mov qword [rbp - 0x28], rdi
je 0x140005215
mov rax, qword [0x140098640]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x1400051ef
mov rax, qword [0x140098638]
lea rcx, [0x140098638]
mov edx, 1
call qword [rax + 0x30]
mov esi, 2
test al, al
je 0x1400051f4
mov esi, 3
mov qword [rbp - 0x20], 1
lea rax, [0x140098638]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov ebx, 1
jmp 0x140005368
mov rsi, qword [rdi]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r15d
mov edx, 1
mov r8d, 6
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400052b5
mov r13, rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
cmp bx, 2
je 0x140005284
lea r9, [rbp - 0x48]
mov dword [r9], 0
mov dword [rsp + 0x20], 4
mov rcx, r13
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rbp - 0x30], r13
mov rax, qword [rsi + 0x30]
mov rdx, qword [rax + 0x28]
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400052ec
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
jmp 0x14000532d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rbx, [rbp - 0x48]
mov rcx, rbx
mov edx, eax
call fcn.14000689a
mov rsi, qword [rbx + 0x10]
mov qword [rbp - 0x10], rsi
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x30], 0xffffffffffffffff
mov ebx, dword [rbp - 0x20]
jmp 0x14000535f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140098748]
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov edx, eax
call fcn.14000689a
mov rsi, qword [rdi + 0x10]
mov qword [rbp - 0x10], rsi
movups xmm0, xmmword [rdi]
mov rdi, qword [rbp - 0x28]
movaps xmmword [rbp - 0x20], xmm0
test sil, 1
je 0x14000532d
mov ebx, dword [rbp - 0x20]
cmp rsi, 1
jne 0x14000535f
test ebx, ebx
jne 0x14000535f
mov qword [rbp - 0x30], 0xffffffffffffffff
mov qword [rdi + 8], r13
mov byte [rdi + select], 0x10
lea rcx, [rdi + 0x18]
xor ebx, ebx
xor edx, edx
call fcn.14002ec24
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
xor esi, esi
mov rdi, qword [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002ecac
test sil, 1
je 0x140005378
cmp rsi, 1
jne 0x140005396
test ebx, ebx
jne 0x140005396
mov dword [rdi + 0x40], r15d
mov byte [rdi + 0x44], 0
xorps xmm0, xmm0
movups xmmword [rdi + 0x50], xmm0
mov dword [rdi + 0x60], 0
mov qword [rdi + 0x48], 2
lea rcx, [rbp - 0x20]
mov rax, qword [rcx + 0x10]
mov edx, eax
and edx, 1
lea rbx, str.win_iocp_socket_service.hpp
or rbx, rdx
cmp rax, 2
cmovb rbx, rax
mov qword [rcx + 0x10], rbx
lea r15, str.basic_socket_acceptor.hpp
lea r8, [rbp - 0x48]
mov qword [r8], r15
lea rbx, str.basic_socket_acceptor
mov qword [r8 + 8], rbx
movabs rax, 0x500000126
mov qword [r8 + 0x10], rax
lea rdx, str.open
call fcn.140007e17
test r14b, r14b
je 0x1400054fc
mov dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000546a
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400054aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov edx, eax
call fcn.14000689a
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x20], xmm0
cmp rax, 1
jbe 0x1400054cf
and eax, 1
lea rcx, str.win_iocp_socket_service.hpp
or rax, rcx
jmp 0x1400054cf
mov rax, qword [0x140098750]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14000549d
mov rax, qword [0x140098748]
lea rcx, [0x140098748]
mov edx, 0x2719
call qword [rax + 0x30]
test al, al
je 0x1400054b5
lea rax, str.win_iocp_socket_service.hpp
or rax, 1
jmp 0x1400054bc
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
xor eax, eax
jmp 0x1400054cf
lea rax, str.win_iocp_socket_service.hpp
mov qword [rbp - 0x20], 0x2719
lea rcx, [0x140098748]
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x20]
mov qword [rcx + 0x10], rax
lea r8, [rbp - 0x48]
mov qword [r8], r15
mov qword [r8 + 8], rbx
movabs rax, 0x70000012b
mov qword [r8 + 0x10], rax
lea rdx, str.set_option
call fcn.140007e17
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000556b
cmp word [r12], 2
mov eax, select
mov r8d, 0x1c
cmove r8d, eax
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1400055ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rsi, [rbp - 0x48]
mov rcx, rsi
mov edx, eax
call fcn.14000689a
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rsi]
movaps xmmword [rbp - 0x20], xmm0
cmp rax, 1
jbe 0x1400055d0
and eax, 1
lea rcx, str.win_iocp_socket_service.hpp
or rax, rcx
jmp 0x1400055d0
mov rax, qword [0x140098750]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14000559e
mov rax, qword [0x140098748]
lea rcx, [0x140098748]
mov edx, 0x2719
call qword [rax + 0x30]
test al, al
je 0x1400055b6
lea rax, str.win_iocp_socket_service.hpp
or rax, 1
jmp 0x1400055bd
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
xor eax, eax
jmp 0x1400055d0
lea rax, str.win_iocp_socket_service.hpp
mov qword [rbp - 0x20], 0x2719
lea rcx, [0x140098748]
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x20]
mov qword [rcx + 0x10], rax
lea r8, [rbp - 0x48]
mov qword [r8], r15
mov qword [r8 + 8], rbx
movabs rax, 0x50000012e
mov qword [r8 + 0x10], rax
lea rdx, str.bind
call fcn.140007e17
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000564a
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400056a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rsi, [rbp - 0x48]
mov rcx, rsi
mov edx, eax
call fcn.14000689a
movups xmm0, xmmword [rsi]
movaps xmmword [rbp - 0x20], xmm0
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x10], rax
jmp 0x1400056af
mov rax, qword [0x140098750]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x140005682
mov rax, qword [0x140098748]
lea rcx, [0x140098748]
mov edx, 0x2719
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x140005687
mov ecx, 3
mov qword [rbp - 0x20], 0x2719
lea rax, [0x140098748]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rcx
jmp 0x1400056af
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
lea r8, [rbp - 0x48]
mov qword [r8], r15
mov qword [r8 + 8], rbx
movabs rax, 0x500000131
mov qword [r8 + 0x10], rax
lea rdx, str.listen
lea rcx, [rbp - 0x20]
call fcn.140007e17
mov rax, qword [rbp - 0x28]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret