Function at 0x14001be10
Capabilities:
Connect socket

Disassembly:
push rbx
push rdi
sub rsp, 0x8a8
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rbx, r8
mov rdi, rcx
call fcn.140019390
test eax, eax
je 0x14001be51
lea rcx, str.WSAStartup_failed
call fcn.140019410
mov eax, 2
jmp 0x14001c131
cmp dword [rdi + 0x480], 0
jne 0x14001be47
mov qword [rsp + 0x8c8], rbp
lea rdx, [0x1400aaa38]
mov qword [rsp + 0x8a0], rsi
mov rcx, rdi
mov qword [rsp + 0x898], r12
mov ebp, 2
mov qword [rsp + 0x890], r13
mov qword [rsp + 0x888], r14
mov qword [rsp + 0x880], r15
call fcn.14001af90
test eax, eax
je 0x14001bebf
mov rdx, qword [rdi + 8]
test rdx, rdx
jne 0x14001beae
mov rdx, qword [rdi]
lea rcx, str.Bad_LOCAL_MGR___s
call fcn.140019410
jmp 0x14001c0ef
mov rax, qword [rdi + 0x10]
mov r14d, 6
mov ecx, dword [rdi + 0x1c]
mov r13d, 1
mov r8d, r14d
mov qword [0x1400aa9c8], rax
mov edx, r13d
mov dword [0x1400aa9b0], ecx
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
test eax, eax
jns 0x14001bf03
lea rcx, str.socket_...__failed
call fcn.140019410
jmp 0x14001c0ef
movzx ecx, word [rdi + 0x38]
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [0x1400aa9c8]
lea rdx, [0x1400aaa38]
movsxd r15, r12d
mov rcx, r15
mov word [0x1400aaa3a], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001c1b6
mov esi, dword [rdi + 0x48c]
test esi, esi
jle 0x14001bf74
cmp esi, r14d
cmovg esi, r14d
imul ecx, esi, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [0x1400aa9c8]
lea rdx, [0x1400aaa38]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001c1b6
mov ebp, dword [rdi + 0x498]
test ebp, ebp
jle 0x14001bfc2
mov eax, 0xa
lea rcx, str.Waiting__d_more_seconds_for_license_manager_to_start
cmp ebp, eax
cmovg ebp, eax
mov edx, ebp
call fcn.140019410
imul ecx, ebp, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [0x1400aa9c8]
lea rdx, [0x1400aaa38]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001c1b6
lea rcx, str.Trying_to_start_license_manager_ampl_lic
xor r14d, r14d
call fcn.140019410
mov rcx, rax
call fcn.14004cf30
mov rcx, rdi
call fcn.14001a0e0
test eax, eax
jne 0x14001c228
test esi, esi
mov rcx, r15
cmovle esi, r13d
call qword [sym.imp.WS2_32.dll_closesocket]
imul r13d, esi, 0x3e8
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400aa9b0]
lea edx, [r14 + 1]
lea r8d, [r14 + 6]
call qword [sym.imp.WS2_32.dll_socket]
mov r12d, eax
test eax, eax
js 0x14001c0de
lea rbp, str.socket_already_in_use.
nop
mov r8d, dword [0x1400aa9c8]
lea rdx, [0x1400aaa38]
mov ecx, r12d
mov r15d, r12d
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001c1b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test eax, eax
jne 0x14001c066
call fcn.140052f00
mov esi, dword [rax]
mov ecx, esi
sub ecx, 2
je 0x14001c17e
sub ecx, 0x273e
jne 0x14001c14b
inc r14d
cmp r14d, dword [rdi + 0x470]
jg 0x14001c19d
cmp dword [rdi + 0x494], ecx
je 0x14001c0a1
lea rcx, str.Socket_busy__waiting_1_second_and_trying_again.
call fcn.140019410
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1400aa9b0]
mov edx, 1
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r12d, eax
test eax, eax
jns 0x14001c030
lea rcx, str.socket_...__failed
call fcn.140019410
mov ebp, 2
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [0x1400aa928], 0
mov r15, qword [rsp + 0x880]
mov eax, ebp
mov rbp, qword [rsp + 0x8c8]
mov r14, qword [rsp + 0x888]
mov r13, qword [rsp + 0x890]
mov r12, qword [rsp + 0x898]
mov rsi, qword [rsp + 0x8a0]
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140042470
add rsp, 0x8a8
pop rdi
pop rbx
ret
sub ecx, 3
je 0x14001c175
sub ecx, 9
je 0x14001c16c
cmp ecx, 1
je 0x14001c163
lea rbp, [0x140092b90]
jmp 0x14001c19d
lea rbp, str.connection_refused._nIs_ampl_lic_running_on_the_network_license_server__nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
jmp 0x14001c19d
lea r8, str.connection_timed_out._nIs_port__d_blocked_on_the_client_or_network_license_server__nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
jmp 0x14001c185
lea rbp, str.unreachable_network_no_route_to_host._nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
jmp 0x14001c19d
lea r8, str.mystery_error_return._nIs_ampl_lic_running_on_the_network_license_server__nIs_port__d_blocked_on_the_client_or_network_license_server__nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
mov r9d, dword [rdi + 0x38]
lea rcx, [rsp + 0x70]
mov edx, 0x800
lea rbp, [rsp + 0x70]
call fcn.140027a40
mov r8, rbp
lea rcx, str.Could_not_connect_with_license_manager:_error__d:__s
mov edx, esi
call fcn.140019410
jmp 0x14001c228
mov r13d, 1
movzx eax, byte [rbx]
mov rsi, rbx
test al, al
je 0x14001c1e9
movabs rcx, 0x200000000801
nop word [rax + rax]
inc rbx
sub al, 0x2f
cmp al, 0x2d
ja 0x14001c1e2
bt rcx, rax
jae 0x14001c1e2
mov rsi, rbx
movzx eax, byte [rbx]
test al, al
jne 0x14001c1d0
mov edx, 0x20
mov rcx, rsi
call fcn.140044214
test rax, rax
lea rcx, [0x140092d28]
lea rbx, [0x14008e24b]
cmovne rbx, rcx
call fcn.140019b20
mov rax, qword [0x1400aa958]
cmp byte [rax], 0
jne 0x14001c247
lea rcx, str.GetUserName_failed
call fcn.140019410
movsxd rbx, r12d
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14001c0ea
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x40], rax
lea rdx, str.baron
lea rax, [rsp + 0x54]
mov r8, rsi
mov qword [rsp + 0x38], rax
mov ecx, r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14001b6d0
mov ebp, eax
test eax, eax
jne 0x14001c0ef
movsxd rcx, dword [rsp + 0x50]
lea rsi, str.Maintenance_expires_with_version
mov r15d, dword [rsp + 0x54]
mov rsi, qword [rsi + rcx*8]
mov rcx, 0xffffffffffffffff
mov rdx, rcx
nop word [rax + rax]
cmp byte [rdi + rdx + 0x41], 0
lea rdx, [rdx + 1]
jne 0x14001c2c0
mov r8, qword [0x1400a3f58]
mov rax, rcx
inc rax
cmp byte [r8 + rax], 0
jne 0x14001c2d5
add rax, r15
inc rcx
cmp byte [rsi + rcx], 0
jne 0x14001c2e2
lea rbx, [rdx + rax]
add rbx, rcx
lea rcx, [rbx + 0x32]
call fcn.14005608c
mov r14, rax
test rax, rax
jne 0x14001c312
lea edx, [rbx + 0x32]
lea rcx, str.malloc__ld__failure_in_netlicchk
call fcn.140019410
mov rdx, qword [0x1400a3f58]
mov rbx, r14
movzx ecx, byte [rdx]
mov byte [r14], cl
test cl, cl
je 0x14001c33e
sub rdx, r14
nop dword [rax]
movzx eax, byte [rdx + rbx + 1]
inc rbx
mov byte [rbx], al
test al, al
jne 0x14001c330
mov rdx, qword [rsp + 0x60]
mov r8, r15
mov rcx, rbx
call fcn.140044760
mov byte [r15 + rbx], 0xa
inc rbx
movzx eax, byte [rsi]
add rbx, r15
mov byte [rbx], al
test al, al
je 0x14001c37e
sub rsi, rbx
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 1]
inc rbx
mov byte [rbx], al
test al, al
jne 0x14001c370
mov r8d, dword [rsp + 0x58]
lea rdx, [0x140092d6c]
mov rcx, rbx
call fcn.1400276e0
movsxd rdx, eax
lea rcx, str.._nUsing_license_file__
add rdx, rbx
sub rcx, rdx
mov byte [rdx], 0x2e
nop word [rax + rax]
movzx eax, byte [rcx + rdx + 1]
inc rdx
mov byte [rdx], al
test al, al
jne 0x14001c3b0
movzx eax, byte [rdi + 0x40]
mov byte [rdx], al
test al, al
je 0x14001c3de
sub rdi, rdx
nop dword [rax + rax]
movzx eax, byte [rdi + rdx + 0x41]
inc rdx
mov byte [rdx], al
test al, al
jne 0x14001c3d0
lea rcx, [0x140092d70]
mov byte [rdx], 0x22
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 1]
mov byte [rdx + rcx], al
test al, al
jne 0x14001c3f0
cmp dword [0x1400aa7bc], 0
mov eax, dword [0x1400aa9b4]
mov dword [0x1400aa9b8], eax
mov qword [0x1400a3f58], r14
jne 0x14001c42e
lea rcx, [fcn.14001e940]
mov dword [0x1400aa7bc], r13d
call fcn.1400429a8
lea rdx, [0x14001b6b0]
mov ecx, 2
call fcn.140055eb0
jmp 0x14001c0ff