Function at 0x140014450
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov rdi, rcx
mov ecx, dword [rcx + 0x1050]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
test ecx, ecx
jle 0x140014b20
cmp ecx, dword [rdi + 0xd74]
jg 0x140014acd
mov rax, qword [rdi + 0xd50]
test rax, rax
je 0x140014c0c
movzx edx, word [rax]
cmp dx, 2
je 0x140014502
cmp dx, 0x17
jne 0x140014c0c
cmp word [rax + 8], r13w
jne 0x1400144fe
cmp word [rax + 0xa], r13w
jne 0x1400144fe
cmp word [rax + 0xc], r13w
jne 0x1400144fe
cmp word [rax + 0xe], r13w
jne 0x1400144fe
cmp word [rax + 0x10], r13w
jne 0x1400144fe
cmp word [rax + 0x12], r13w
jne 0x1400144fe
cmp word [rax + 0x14], r13w
jne 0x1400144fe
cmp word [rax + 0x16], r13w
jne 0x1400144fe
xor al, al
jmp 0x140014509
mov al, 1
jmp 0x140014509
cmp dword [rax + 4], r13d
setne al
test al, al
je 0x140014c0c
lea rbx, [0x140000000]
cmp dword [rdi + 0x1b4], r13d
je 0x14001456e
movsxd rax, dword [rdi + 0x68]
mov edx, r13d
cmp qword [rdi + 0x1058], rdx
cmovne edx, ecx
cmp eax, 4
ja 0x140014bc1
mov ecx, dword [rbx + rax*4 + 0x97328]
mov eax, 0x64
add ecx, edx
cmp ecx, eax
cmovg eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [rdi + 0xe30]
cvttsd2si esi, xmm0
cmp esi, 0x989680
jge 0x140014577
test esi, esi
jne 0x14001457c
mov r8, qword [0x1400cb8d0]
jmp 0x1400145da
mov esi, 0x989680
lea rbx, [rdi + 0xe24]
mov rcx, rbx
call fcn.140088390
test eax, eax
jne 0x140014ba8
mov rcx, rbx
call fcn.140052ca0
mov ecx, dword [0x1400cb8d8]
mov r8, qword [0x1400cb8d0]
add ecx, esi
mov edx, ecx
and ecx, 0xfffff
sar edx, 0x14
add edx, r8d
mov dword [rbx + 4], ecx
mov dword [rbx], edx
cmp ecx, 0xf4240
jb 0x1400145d3
lea eax, [rcx - 0xf4240]
mov dword [rbx + 4], eax
lea eax, [rdx + 1]
mov dword [rbx], eax
lea rbx, [0x140000000]
cmp dword [rdi + 0x1d8], r13d
je 0x1400145f3
cmp byte [rdi + 0xe70], r13b
je 0x1400145f3
mov qword [rdi + 0xe78], r8
mov rcx, qword [rdi + 0xd30]
test rcx, rcx
je 0x140014627
cmp byte [rcx + 0x2ac], r13b
je 0x140014627
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rcx + 0x2a8]
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [rdi + 0x1060], r13b
je 0x14001464a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14009ba08]
call fcn.14000e720
cmp dword [0x1400d3ed4], 6
mov qword [rsp + 0x88], r12
jb 0x140014761
mov ecx, 0x45000086
call fcn.14000ec70
test al, al
je 0x140014761
cmp qword [rdi + 0x9a8], r13
je 0x140014683
movzx ebp, byte [rdi + 0xad1]
jmp 0x140014686
mov ebp, r13d
cmp dword [0x1400d3ed4], 9
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 0xd50]
mov r8d, 6
setae r14b
call fcn.140066da0
lea r12, [rdi + 0x1048]
mov r15, rax
cmp qword [rdi + 0x1058], r13
je 0x1400146c5
mov esi, dword [rdi + 0x1050]
test esi, esi
jns 0x1400146c8
mov esi, r13d
mov r8, qword [rdi + 0xd30]
lea rcx, [0x140097384]
mov edx, r13d
movzx r9d, word [r8 + 0x28]
nop
cmp word [rcx - 4], r9w
jne 0x1400146ef
mov eax, dword [r8 + 0x24]
cmp dword [rcx], eax
je 0x140014751
inc edx
add rcx, 0x18
cmp edx, 0xd
jb 0x1400146e0
lea rbx, str._unknown_protocol_
mov rax, qword [rdi + 0xf00]
lea r8, [rsp + 0x30]
neg rax
mov rcx, r12
sbb edx, edx
and edx, 0x200
neg r14b
sbb eax, eax
and eax, 0x500
or edx, eax
or edx, ebp
call fcn.140070270
mov qword [rsp + 0x28], rax
lea rdx, str._s_WRITE___d__to__s:__s
mov r9d, esi
mov qword [rsp + 0x20], r15
mov r8, rbx
mov ecx, 0x45000086
call fcn.14000e820
jmp 0x140014768
mov eax, edx
lea rcx, [rax + rax*2]
mov rbx, qword [rbx + rcx*8 + 0x97378]
jmp 0x140014701
lea r12, [rdi + 0x1048]
mov rax, qword [rdi + 0xd30]
mov r14d, r13d
mov r15, qword [rdi + 0xd50]
mov rbp, rax
cmp qword [rax + 0x268], r13
je 0x1400147a7
cmp dword [rax + 0x24], 1
jne 0x1400147a7
mov rdx, r15
mov rcx, r12
call fcn.140068b60
mov rbp, qword [rdi + 0xd30]
mov r14d, eax
lea r15, [rbp + 0x270]
mov eax, dword [rbp + 0x24]
lea r13, [rdi + 0x1048]
mov r12, qword [rsp + 0x88]
cmp eax, 4
ja 0x140014bf3
cmp eax, 1
jne 0x14001482d
lea rdx, [rbp + 0xc8]
mov eax, dword [rdx]
dec eax
cmp eax, 1
ja 0x14001480c
mov rcx, qword [rbp + 0x30]
xor r9d, r9d
xor r8d, r8d
call fcn.140067da0
mov esi, eax
test eax, eax
jns 0x14001480c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r15
mov rdx, r13
mov rcx, rbp
mov ebx, eax
call fcn.140067a50
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x140014849
mov rdx, r13
mov r8, r15
mov rcx, rbp
call fcn.140067a50
cmp qword [r13 + 0x10], 0
je 0x140014829
mov esi, dword [r13 + 8]
test esi, esi
jns 0x140014849
xor esi, esi
jmp 0x140014849
add eax, 0xfffffffd
cmp eax, 1
ja 0x140014bda
mov r8, r15
mov rdx, r13
mov rcx, rbp
call fcn.1400675d0
mov esi, eax
test r14d, r14d
jle 0x14001488b
cmp esi, r14d
jle 0x14001488b
sub esi, r14d
cmp qword [rdi + 0x1058], 0
je 0x140014908
mov eax, dword [rdi + 0x1050]
test eax, eax
js 0x140014908
cmp eax, r14d
jl 0x140014908
add dword [rdi + 0x104c], r14d
sub eax, r14d
mov dword [rdi + 0x1050], eax
test esi, esi
jle 0x14001491b
mov ecx, dword [rdi + 0xedc]
mov eax, esi
cmp esi, ecx
cmovle eax, ecx
mov dword [rdi + 0xedc], eax
movsxd rax, esi
add qword [rdi + 0xe58], rax
add qword [0x1400d3ea0], rax
cmp qword [0x1400d3e98], 0
je 0x14001491b
lfence
mov rcx, qword [0x1400d3e98]
test byte [rcx + 0x38], 1
jne 0x1400148dd
add qword [rcx + 0xd8], rax
call fcn.140010680
lea r9, [rdi + 0x11c0]
lea rdx, [rdi + 0xe48]
lea r8, [rdi + 0xe58]
call fcn.140010740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi + 0xd30]
mov ebx, eax
jmp 0x14001492e
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi + 0xd30]
mov ebx, eax
jmp 0x14001492e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi + 0xd30]
mov ebx, eax
test esi, esi
js 0x140014941
mov ecx, dword [0x1400d3eb8]
mov edx, dword [0x1400d3ed4]
and ecx, 0xf
cmp ecx, edx
ja 0x140014958
xor r9d, r9d
lea rdx, str.write
mov ecx, esi
call fcn.14000f150
mov edx, dword [0x1400d3ed4]
test esi, esi
jle 0x1400149e0
cmp qword [rdi + 0x1058], 0
je 0x140014978
mov eax, dword [rdi + 0x1050]
test eax, eax
js 0x140014978
cmp esi, eax
je 0x1400149e0
cmp edx, 1
jb 0x1400149e0
mov ecx, 0x1000021
call fcn.14000ec70
test al, al
je 0x1400149e0
lfence
cmp qword [rdi + 0x1058], 0
je 0x1400149ac
cmp dword [rdi + 0x1050], 0
jl 0x1400149ac
lfence
mov ebp, dword [rdi + 0x1050]
jmp 0x1400149ae
xor ebp, ebp
mov rcx, qword [rdi + 0xd50]
lea r9, [rsp + 0x30]
mov r8d, 6
call fcn.140066da0
mov r9d, ebp
mov dword [rsp + 0x20], esi
mov r8, rax
lea rdx, str.TCP_UDP_packet_was_truncated_expanded_on_write_to__s__tried_d_actual_d_
mov ecx, 0x1000021
call fcn.14000e820
xor r13d, r13d
cmp dword [rdi + 0x1020], r13d
jle 0x140014a2d
cmp dword [rdi + 0x1c8], r13d
je 0x140014a2d
movsxd rax, esi
add qword [rdi + 0xea0], rax
mov rax, qword [rdi + 0xea0]
cmp rax, qword [rdi + 0x1d0]
jl 0x140014a2d
mov qword [rdi + 0xea0], r13
cmp byte [rdi + 0xe90], r13b
je 0x140014a2d
mov rax, qword [0x1400cb8d0]
mov qword [rdi + 0xe98], rax
test esi, esi
jns 0x140014b20
cmp ebx, 0x2743
jne 0x140014b20
cmp qword [rdi + 0xf00], 0
je 0x140014b20
lfence
mov rax, qword [rdi + 0xf00]
cmp dword [rax + 0x374], 0
jg 0x140014b20
cmp dword [rdi + 0x20], 0
jne 0x140014b20
lfence
cmp dword [0x1400d3ed4], 1
jb 0x140014a9b
mov ecx, 1
call fcn.14000ec70
test al, al
je 0x140014a9b
lea rdx, str.Network_unreachable__restarting
mov ecx, 1
call fcn.14000e820
mov rax, qword [rdi + 0xa78]
mov ecx, dword [rax]
cmp ecx, 0xf
je 0x140014ab9
lfence
mov rax, qword [rdi + 0xa78]
mov dword [rax], 0xa
mov rax, qword [rdi + 0xa78]
lea rcx, str.network_unreachable
mov qword [rax + 8], rcx
jmp 0x140014b20
cmp dword [0x1400d3ed4], 1
jb 0x140014b20
mov ecx, 0x1000021
call fcn.14000ec70
test al, al
je 0x140014b20
mov rcx, qword [rdi + 0xd50]
lea r9, [rsp + 0x30]
mov r8d, 6
call fcn.140066da0
mov ecx, dword [rdi + 0xd74]
lea rdx, str.TCP_UDP_packet_too_large_on_write_to__s__tried_d_max_d_
mov r9d, dword [rdi + 0x1050]
mov r8, rax
mov dword [rsp + 0x20], ecx
mov ecx, 0x1000021
call fcn.14000e820
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x1048], 0
mov dword [rdi + 0x1050], r13d
mov qword [rdi + 0x1058], r13
test rcx, rcx
je 0x140014b54
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140014b43
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140014b82
nop
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
call qword [0x14008d1f0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140014b60
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008aca0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
lea r8, str._openvpn_gettimeofday_s__wakeup__NULL_
mov edx, 0x92
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_shaper.h
call fcn.14000ed60
int3
lea r8, str.proto___0__proto___PROTO_N
mov edx, 0x25e
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.h
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0x49a
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.h
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.link_socket_actual_defined_c__c2.to_link_addr_
mov edx, 0x623
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3