Function at 0x1400133e0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rsi
push r13
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movups xmm0, xmmword [rdx]
mov rax, qword [rcx + 0xb58]
xor esi, esi
movsd xmm1, qword [rdx + 0x10]
mov r13, rdx
mov byte [rbp - 0x39], r8b
mov r15, rcx
mov qword [rbp - 0x31], rsi
movsd qword [rbp - 0x11], xmm1
movups xmmword [rbp - 0x21], xmm0
test rax, rax
je 0x140013432
mov ecx, dword [rax]
jmp 0x140013434
mov ecx, esi
mov r8d, 6
lea rdx, [rbp - 0x21]
call fcn.140056ea0
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400137e2
mov qword [rsp + 0xe0], rbx
mov ebx, dword [rbp - 0x19]
cmp ebx, 0x28
jl 0x1400137da
mov rdx, qword [r15 + 0x1a8]
lea r8, [rbp - 1]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
movsxd r14, dword [rbp - 0x1d]
add r14, rcx
mov ecx, reloc.WS2_32.dll_socket
movups xmm0, xmmword [r14]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbp + 7], xmm1
movsd xmm0, qword [r14 + 0x20]
movsd qword [rbp + 0x17], xmm0
movzx eax, byte [r14]
mov byte [rbp - 9], al
movups xmm0, xmmword [r14 + 8]
movups xmmword [rbp + 0xf], xmm0
test rdx, rdx
jne 0x1400134cb
lea rdx, str.fe80::7
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rax, qword [r15 + 0xb58]
mov byte [rbp - 3], 0x3a
mov word [rbp - 0x31], 1
test rax, rax
je 0x1400134eb
mov ecx, dword [rax]
jmp 0x1400134ed
mov ecx, esi
mov edi, dword [r15 + 0xc64]
cmp ecx, 3
mov eax, 0x30
mov r12d, 0x3e
cmovne r12d, eax
sub edi, dword [r15 + 0xc74]
sub edi, dword [r15 + 0xc6c]
sub edi, eax
mov eax, 0x500
cmp edi, eax
cmovg edi, eax
cmp edi, ebx
cmovge edi, ebx
lea ecx, [rdi + 8]
call qword [sym.imp.WS2_32.dll_htons]
lea rbx, [r15 + 0xf20]
mov word [rbp - 5], ax
mov rax, qword [r15 + 0xef8]
movups xmm0, xmmword [rax]
cmp byte [rbp - 0x39], sil
jne 0x140013550
lea rbx, [r15 + 0xf38]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbx + 0x10], xmm1
mov r9d, dword [rbx]
cmp r12d, r9d
jg 0x1400137fc
mov r10, qword [rbx + 0x10]
test r10, r10
je 0x1400137fc
mov edx, edi
mov dword [rbx + 8], esi
mov rcx, rbx
mov dword [rbx + 4], r12d
call fcn.140004bb0
test al, al
je 0x140013815
test edi, edi
js 0x140013879
cmp dword [rbp - 0x19], edi
jl 0x140013879
test r14, r14
je 0x140013879
cmp edi, 0xf4240
jae 0x140013879
lea eax, [r12 + rdi]
cmp eax, r9d
jg 0x140013879
mov ecx, r12d
mov dword [rbx + 8], edi
add rcx, r10
je 0x140013879
movsxd r8, edi
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140013860
mov edx, dword [rbx + 8]
test edx, edx
js 0x140013860
movsxd rcx, dword [rbx + 4]
cmp ecx, 8
jl 0x140013860
lea eax, [rcx - 8]
mov dword [rbx + 4], eax
lea eax, [rdx + 8]
mov dword [rbx + 8], eax
mov rax, rcx
lea rcx, [r8 - 8]
add rcx, rax
je 0x140013860
mov rax, qword [rbp - 0x31]
mov qword [rcx], rax
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x140013636
mov r8d, dword [rbx + 8]
test r8d, r8d
jns 0x140013643
mov r8d, esi
test rdi, rdi
je 0x14001366b
cmp dword [rbx + 8], esi
jl 0x14001366b
movsxd rdx, dword [rbx + 4]
lea rax, [rbp + 0xf]
add rdx, rdi
mov dword [rsp + 0x28], 0x3a
mov ecx, reloc.WS2_32.dll_socket
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
call fcn.140056fe0
jmp 0x140013691
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], 0x3a
mov ecx, reloc.WS2_32.dll_socket
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
xor edx, edx
call fcn.140056fe0
test rdi, rdi
je 0x14001369d
cmp dword [rbx + 8], esi
jl 0x14001369d
movsxd rsi, dword [rbx + 4]
add rsi, rdi
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140013847
mov edx, dword [rbx + 8]
test edx, edx
js 0x140013847
movsxd rcx, dword [rbx + 4]
cmp ecx, 0x28
jl 0x140013847
lea eax, [rcx - 0x28]
mov dword [rbx + 4], eax
lea eax, [rdx + 0x28]
mov dword [rbx + 8], eax
mov rax, rcx
lea rcx, [r8 - 0x28]
add rcx, rax
je 0x140013847
movups xmm0, xmmword [rbp - 9]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [rbp + 0x17]
movsd qword [rcx + 0x20], xmm0
mov rax, qword [r15 + 0xb58]
test rax, rax
je 0x1400137c2
cmp dword [rax], 3
jne 0x1400137c2
mov rdx, qword [r13 + 0x10]
test rdx, rdx
je 0x1400137c2
mov eax, dword [r13 + 8]
test eax, eax
js 0x1400137c2
cmp eax, 0xe
jl 0x1400137c2
movsxd rcx, dword [r13 + 4]
add rcx, rdx
mov eax, dword [rcx]
mov dword [rbp - 0x2b], eax
movzx eax, word [rcx + 4]
mov word [rbp - 0x27], ax
mov eax, dword [rcx + 6]
mov dword [rbp - 0x31], eax
movzx eax, word [rcx + 0xa]
mov ecx, 0x86dd
mov word [rbp - 0x2d], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r8, qword [rbx + 0x10]
movzx r9d, ax
test r8, r8
je 0x14001382e
mov eax, dword [rbx + 8]
test eax, eax
js 0x14001382e
movsxd rdx, dword [rbx + 4]
cmp edx, 0xe
jl 0x14001382e
lea ecx, [rdx - 0xe]
add eax, 0xe
mov dword [rbx + 4], ecx
lea rcx, [r8 - 0xe]
mov dword [rbx + 8], eax
add rcx, rdx
je 0x14001382e
movsd xmm0, qword [rbp - 0x31]
mov eax, dword [rbp - 0x29]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
mov word [rcx + 0xc], r9w
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140088150
add rsp, 0xa8
pop r15
pop r13
pop rsi
pop rbp
ret
lea r8, str.buf_init_outbuf__totalheader_len_
mov edx, 0x587
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3
lea r8, str.buf_safe_outbuf__payload_len_
mov edx, 0x58a
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3
lea r8, str.buf_write_prepend_outbuf__ethhdr__sizeof_struct_openvpn_ethhdr__
mov edx, 0x5ac
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3
lea r8, str.buf_write_prepend_outbuf__pip6out__sizeof_struct_openvpn_ipv6hdr__
mov edx, 0x599
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3
lea r8, str.buf_write_prepend_outbuf__icmp6out__sizeof_struct_openvpn_icmp6hdr__
mov edx, 0x58e
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3
lea r8, str.buf_copy_n_outbuf__inputipbuf__payload_len_
mov edx, 0x58b
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3