Function at 0x140087f80
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd8
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
mov rbx, r8
mov r9, r8
mov rdi, rdx
mov r8, rdx
mov r14, rcx
lea rdx, str.wintun_add_address__s___s_
mov ecx, 3
call fcn.140082080
mov r15d, 2
lea r8, [rbp - 0x71]
mov ecx, r15d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x140087ffa
mov r8, rdi
lea rdx, str.wintun_add_address_...__invalid_addr:__s
xor ecx, ecx
call fcn.140082080
lea eax, [r15 - 3]
jmp 0x140088228
jns 0x140088024
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, str.wintun_add_address_...__inet_pton_failed_with_error:__s
xor ecx, ecx
call fcn.140082080
mov eax, 0xffffffff
jmp 0x140088228
lea r8, [rbp - 0x75]
mov rdx, rbx
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x140088053
mov r8, rbx
lea rdx, str.wintun_add_address_...__invalid_mask:__s
xor ecx, ecx
call fcn.140082080
mov eax, 0xffffffff
jmp 0x140088228
js 0x140087ffc
mov ecx, dword [rbp - 0x75]
lea rdx, [rbp - 0x79]
mov byte [rbp - 0x79], 0
call sub.IPHLPAPI.DLL_ConvertIpv4MaskToLength
test eax, eax
je 0x140088084
mov r8, rbx
lea rdx, str.wintun_add_address_...__invalid_mask_value:__s
xor ecx, ecx
call fcn.140082080
mov eax, 0xffffffff
jmp 0x140088228
mov eax, dword [rbp - 0x71]
lea rcx, [rbp - 0x39]
xorps xmm0, xmm0
mov dword [rbp - 0x5d], eax
xor eax, eax
mov dword [rbp - 0x61], r15d
mov qword [rbp - 0x59], rax
xor edi, edi
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
call sub.IPHLPAPI.DLL_InitializeUnicastIpAddressEntry
mov eax, dword [r14 + 0x248]
xor r9d, r9d
mov ecx, dword [r14 + 0x24c]
and eax, 0xffffff
movups xmm0, xmmword [rbp - 0x61]
shl rcx, 0x18
xor r8d, r8d
or rcx, rax
mov qword [rbp - 0x69], rdi
movzx eax, byte [rbp - 0x79]
xor edx, edx
shl rcx, 0x18
mov qword [rbp - 0x19], rcx
xor ecx, ecx
movaps xmmword [rbp - 0x39], xmm0
mov byte [rbp + 3], al
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rax, rax
jne 0x140088129
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, str.wintun_add_address_...__CreateEvent_failed_with_error:__s_n
xor ecx, ecx
call fcn.140082080
lea eax, [rdi - 1]
jmp 0x140088228
lea rax, [rbp - 0x69]
mov ecx, r15d
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [0x140088250]
call sub.IPHLPAPI.DLL_NotifyUnicastIpAddressChange
test eax, eax
je 0x140088176
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, str.wintun_add_address_...__NotifyUnicastIpAddressChange_failed_with_error:__s
xor ecx, ecx
call fcn.140082080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140088228
lea rcx, [rbp - 0x39]
call sub.IPHLPAPI.DLL_CreateUnicastIpAddressEntry
test eax, eax
je 0x1400881b4
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, str.wintun_add_address_...__CreateUnicastIpAddressEntry_failed_with_error:__s
xor ecx, ecx
call fcn.140082080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call sub.IPHLPAPI.DLL_CancelMibChangeNotify2
mov eax, 0xffffffff
jmp 0x140088228
mov r9d, 0x7d0
mov qword [rbp - 0x51], rbx
xor r8d, r8d
mov qword [rbp - 0x49], rsi
lea rdx, [rbp - 0x51]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140088203
xor ecx, ecx
cmp eax, 1
je 0x1400881f0
lea rdx, str.wintun_add_address_...__timeout_waiting_for_address_change
call fcn.140082080
mov edi, 0xfffffffe
jmp 0x140088214
lea rdx, str.wintun_add_address_...__cancelled
call fcn.140082080
mov edi, 0xfffffffd
jmp 0x140088214
lea rdx, str.wintun_add_address_...__CreateUnicastIpAddressEntry_succeeded
mov ecx, 3
call fcn.140082080
mov rcx, qword [rbp - 0x69]
call sub.IPHLPAPI.DLL_CancelMibChangeNotify2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400b06c0
add rsp, 0xd8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret