Function at 0x140118060
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14037e680]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r8d, dword [rcx + 0x16c]
xor eax, eax
mov r15, qword [rcx]
mov esi, 2
xor r12b, r12b
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov dword [rsp + 0x28], eax
mov r13d, eax
mov byte [rsp + 0x22], al
cmp r8d, esi
jne 0x14011811a
cmp qword [rcx + 0x260], 0xffffffffffffffff
mov edx, 0x310
mov eax, edx
mov r9d, 0x328
cmovne eax, r9d
cmp dword [rax + rcx], esi
je 0x1401180ea
mov r14, qword [rcx + 0x158]
mov rdi, qword [rcx + 0x160]
mov qword [rsp + 0x38], r14
jmp 0x14011812d
mov r14, qword [rcx + 0xd0]
mov qword [rsp + 0x38], r14
cmp r8d, esi
jne 0x140118126
cmp qword [rcx + 0x260], 0xffffffffffffffff
mov qword [rsp + 0x38], r14
cmovne rdx, r9
cmp dword [rdx + rcx], esi
je 0x140118126
mov rdi, qword [rcx + 0x160]
jmp 0x14011812d
mov r14, qword [rcx + 0xd0]
mov qword [rsp + 0x38], r14
mov rdi, qword [rcx + 0xd8]
mov qword [rsp + 0x30], rdi
cmp byte [rcx + 0x3f6], r12b
je 0x14011815d
lea r8, [rsp + 0x60]
mov rdx, r14
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14011815d
mov qword [rsp + 0x48], reloc.WS2_32.dll_recv
jmp 0x14011817a
lea r8, [rsp + 0x60]
mov rdx, r14
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14011817f
mov qword [rsp + 0x48], 4
mov esi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x55]
call fcn.14014c2c0
mov qword [rsp + 0x50], rax
mov rbp, 0xffffffffffffffff
test rax, rax
je 0x140118330
xor bl, bl
mov rcx, rax
mov byte [rsp + 0x20], bl
mov byte [rsp + 0x21], bl
call fcn.14013c220
xor r14d, r14d
mov dword [rsp + 0x40], eax
test eax, eax
jle 0x1401182d1
mov r13, qword [rsp + 0x38]
nop dword [rax]
test bl, bl
jne 0x1401182cc
mov rcx, qword [rsp + 0x50]
mov edx, r14d
call fcn.14013c450
mov rdi, rax
mov ecx, dword [rax]
cmp ecx, 2
jne 0x1401181f6
mov byte [rsp + 0x22], 1
jmp 0x140118206
cmp ecx, 7
movzx r12d, r12b
mov eax, 1
cmove r12d, eax
cmp ecx, esi
jne 0x1401182b9
mov rcx, qword [rdi + 8]
call fcn.140141070
mov rcx, qword [rdi + 8]
mov rbx, rax
call fcn.140143220
movsxd rcx, eax
cmp esi, 2
je 0x140118272
cmp esi, 7
jne 0x1401182b4
cmp rcx, qword [rsp + 0x48]
jne 0x1401182b4
mov r8, rcx
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1402a4d50
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x14011826b
mov r8, rdi
mov byte [rsp + 0x21], 1
lea rdx, str._subjectAltName:_host___s__matched_certs_IP_address__n
mov rcx, r15
call fcn.1400fcb50
movzx ebx, byte [rsp + 0x20]
jmp 0x1401182be
mov rax, rbp
inc rax
cmp byte [rbx + rax], 0
jne 0x140118275
cmp rcx, rax
jne 0x1401182b4
mov rdx, r13
mov rcx, rbx
call fcn.1401363e0
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x14011826b
mov r9, rbx
lea rdx, str._subjectAltName:_host___s__matched_certs___s__n
mov r8, rdi
mov rcx, r15
call fcn.1400fcb50
mov bl, 1
mov byte [rsp + 0x20], bl
jmp 0x1401182be
movzx ebx, byte [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
inc r14d
cmp r14d, dword [rsp + 0x40]
jl 0x1401181d0
mov r13d, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14014e580
test bl, bl
jne 0x1401184dc
cmp byte [rsp + 0x21], bl
jne 0x1401184dc
cmp byte [rsp + 0x22], bl
jne 0x1401182f8
test r12b, r12b
je 0x140118326
mov r8, rdi
lea rdx, str._subjectAltName_does_not_match__s_n
mov rcx, r15
call fcn.1400fcb50
mov r8, rdi
lea rdx, str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
mov rcx, r15
call fcn.1400fc9d0
mov eax, reloc.WLDAP32.dll_Ordinal_60
jmp 0x1401184df
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
lea r12, [0x140346f05]
mov rcx, rbx
mov qword [rsp + 0x28], r12
call fcn.14014bab0
mov rbx, rax
test rax, rax
je 0x14011844a
mov r8d, ebp
mov edx, reloc.WS2_32.dll_listen
mov rcx, rax
call fcn.14014c0d0
test eax, eax
js 0x14011844a
nop dword [rax + rax]
mov r8d, eax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
mov edi, eax
call fcn.14014c0d0
test eax, eax
jns 0x140118370
mov edx, edi
mov rcx, rbx
call fcn.14014c080
mov rcx, rax
call fcn.14014bd80
mov rdi, rax
test rax, rax
je 0x14011844a
mov rcx, rax
call fcn.1401433e0
cmp eax, 0xc
jne 0x140118405
mov rcx, rdi
call fcn.140143220
movsxd rsi, eax
test eax, eax
js 0x140118414
lea ecx, [rsi + 1]
mov r8d, 0x672
movsxd rcx, ecx
lea rdx, str.C:Users_riskuDownloads_vcpkg_master_buildtreescurl_srcurl_7_68_0_cd669cc759lib_vtlsopenssl.c
call fcn.14013d0c0
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14011844f
mov rcx, rdi
call fcn.140141070
mov rcx, qword [rsp + 0x28]
mov rdx, rax
mov r8, rsi
call fcn.1402a4310
mov rax, qword [rsp + 0x28]
mov byte [rsi + rax], 0
jmp 0x140118414
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1401441d0
mov esi, eax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14011844f
nop
inc rbp
cmp byte [rax + rbp], 0
jne 0x140118420
mov rcx, rbp
call fcn.1400ff3f0
cmp eax, esi
je 0x14011844a
lea rdx, str.SSL:_illegal_cert_name_field
mov rcx, r15
call fcn.1400fc9d0
mov r13d, reloc.WLDAP32.dll_Ordinal_60
mov rax, qword [rsp + 0x28]
cmp rax, r12
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x28], rax
test r13d, r13d
jne 0x1401184c2
test rax, rax
jne 0x140118481
lea rdx, str.SSL:_unable_to_obtain_common_name_from_peer_certificate
mov rcx, r15
call fcn.1400fc9d0
mov r13d, reloc.WLDAP32.dll_Ordinal_60
jmp 0x1401184bd
mov rdx, r14
mov rcx, rax
call fcn.1401363e0
mov r8, qword [rsp + 0x28]
mov rcx, r15
test eax, eax
jne 0x1401184b1
mov r9, qword [rsp + 0x30]
lea rdx, str.SSL:_certificate_subject_name__s_does_not_match_target_host_name__s
call fcn.1400fc9d0
mov r13d, reloc.WLDAP32.dll_Ordinal_60
jmp 0x1401184bd
lea rdx, str._common_name:__s__matched__n
call fcn.1400fcb50
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401184dc
mov r8d, 0x6a3
lea rdx, str.C:Users_riskuDownloads_vcpkg_master_buildtreescurl_srcurl_7_68_0_cd669cc759lib_vtlsopenssl.c
mov rcx, rax
call fcn.14013d110
mov eax, r13d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140262fe0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret