Function at 0x1400257a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x70
cmp dword [rcx + 0x2118], 0
mov rbx, rcx
jne 0x140025994
xorps xmm0, xmm0
mov qword [rsp + 0x90], rbp
movups xmmword [rcx + 0x2150], xmm0
mov qword [rsp + 0x60], rdi
movups xmmword [rcx + 0x2160], xmm0
mov qword [rcx + 0x2160], 0xffffffffffffffff
mov ecx, 0x30
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140025a96
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0x400
movups xmmword [rax], xmm0
xor ebp, ebp
mov edx, 0x400
movups xmmword [rax + 0x10], xmm0
mov dword [rsp + 0x38], ebp
movups xmmword [rax + 0x20], xmm0
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140025a96
movups xmm0, xmmword [rsp + 0x30]
lea ecx, [rbp + 1]
mov edx, 0x400
movsd xmm1, qword [rsp + 0x40]
movups xmmword [rdi], xmm0
mov qword [rsp + 0x48], 0x400
movsd qword [rdi + 0x10], xmm1
mov dword [rsp + 0x50], ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140025a96
movups xmm0, xmmword [rsp + 0x48]
lea ecx, [rbp + 0x18]
movsd xmm1, qword [rsp + 0x58]
movups xmmword [rdi + 0x18], xmm0
movsd qword [rdi + 0x28], xmm1
mov qword [rbx + 0x2178], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140025a96
mov qword [rax], rbp
lea edx, [rbp + 2]
mov qword [rax + 8], rbp
lea rcx, [rsp + 0x88]
mov qword [rax + 0x10], rbp
mov qword [rbx + 0x2180], rax
mov dword [rsp + 0x88], 1
call fcn.14000f860
test rax, rax
je 0x140025a9c
test byte [rbx + 0xe4], 0x20
mov qword [rbx + 0x21c0], rax
mov dword [rbx + 0x41f0], 1
je 0x140025a7c
mov rax, qword [rbx + 0xe8]
mov edi, ebp
mov qword [rsp + 0x68], rsi
mov esi, ebp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x80], ebp
mov dword [rbx + 0x2118], ebp
mov qword [rbx + 0x2120], 0xffffffffffffffff
test rax, rax
je 0x140025ab5
cmp dword [rax + 8], 1
jne 0x140025ace
mov r8d, dword [rax + 0xc]
lea edx, [rbp + 1]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdx, qword [rbx + 0xe8]
lea r9, [rsp + 0x80]
mov qword [rbx + 0x2128], rax
lea r8d, [rbp + 5]
mov rcx, rax
mov rdx, qword [rdx + 0x20]
call fcn.140062ab0
mov ecx, dword [rsp + 0x80]
test ecx, ecx
je 0x14002599a
mov dword [0x1400cfe40], ecx
mov dword [0x1400cfe44], 1
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
add rsp, 0x70
pop rbx
ret
test eax, eax
je 0x140025a60
cmp dword [0x1400cfe94], 1
jb 0x1400259f9
mov ecx, 0x1000121
call fcn.14000e3d0
test al, al
je 0x1400259f9
mov rax, qword [rbx + 0xe8]
lea r9, [rsp + 0x20]
mov r8d, 2
lea rdx, [0x14009b168]
mov rcx, qword [rax + 0x20]
call fcn.140064eb0
mov r8, rax
lea rdx, str.MANAGEMENT:_connect_to__s_failed
mov ecx, 0x1000121
call fcn.14000e000
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
lea rax, str.management_connect_failed
mov dword [0x1400cfe40], 0xf
mov qword [0x1400cfe48], rax
mov dword [0x1400cfe44], ebp
test rsi, rsi
je 0x140025a34
nop dword [rax]
mov rbx, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rbx
test rbx, rbx
jne 0x140025a20
test rdi, rdi
je 0x140025982
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140025a40
jmp 0x140025982
mov rcx, rbx
call fcn.140024470
lea rdx, str.Connected_to_management_server_at
mov rcx, rbx
call fcn.140024680
jmp 0x140025982
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
add rsp, 0x70
pop rbx
jmp fcn.140024850
call fcn.14000e540
int3
lea r8, [0x140099a50]
mov edx, 0x485
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpnevent.c
call fcn.14000e4c0
int3
lea r8, str.addrinfo
mov edx, 0x3f6
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.addrinfo__ai_socktype__SOCK_STREAM
mov edx, 0x3f7
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3