Function at 0x140019f80
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rdx
push r13
sub rsp, 0x80
mov r13, r8
mov r11, rdx
test r8, r8
jne 0x140019fa5
xor eax, eax
add rsp, 0x80
pop r13
ret
mov qword [rsp + 0x90], rbx
test ecx, ecx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r14
mov r14d, 4
mov esi, r14d
cmovne esi, ecx
movzx ecx, byte [r11]
xor r12d, r12d
mov r8d, r12d
mov edx, r12d
mov r10d, r12d
test cl, cl
je 0x14001a007
mov r9, r11
movabs rbx, 0x3f0000003f
cmp cl, 0x2e
jne 0x14001a06a
inc r8d
cmp r8d, 3
jle 0x14001a09e
mov edi, reloc.WS2_32.dll_socket
mov qword [rsp + 0x50], r15
mov r15, qword [0x1400588c8]
lea ebx, [rdi - 0x15]
test r15, r15
je 0x14001a165
cmp esi, 6
je 0x14001a031
mov r14d, ebx
cmp esi, 0x40
jne 0x14001a034
mov r14d, edi
mov eax, 4
mov word [r13], r14w
mov ebp, 8
cmp r14w, di
mov r8d, ebp
mov rdx, r11
cmovne r8d, eax
mov ecx, r14d
add r8, r13
call r15
test eax, eax
je 0x14001a11f
mov eax, r14d
jmp 0x14001a213
cmp cl, 0x3a
jne 0x14001a078
inc edx
cmp edx, 7
jg 0x14001a007
jmp 0x14001a09e
cmp cl, 0x25
je 0x14001a09b
lea eax, [rcx - 0x41]
cmp al, 0x25
ja 0x14001a08d
movzx eax, al
bt rbx, rax
jb 0x14001a09b
sub cl, 0x30
cmp cl, 9
ja 0x14001a007
jmp 0x14001a09e
inc r10d
movzx ecx, byte [r9 + 1]
inc r9
test cl, cl
jne 0x140019ff5
mov edi, reloc.WS2_32.dll_socket
cmp r8d, 3
jne 0x14001a0cb
test edx, edx
jne 0x14001a0cb
test r10d, r10d
jne 0x14001a007
lea ebx, [rdi - 0x15]
jmp 0x14001a0d6
cmp edx, 2
jl 0x14001a007
mov ebx, edi
cmp esi, r14d
jne 0x14001a0e7
cmp ebx, 2
je 0x14001a0e7
xor eax, eax
jmp 0x14001a218
cmp esi, 6
mov r8d, 8
mov rdx, r11
cmove bx, di
movzx ecx, bx
cmp ecx, edi
mov word [r13], cx
cmovne r8, r14
add r8, r13
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14001a117
movzx r12d, word [r13]
mov eax, r12d
jmp 0x14001a218
lea eax, [rsi - 4]
test eax, 0xfffffffd
je 0x14001a211
mov rdx, qword [rsp + 0x98]
cmp esi, 0x2e
mov eax, 4
cmove ebx, edi
cmp bx, di
mov word [r13], bx
mov ecx, ebx
cmovne rbp, rax
add rbp, r13
mov r8, rbp
call r15
test eax, eax
cmovne r12d, ebx
mov eax, r12d
jmp 0x14001a213
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
cmp esi, 6
je 0x14001a193
mov dword [rsp + 0x24], ebx
cmp esi, 0x40
jne 0x14001a197
mov dword [rsp + 0x24], edi
lea r9, [rsp + 0xa0]
xor edx, edx
lea r8, [rsp + 0x20]
mov rcx, r11
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001a1e8
cmp esi, 0x40
je 0x14001a1c0
cmp esi, 0x2e
jne 0x14001a211
cmp esi, 0x40
mov rcx, qword [rsp + 0x98]
lea r9, [rsp + 0xa0]
cmove edi, ebx
lea r8, [rsp + 0x20]
xor edx, edx
mov dword [rsp + 0x24], edi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14001a211
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14001a211
mov rax, qword [rbx + 0x20]
movzx ecx, word [rax]
cmp cx, 2
je 0x14001a243
cmp cx, 0x17
je 0x14001a243
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x58]
add rsp, 0x80
pop r13
ret
mov word [r13], cx
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [rbx + 0x20]
mov ebp, 8
mov r8, r14
cmp word [r9], 0x17
cmove r8, rdx
mov edx, ebp
cmovne rdx, r14
add rdx, r9
cmp cx, 0x17
cmovne rbp, r14
add rbp, r13
mov rcx, rbp
call fcn.140024730
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx eax, word [r13]
jmp 0x14001a213