Function at 0x1401b6ab0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140498128]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r14d, r14d
mov qword [rsp + 0x58], r8
xor bl, bl
mov qword [rsp + 0x38], rcx
mov r15d, 2
mov qword [rsp + 0x40], r14
mov rdi, r8
mov byte [rsp + 0x21], r14b
mov dword [rsp + 0x24], ebx
cmp dword [rdx + 0x13c], r15d
jne 0x1401b6b2c
cmp qword [rdx + 0x1f8], 0xffffffffffffffff
mov eax, 0x2a8
mov ecx, 0x2c0
cmovne eax, ecx
cmp dword [rax + rdx], r15d
je 0x1401b6b2c
mov r13, qword [rdx + 0x128]
mov rax, qword [rdx + 0x130]
jmp 0x1401b6b3a
mov r13, qword [rdx + 0xa0]
mov rax, qword [rdx + 0xa8]
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x30], r13
mov r12, rbp
mov qword [rsp + 0x48], rax
nop
inc r12
cmp byte [r12 + r13], r14b
jne 0x1401b6b50
cmp byte [rdx + 0x3ef], r14b
je 0x1401b6b84
lea r8, [rsp + 0x60]
mov rdx, r13
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1401b6b84
mov qword [rsp + 0x40], reloc.WS2_32.dll_recv
jmp 0x1401b6ba2
lea r8, [rsp + 0x60]
mov rdx, r13
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1401b6ba8
mov qword [rsp + 0x40], 4
mov r15d, 7
xor r9d, r9d
mov qword [rsp + 0xd8], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x55]
call fcn.1401e3210
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
je 0x1401b6d0f
xor r13b, r13b
mov rcx, rax
mov byte [rsp + 0x20], r13b
call fcn.1401d3750
mov dword [rsp + 0x28], eax
mov esi, r14d
test eax, eax
jle 0x1401b6cc3
mov r14, qword [rsp + 0x30]
test r13b, r13b
jne 0x1401b6cc0
mov edx, esi
mov rcx, rdi
call fcn.1401d3760
mov rdi, rax
mov ecx, dword [rax]
cmp ecx, 2
jne 0x1401b6c1b
mov byte [rsp + 0x21], 1
jmp 0x1401b6c2d
cmp ecx, 7
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov dword [rsp + 0x24], ebx
cmp ecx, r15d
jne 0x1401b6caf
mov rcx, qword [rdi + 8]
call fcn.1401921d0
mov rcx, qword [rdi + 8]
mov rbx, rax
call fcn.1401da8b0
movsxd rdx, eax
cmp r15d, 2
je 0x1401b6c7c
cmp r15d, 7
jne 0x1401b6cab
cmp rdx, qword [rsp + 0x40]
jne 0x1401b6cab
mov r8, rdx
mov rcx, rbx
lea rdx, [rsp + 0x60]
call fcn.1403583b0
mov ebx, dword [rsp + 0x24]
test eax, eax
jne 0x1401b6caf
mov byte [rsp + 0x20], 1
jmp 0x1401b6caf
mov rax, rbp
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1401b6c80
cmp rdx, rax
jne 0x1401b6cab
mov r9, r12
mov r8, r14
mov rcx, rbx
call fcn.1401d3580
test al, al
movzx r13d, r13b
mov eax, 1
cmovne r13d, eax
mov ebx, dword [rsp + 0x24]
mov rdi, qword [rsp + 0x50]
inc esi
cmp esi, dword [rsp + 0x28]
jl 0x1401b6bf7
xor r14d, r14d
mov rcx, rdi
call fcn.1401f1c80
test r13b, r13b
jne 0x1401b6e9c
cmp byte [rsp + 0x20], r13b
jne 0x1401b6e9c
cmp byte [rsp + 0x21], r13b
jne 0x1401b6cea
test bl, bl
je 0x1401b6d0a
mov r8, qword [rsp + 0x48]
lea rdx, str.SSL:_no_alternative_certificate_subject_name_matches_target_host_name__s
mov rcx, qword [rsp + 0x38]
call fcn.14019c8a0
mov eax, 0x3c
jmp 0x1401b6e9f
mov r13, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov edi, r14d
mov qword [rsp + 0x28], r14
call fcn.1401e2460
mov rbx, rax
test rax, rax
je 0x1401b6e30
mov r8d, ebp
mov edx, reloc.WS2_32.dll_listen
mov rcx, rax
call fcn.1401e2c90
test eax, eax
js 0x1401b6e30
nop word [rax + rax]
mov r8d, eax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
mov esi, eax
call fcn.1401e2c90
test eax, eax
jns 0x1401b6d50
mov edx, esi
mov rcx, rbx
call fcn.1401e2d50
mov rcx, rax
call fcn.1401e31b0
mov rsi, rax
test rax, rax
je 0x1401b6e30
mov rcx, rax
call fcn.1401da8c0
cmp eax, 0xc
jne 0x1401b6dea
mov rcx, rsi
call fcn.1401da8b0
movsxd rdi, eax
test eax, eax
js 0x1401b6df9
lea ecx, [rdi + 1]
xor r8d, r8d
movsxd rcx, ecx
lea rdx, [0x14042f6d5]
call fcn.1401d4a50
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1401b6de2
mov rcx, rsi
call fcn.1401921d0
mov rcx, qword [rsp + 0x28]
mov rdx, rax
mov r8, rdi
call fcn.1403584b0
mov rax, qword [rsp + 0x28]
mov byte [rdi + rax], 0
jmp 0x1401b6df9
mov r14d, 0x1b
jmp 0x1401b6df9
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1401db5d0
mov edi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401b6e2b
inc rbp
cmp byte [rcx + rbp], 0
jne 0x1401b6e03
mov rcx, rbp
call fcn.14019eff0
cmp eax, edi
je 0x1401b6e2b
mov rcx, qword [rsp + 0x38]
lea rdx, str.SSL:_illegal_cert_name_field
call fcn.14019c8a0
jmp 0x1401b6e7d
test r14d, r14d
jne 0x1401b6e83
cmp qword [rsp + 0x28], 0
jne 0x1401b6e4b
mov rcx, qword [rsp + 0x38]
lea rdx, str.SSL:_unable_to_obtain_common_name_from_peer_certificate
call fcn.14019c8a0
jmp 0x1401b6e7d
mov rcx, qword [rsp + 0x28]
mov r9, r12
movsxd rdx, edi
mov r8, r13
call fcn.1401d3580
test al, al
jne 0x1401b6e83
mov r9, qword [rsp + 0x48]
lea rdx, str.SSL:_certificate_subject_name__s_does_not_match_target_host_name__s
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
call fcn.14019c8a0
mov r14d, 0x3c
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401b6e9c
xor r8d, r8d
lea rdx, [0x14042f6d5]
call fcn.1401d4a90
mov eax, r14d
mov rsi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401702c0
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret