Function at 0x1400c3690
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402e6010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, r8
movzx r14d, dx
mov rbx, rcx
mov qword [rbp - 0x40], rcx
mov dword [rcx + 8], 1
lea rax, vtable.CNetworkSocket_TCP.0
mov qword [rcx], rax
mov edx, 1
mov edi, 2
lea r8d, [rdx + 5]
mov ecx, edi
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [rbx + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400c378d
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xor edi, edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], reloc.WSOCK32.dll_ntohs
lea ecx, [rax + 0x31]
call fcn.140241c38
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], 0x20
mov qword [rbp - 0x20], 0x2f
movups xmm0, xmmword [str.Error_:_Failed_to_create_socket_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140282ae8]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], dil
lea rcx, [rbp - 0x38]
call qword [sym.imp.Hedgine_x64.dll_void___cdecl_hedgine::print_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400c3785
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c3780
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c3780
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140241c74
mov byte [rsi], 1
jmp 0x1400c3993
mov dword [rbp - 0x50], 1
mov dword [rbp - 0x4c], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x50]
mov edx, 0xffff
mov r8d, 0xffffff7f
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x4c]
mov edx, 0xffff
mov r8d, 4
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov word [rbp - 0x18], di
xor edi, edi
mov dword [rbp - 0x14], edi
movzx ecx, r14w
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rbp - 0x16], ax
lea r8d, [rdi + 0x10]
lea rdx, [rbp - 0x18]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400c38bf
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], reloc.WSOCK32.dll_ntohs
lea ecx, [rdi + 0x20]
call fcn.140241c38
mov rcx, rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], 0x1e
mov qword [rbp - 0x20], 0x1f
movups xmm0, xmmword [str.Error_:_Failed_to_bind_socket_]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140282b10]
movsd qword [rax + 0x10], xmm1
mov eax, dword [0x140282b18]
mov dword [rcx + 0x18], eax
movzx eax, word [0x140282b1c]
mov word [rcx + 0x1c], ax
mov byte [rcx + 0x1e], dil
lea rcx, [rbp - 0x38]
call qword [sym.imp.Hedgine_x64.dll_void___cdecl_hedgine::print_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400c3981
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c397c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c397c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp - 0x48], 1
lea r8, [rbp - 0x48]
mov edx, 0x8004667e
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
je 0x1400c3997
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], reloc.WSOCK32.dll_ntohs
mov ecx, 0x30
call fcn.140241c38
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], 0x28
mov qword [rbp - 0x20], 0x2f
movups xmm0, xmmword [str.Error_:_Failed_to_set_non_blocking_mode_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140282aa0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140282ab0]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], dil
lea rcx, [rbp - 0x38]
call qword [sym.imp.Hedgine_x64.dll_void___cdecl_hedgine::print_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400c3981
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c397c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c397c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140241c74
mov byte [rsi], 1
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c3997
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx + 0x10], rdi
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140241980
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret