Function at 0x1801200d0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rbp + 0x7f]
mov r14, 0xffffffffffffffff
mov r15, qword [rcx + 0x20]
mov r12d, r8d
mov qword [rbp - 0x31], rax
mov rsi, rdx
mov rax, r14
mov byte [rbp - 0x51], r9b
mov rdi, rcx
mov r13d, r14d
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x180120120
mov qword [rsp + 0xf8], rbx
cmp rax, 7
jb 0x18012017a
lea rbx, [rdx + rax]
lea rcx, [rbx - 6]
lea rdx, str..onion
call fcn.1800c5e90
test eax, eax
jne 0x180120163
lea rcx, [rbx - 7]
lea rdx, str..onion.
call fcn.1800c5e90
test eax, eax
je 0x18012017a
lea rdx, str.Not_resolving_.onion_address__RFC_7686_
mov rcx, rdi
call fcn.1800c0e70
mov eax, r14d
jmp 0x1801205f2
mov rax, qword [rbp - 0x31]
xor ebx, ebx
mov qword [rax], rbx
lea eax, [rbx + 2]
mov byte [r15 + 0x30e], bl
cmp qword [rdi + 0xe8], rbx
je 0x1801201a4
mov r8d, eax
lea edx, [rbx + 3]
mov rcx, rdi
call fcn.1800c74a0
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
call fcn.1801215a0
mov qword [rbp - 0x49], rax
test rax, rax
je 0x1801201d7
mov r8, rsi
lea rdx, [0x1803d16c0]
mov rcx, rdi
call fcn.1800c0f50
mov rax, qword [rbp - 0x49]
mov r13d, ebx
inc dword [rax + 0x10]
cmp qword [rdi + 0xe8], rbx
je 0x1801201ed
mov edx, 3
mov rcx, rdi
call fcn.1800c74e0
cmp qword [rbp - 0x49], rbx
jne 0x1801205e4
mov dword [rbp - 0x41], ebx
cmp qword [rdi + 0x9d0], rbx
je 0x180120234
mov dl, 1
mov rcx, rdi
call fcn.1800adfa0
mov r8, qword [rdi + 0x9d8]
xor edx, edx
mov rcx, qword [r15 + 0x70]
call qword [rdi + 0x9d0]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1800adfa0
test ebx, ebx
jne 0x180120172
mov ebx, 2
lea r8, [rbp - 0x3d]
mov ecx, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x180120269
mov r9d, r12d
lea rdx, [rbp - 0x3d]
mov r8, rsi
mov ecx, ebx
call fcn.18012eaf0
mov rbx, rax
test rax, rax
jne 0x18012054a
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rbp - 9]
mov ecx, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x18012029e
mov r9d, r12d
lea rdx, [rbp - 9]
mov r8, rsi
mov ecx, ebx
call fcn.18012eaf0
mov rbx, rax
test rax, rax
jne 0x18012054a
cmp byte [r15 + 0x644], 2
jne 0x1801202e7
mov rax, qword [rdi + 0xd8]
cmp byte [rax + 0x1a8], 0
jne 0x1801202d3
xor ecx, ecx
call fcn.180120650
test al, al
mov rax, qword [rdi + 0xd8]
setne cl
inc cl
mov byte [rax + 0x1a8], cl
mov rax, qword [rdi + 0xd8]
cmp byte [rax + 0x1a8], 2
jne 0x180120172
lea rdx, str.localhost
mov rcx, rsi
call fcn.1800c5e90
test eax, eax
jne 0x1801203b1
mov rax, r14
inc rax
cmp byte [rsi + rax], 0
jne 0x180120301
cmp rax, 0xa
jb 0x180120331
lea rdx, [rsi - 0xa]
mov r8d, 0xa
add rdx, rax
lea rcx, str..localhost
call fcn.1800c5f00
test eax, eax
jne 0x1801203b1
cmp byte [rbp - 0x51], 0
je 0x180120354
cmp byte [rdi + 0xa45], 0
je 0x180120354
lea r9, [rbp - 0x41]
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
call fcn.1801b85c0
jmp 0x180120379
mov rdx, r15
mov rcx, rdi
call fcn.1801b85b0
test al, al
je 0x180120172
lea r9, [rbp - 0x41]
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
call fcn.18012ee70
mov rbx, rax
test rax, rax
jne 0x18012054a
cmp dword [rbp - 0x41], 0
je 0x1801205e4
mov rax, qword [rdi + 0x20]
lea rdx, [rbp - 0x49]
mov rcx, rdi
cmp byte [rax + 0x30e], 0
je 0x1801205b9
call fcn.1801b8760
jmp 0x1801205be
mov rbx, r14
cmp byte [rsi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1801203b4
mov r15d, 2
mov qword [rbp + 0xf], 0
movzx ecx, r12w
mov word [rbp + 7], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp - 0x39]
mov ecx, r15d
lea rdx, str.127.0.0.1
mov word [rbp + 9], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x180120385
mov eax, dword [rbp - 0x39]
lea rdx, [rbx + 0x41]
lea ecx, [r15 - 1]
mov dword [rbp + 0xb], eax
call qword [fcn.18029d644]
mov r15, rax
test rax, rax
je 0x180120385
movups xmm0, xmmword [rbp + 7]
lea rcx, [rax + 0x30]
mov dword [rax], 0
mov qword [rax + 0x20], rcx
mov rdx, rsi
mov dword [rax + 4], 2
mov dword [rax + 8], 1
mov dword [rax + 0xc], 6
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
movups xmmword [rcx], xmm0
add rcx, 0x10
mov qword [rax + 0x18], rcx
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180120460
cmp byte [rsi + r14 + 1], 0
lea r14, [r14 + 1]
jne 0x180120471
lea rdx, [r14 + 0x4d]
mov ecx, 1
call qword [fcn.18029d644]
mov rbx, rax
test rax, rax
je 0x180120547
mov eax, reloc.WS2_32.dll_socket
movzx ecx, r12w
mov word [rbp - 0x29], ax
call qword [sym.imp.WS2_32.dll_htons]
xor r14d, r14d
lea r8, [rbp + 7]
lea rdx, [0x1803c7b14]
mov word [rbp - 0x27], ax
mov dword [rbp - 0x25], r14d
lea ecx, [r14 + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x180120547
movups xmm1, xmmword [rbp + 7]
lea rax, [rbx + 0x30]
mov dword [rbx], r14d
mov dword [rbx + 4], reloc.WS2_32.dll_socket
lea rcx, [rax + 0x1c]
mov dword [rbx + 8], 1
mov rdx, rsi
mov dword [rbx + 0xc], 6
mov dword [rbx + 0x10], 0x1c
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x20], rax
movups xmmword [rbp - 0x21], xmm1
movups xmm0, xmmword [rbp - 0x29]
unpckhpd xmm1, xmm1
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov dword [rax + 0x18], r14d
mov qword [rbx + 0x18], rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180120530
mov qword [rbx + 0x28], r15
jmp 0x18012054a
mov rbx, r15
cmp qword [rdi + 0xe8], 0
je 0x180120565
mov edx, 3
mov rcx, rdi
lea r8d, [rdx - 1]
call fcn.1800c74a0
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180120990
cmp qword [rdi + 0xe8], 0
mov qword [rbp - 0x49], rax
je 0x18012059a
mov edx, 3
mov rcx, rdi
call fcn.1800c74e0
mov rax, qword [rbp - 0x49]
test rax, rax
jne 0x1801205a9
mov rcx, rbx
call fcn.18012eac0
jmp 0x1801205e4
xor r13d, r13d
mov rdx, rax
mov rcx, rdi
call fcn.180121330
jmp 0x1801205e4
call fcn.1800b34a0
mov rdx, qword [rbp - 0x49]
mov ebx, eax
test rdx, rdx
je 0x1801205d1
mov rcx, rdi
call fcn.180121330
test ebx, ebx
jne 0x180120172
xor r13d, r13d
cmp qword [rbp - 0x49], r13
sete r13b
mov rax, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x49]
mov qword [rax], rcx
mov eax, r13d
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800a5910
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret