Function at 0x140301770
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, qword [rsp + 0xd0]
xor r14d, r14d
xor bl, bl
mov qword [rsp + 0x50], r9
mov rbp, 0xffffffffffffffff
mov dword [rsp + 0x24], ebx
mov rdi, r9
mov qword [rsp + 0x48], r8
mov r13, rcx
mov qword [rsp + 0x30], r15
mov esi, 2
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x22], r14b
mov r12, rbp
inc r12
cmp byte [r9 + r12], r14b
jne 0x1403017d2
cmp byte [rdx + 0x2d3], r14b
je 0x140301806
lea r8, [rsp + 0x58]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140301806
mov qword [rsp + 0x38], reloc.WS2_32.dll_recv
jmp 0x140301823
lea r8, [rsp + 0x58]
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140301828
mov qword [rsp + 0x38], 4
mov esi, 7
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x55]
call fcn.140280bf0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1403019db
xor dil, dil
mov rcx, rax
mov byte [rsp + 0x20], dil
mov byte [rsp + 0x21], dil
call fcn.140204fb0
mov dword [rsp + 0x28], eax
mov r15d, r14d
test eax, eax
jle 0x140301922
mov r14, qword [rsp + 0x40]
test dil, dil
jne 0x14030191f
mov edx, r15d
mov rcx, r14
call fcn.1402051e0
mov rdi, rax
mov ecx, dword [rax]
cmp ecx, 2
jne 0x140301898
mov byte [rsp + 0x22], 1
jmp 0x1403018aa
cmp ecx, 7
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov dword [rsp + 0x24], ebx
cmp ecx, esi
jne 0x14030190c
mov rcx, qword [rdi + 8]
call fcn.1400b07a0
mov rcx, qword [rdi + 8]
mov rbx, rax
call fcn.1400db5e0
movsxd rdx, eax
cmp esi, 2
je 0x140301981
cmp esi, 7
jne 0x140301908
cmp rdx, qword [rsp + 0x38]
jne 0x140301908
mov r8, rdx
mov rcx, rbx
lea rdx, [rsp + 0x58]
call fcn.14039baa0
test eax, eax
jne 0x140301908
mov r8, qword [rsp + 0x30]
lea rdx, str._subjectAltName:_host___s__matched_certs_IP_address_
mov rcx, r13
mov byte [rsp + 0x21], 1
call fcn.1402ea630
mov ebx, dword [rsp + 0x24]
movzx edi, byte [rsp + 0x20]
inc r15d
cmp r15d, dword [rsp + 0x28]
jl 0x140301873
xor r14d, r14d
mov rcx, qword [rsp + 0x40]
call fcn.140273e10
test dil, dil
jne 0x140301b77
cmp byte [rsp + 0x21], dil
jne 0x140301b77
cmp byte [rsp + 0x22], dil
jne 0x14030194f
test bl, bl
je 0x1403019d6
mov r8, qword [rsp + 0x30]
lea rdx, str._subjectAltName_does_not_match__s
mov rcx, r13
call fcn.1402ea630
mov r8, qword [rsp + 0x30]
lea rdx, str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
mov rcx, r13
call fcn.1402ea550
mov eax, 0x3c
jmp 0x140301b7a
mov rax, rbp
inc rax
cmp byte [rbx + rax], 0
jne 0x140301984
cmp rdx, rax
jne 0x140301908
mov r8, qword [rsp + 0x50]
mov r9, r12
mov rcx, rbx
call fcn.140311920
test al, al
je 0x140301908
mov r8, qword [rsp + 0x30]
lea rdx, str._subjectAltName:_host___s__matched_certs___s_
mov r9, rbx
mov rcx, r13
call fcn.1402ea630
mov ebx, dword [rsp + 0x24]
mov dil, 1
mov byte [rsp + 0x20], dil
jmp 0x140301911
mov r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov edi, r14d
mov qword [rsp + 0x28], r14
call fcn.1400ea0a0
mov rbx, rax
test rax, rax
je 0x140301af8
mov r8d, ebp
mov edx, reloc.WS2_32.dll_listen
mov rcx, rax
call fcn.14027f410
test eax, eax
js 0x140301af8
mov r8d, eax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
mov esi, eax
call fcn.14027f410
test eax, eax
jns 0x140301a11
mov edx, esi
mov rcx, rbx
call fcn.14027f3c0
mov rcx, rax
call fcn.14027f0e0
mov rsi, rax
test rax, rax
je 0x140301af8
mov rcx, rax
call fcn.14021bd30
cmp eax, 0xc
jne 0x140301aae
mov rcx, rsi
call fcn.1400db5e0
movsxd rdi, eax
test eax, eax
js 0x140301abd
lea ecx, [rdi + 1]
mov r8d, 0x8f5
movsxd rcx, ecx
lea rdx, str.D:codeWeChatPinYinwxkb01_mozc_build_x64_release_depscurl_srclib_vtlsopenssl.c
call fcn.1401f2a00
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140301aa6
mov rcx, rsi
call fcn.1400b07a0
mov rcx, qword [rsp + 0x28]
mov rdx, rax
mov r8, rdi
call fcn.14039b2e0
mov rax, qword [rsp + 0x28]
mov byte [rdi + rax], 0
jmp 0x140301abd
mov r14d, 0x1b
jmp 0x140301abd
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140221200
mov edi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140301af3
inc rbp
cmp byte [rcx + rbp], 0
jne 0x140301ac7
mov rcx, rbp
call fcn.1402ecaf0
cmp eax, edi
je 0x140301af3
lea rdx, str.SSL:_illegal_cert_name_field
mov rcx, r13
call fcn.1402ea550
mov r14d, 0x3c
jmp 0x140301b5b
test r14d, r14d
jne 0x140301b5b
cmp qword [rsp + 0x28], 0
jne 0x140301b17
lea rdx, str.SSL:_unable_to_obtain_common_name_from_peer_certificate
mov rcx, r13
call fcn.1402ea550
mov r14d, 0x3c
jmp 0x140301b5b
mov r8, qword [rsp + 0x50]
mov r9, r12
mov rcx, qword [rsp + 0x28]
movsxd rdx, edi
call fcn.140311920
mov r8, qword [rsp + 0x28]
mov rcx, r13
test al, al
jne 0x140301b4f
mov r9, r15
lea rdx, str.SSL:_certificate_subject_name__s_does_not_match_target_host_name__s
call fcn.1402ea550
mov r14d, 0x3c
jmp 0x140301b5b
lea rdx, str._common_name:__s__matched_
call fcn.1402ea630
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140301b77
mov r8d, 0x91c
lea rdx, str.D:codeWeChatPinYinwxkb01_mozc_build_x64_release_depscurl_srclib_vtlsopenssl.c
call fcn.1401f2a50
mov eax, r14d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140398000
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret