Function at 0x140015780
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400867c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov rbx, rcx
mov rcx, qword [rdx + 0x18]
mov r14d, r8d
mov edx, dword [rax + 8]
and edx, 0xa
cmp dl, 0xa
jne 0x1400157c8
mov rdi, qword [rcx + 0xd8]
mov rsi, qword [rcx + 0xe0]
mov ebp, dword [rcx + 0xe8]
jmp 0x1400157d6
mov rdi, qword [rcx + 0x50]
mov rsi, qword [rcx + 0x58]
mov ebp, dword [rcx + 0x764]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x1400159ab
mov r9, qword [rbx]
test r9, r9
je 0x14001581b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140015813
inc rax
test ecx, ecx
jne 0x140015800
test edx, edx
je 0x1400159ab
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x14001582a
call qword [case.0x14000f29b.0]
mov rcx, qword [rbx + 0x10]
call qword [case.0x14000f29b.0]
mov rcx, qword [rbx]
call qword [case.0x14000f29b.0]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
call qword [case.0x14000f29b.2]
mov qword [rbx], rax
mov r9, rax
test rax, rax
jne 0x14001589e
mov rcx, qword [rbx + 8]
cmp rcx, rax
je 0x140015872
call qword [case.0x14000f29b.0]
mov rcx, qword [rbx + 0x10]
call qword [case.0x14000f29b.0]
mov rcx, qword [rbx]
call qword [case.0x14000f29b.0]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
jmp 0x1400159b4
test rsi, rsi
je 0x1400158e3
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x1400158c3
inc rdi
test eax, eax
jne 0x1400158b0
test edx, edx
je 0x1400158e3
mov rcx, rsi
call qword [case.0x14000f29b.2]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400158e7
cmp rax, qword [rbx]
je 0x140015872
mov rcx, rax
jmp 0x14001586c
mov qword [rbx + 8], r9
mov rdi, qword [rbx]
test rdi, rdi
je 0x140015937
cmp byte [rdi], r15b
je 0x140015937
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140015917
mov dword [rbx + 0x18], 1
jmp 0x1400159ab
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140015937
mov dword [rbx + 0x18], 2
jmp 0x1400159ab
mov rax, qword [rbx]
mov dword [rbx + 0x18], r15d
cmp byte [rax], r15b
je 0x1400159ab
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140015950
test rdi, rdi
je 0x140015968
cmp byte [rax + rdi - 1], 0x2e
jne 0x140015968
dec rdi
cmp rdi, 0xffff
jae 0x1400159ab
lea rdx, [rdi + 1]
mov ecx, 1
call qword [case.0x14000f29b.3]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140015995
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x14001586a
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.1400236b0
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [rbx + 0x1c], ebp
xor eax, eax
mov dword [rbx + 0x20], r14d
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400665c0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret