Function at 0x140013bf0
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 [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movups xmm0, xmmword [rdx]
mov rax, qword [rcx + 0xc68]
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 0x140013c42
mov ecx, dword [rax]
jmp 0x140013c44
mov ecx, esi
mov r8d, 6
lea rdx, [rbp - 0x21]
call fcn.140058bc0
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140013ff2
mov qword [rsp + 0xe0], rbx
mov ebx, dword [rbp - 0x19]
cmp ebx, 0x28
jl 0x140013fea
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 0x140013cdb
lea rdx, str.fe80::7
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rax, qword [r15 + 0xc68]
mov byte [rbp - 3], 0x3a
mov word [rbp - 0x31], 1
test rax, rax
je 0x140013cfb
mov ecx, dword [rax]
jmp 0x140013cfd
mov ecx, esi
mov edi, dword [r15 + 0xd74]
cmp ecx, 3
mov eax, 0x30
mov r12d, 0x3e
cmovne r12d, eax
sub edi, dword [r15 + 0xd84]
sub edi, dword [r15 + 0xd7c]
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 + 0x1030]
mov word [rbp - 5], ax
mov rax, qword [r15 + 0x1008]
movups xmm0, xmmword [rax]
cmp byte [rbp - 0x39], sil
jne 0x140013d60
lea rbx, [r15 + 0x1048]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbx + 0x10], xmm1
mov r9d, dword [rbx]
cmp r12d, r9d
jg 0x14001400c
mov r10, qword [rbx + 0x10]
test r10, r10
je 0x14001400c
mov edx, edi
mov dword [rbx + 8], esi
mov rcx, rbx
mov dword [rbx + 4], r12d
call fcn.140004dc0
test al, al
je 0x140014025
test edi, edi
js 0x140014089
cmp dword [rbp - 0x19], edi
jl 0x140014089
test r14, r14
je 0x140014089
cmp edi, 0xf4240
jae 0x140014089
lea eax, [r12 + rdi]
cmp eax, r9d
jg 0x140014089
mov ecx, r12d
mov dword [rbx + 8], edi
add rcx, r10
je 0x140014089
movsxd r8, edi
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140014070
mov edx, dword [rbx + 8]
test edx, edx
js 0x140014070
movsxd rcx, dword [rbx + 4]
cmp ecx, 8
jl 0x140014070
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 0x140014070
mov rax, qword [rbp - 0x31]
mov qword [rcx], rax
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x140013e46
mov r8d, dword [rbx + 8]
test r8d, r8d
jns 0x140013e53
mov r8d, esi
test rdi, rdi
je 0x140013e7b
cmp dword [rbx + 8], esi
jl 0x140013e7b
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.140058d00
jmp 0x140013ea1
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.140058d00
test rdi, rdi
je 0x140013ead
cmp dword [rbx + 8], esi
jl 0x140013ead
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 0x140014057
mov edx, dword [rbx + 8]
test edx, edx
js 0x140014057
movsxd rcx, dword [rbx + 4]
cmp ecx, 0x28
jl 0x140014057
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 0x140014057
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 + 0xc68]
test rax, rax
je 0x140013fd2
cmp dword [rax], 3
jne 0x140013fd2
mov rdx, qword [r13 + 0x10]
test rdx, rdx
je 0x140013fd2
mov eax, dword [r13 + 8]
test eax, eax
js 0x140013fd2
cmp eax, 0xe
jl 0x140013fd2
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 0x14001403e
mov eax, dword [rbx + 8]
test eax, eax
js 0x14001403e
movsxd rdx, dword [rbx + 4]
cmp edx, 0xe
jl 0x14001403e
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 0x14001403e
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.14008aca0
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_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3
lea r8, str.buf_safe_outbuf__payload_len_
mov edx, 0x58a
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3
lea r8, str.buf_write_prepend_outbuf__ethhdr__sizeof_struct_openvpn_ethhdr__
mov edx, 0x5ac
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3
lea r8, str.buf_write_prepend_outbuf__pip6out__sizeof_struct_openvpn_ipv6hdr__
mov edx, 0x599
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3
lea r8, str.buf_write_prepend_outbuf__icmp6out__sizeof_struct_openvpn_icmp6hdr__
mov edx, 0x58e
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3
lea r8, str.buf_copy_n_outbuf__inputipbuf__payload_len_
mov edx, 0x58b
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_forward.c
call fcn.14000ed60
int3