Function at 0x1400af030
Capabilities:
Convert ip address from string

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, r9d
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14013aa80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, qword [rcx + 0x20]
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, 7
jb 0x1400af0b9
mov r12, rax
lea rcx, [rax + rdi]
add rcx, 0xfffffffffffffffa
lea rdx, str..onion
call fcn.140090ff0
test eax, eax
jne 0x1400af0a0
lea rcx, [r12 + rdi]
add rcx, 0xfffffffffffffff9
lea rdx, str..onion.
call fcn.140090ff0
test eax, eax
je 0x1400af0b9
lea rdx, str.Not_resolving_.onion_address__RFC_7686_
mov rcx, rsi
call fcn.140079120
mov ebp, 0xffffffff
jmp 0x1400af47a
mov r12, qword [rsp + 0xd0]
mov qword [r12], 0
mov byte [r14 + 0x2de], 0
cmp qword [rsi + 0xe8], 0
je 0x1400af0ee
mov rcx, rsi
mov edx, 3
mov r8d, 2
call fcn.140090f50
mov rcx, rsi
mov rdx, rdi
mov r8d, ebx
call fcn.1400ae9c0
mov r13, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400af193
lea rdx, [0x14011d761]
mov rcx, rsi
mov r8, rdi
call fcn.1400791f0
inc dword [r13 + 0x10]
xor ebp, ebp
cmp qword [rsi + 0xe8], 0
je 0x1400af13c
mov rcx, rsi
mov edx, 3
call fcn.140090f90
test r13, r13
jne 0x1400af476
mov dword [rsp + 0x2c], 0
cmp qword [rsi + 0x9e0], 0
je 0x1400af1a4
mov rcx, rsi
mov dl, 1
call fcn.140085ac0
mov r8, qword [rsi + 0x9e8]
mov rcx, qword [rsi + 0xda0]
xor edx, edx
call qword [rsi + 0x9e0]
mov r12d, eax
mov rcx, rsi
xor edx, edx
call fcn.140085ac0
test r12d, r12d
je 0x1400af1a4
mov ebp, 0xffffffff
jmp 0x1400af47a
mov ebp, 0xffffffff
cmp qword [rsi + 0xe8], 0
jne 0x1400af12f
jmp 0x1400af13c
lea r8, [rsp + 0x28]
mov ecx, 2
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400af1dc
lea rdx, [rsp + 0x28]
mov ecx, 2
mov r8, rdi
mov r9d, ebx
call fcn.1400ae4a0
mov r12, rax
test rax, rax
jne 0x1400af40c
lea r8, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_socket
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400af214
lea rdx, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_socket
mov r8, rdi
mov r9d, ebx
call fcn.1400ae4a0
mov r12, rax
test rax, rax
jne 0x1400af40c
cmp byte [r14 + 0x614], 2
jne 0x1400af27b
mov rax, qword [rsi + 0xd8]
movzx eax, byte [rax + 0x1b0]
test al, al
jne 0x1400af273
mov ecx, reloc.WS2_32.dll_socket
mov edx, 2
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400af256
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov al, 2
jmp 0x1400af258
mov al, 1
mov rcx, qword [rsi + 0xd8]
mov byte [rcx + 0x1b0], al
mov rax, qword [rsi + 0xd8]
movzx eax, byte [rax + 0x1b0]
cmp al, 2
jne 0x1400af189
lea rdx, [0x140119b1a]
mov rcx, rdi
call fcn.140090ff0
test eax, eax
jne 0x1400af29e
mov rcx, rdi
call fcn.1400af550
test al, al
je 0x1400af49a
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, rax
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htons]
mov r14d, eax
lea rdx, str.127.0.0.1
lea r8, [rsp + 0x3c]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400af400
mov r13d, dword [rsp + 0x3c]
add r15, 0x41
mov edx, 1
mov rcx, r15
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_calloc]
test rax, rax
je 0x1400af400
mov r12, rax
movaps xmm0, xmmword [0x140112ad0]
movups xmmword [rax], xmm0
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
add rax, 0x30
mov qword [r12 + 0x20], rax
mov word [r12 + 0x30], 2
mov word [r12 + 0x32], r14w
mov dword [r12 + 0x34], r13d
mov qword [r12 + 0x38], 0
mov rcx, r12
add rcx, 0x40
mov qword [r12 + 0x18], rcx
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rax + 0x4d]
mov edx, 1
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_calloc]
test rax, rax
je 0x1400af403
mov r14, rax
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htons]
mov r15d, eax
lea rdx, [0x14012085b]
lea r8, [rsp + 0x40]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400af403
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140112ae0]
movups xmmword [r14], xmm0
mov dword [r14 + 0x10], 0x1c
mov qword [r14 + 0x28], 0
lea rax, [r14 + 0x30]
mov qword [r14 + 0x20], rax
mov word [r14 + 0x30], reloc.WS2_32.dll_socket
mov word [r14 + 0x32], r15w
mov dword [r14 + 0x34], 0
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [r14 + 0x38], xmm0
mov dword [r14 + 0x48], 0
mov rcx, r14
add rcx, 0x4c
mov qword [r14 + 0x18], rcx
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [r14 + 0x28], r12
mov r12, r14
test r12, r12
jne 0x1400af40c
jmp 0x1400af4ef
xor r12d, r12d
test r12, r12
je 0x1400af4ef
cmp qword [rsi + 0xe8], 0
je 0x1400af429
mov rcx, rsi
mov edx, 3
mov r8d, 2
call fcn.140090f50
mov dword [rsp + 0x20], ebx
xor ebx, ebx
mov rcx, rsi
mov rdx, r12
mov r8, rdi
xor r9d, r9d
call fcn.1400aebb0
mov r13, rax
cmp qword [rsi + 0xe8], 0
je 0x1400af45a
mov rcx, rsi
mov edx, 3
call fcn.140090f90
test r13, r13
jne 0x1400af46c
mov rcx, r12
call fcn.1400ae130
xor r13d, r13d
mov ebx, ebp
mov ebp, ebx
mov r12, qword [rsp + 0xd0]
mov qword [r12], r13
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d2000
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r15b, r15b
je 0x1400af4bd
cmp byte [rsi + 0xa4e], 0
je 0x1400af4bd
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov rdx, rdi
mov r8d, ebx
call fcn.1400cafa0
jmp 0x1400af4e3
mov rcx, rsi
mov rdx, r14
call fcn.1400cc660
test al, al
je 0x1400af189
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov rdx, rdi
mov r8d, ebx
call fcn.1400ae7f0
mov r12, rax
test r12, r12
jne 0x1400af40c
cmp dword [rsp + 0x2c], 0
je 0x1400af512
mov rax, qword [rsi + 0x20]
cmp byte [rax + 0x2de], 0
je 0x1400af51c
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400cb820
jmp 0x1400af529
mov r13, qword [rsp + 0x30]
jmp 0x1400af46a
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14007c120
test eax, eax
jne 0x1400af189
mov r13, qword [rsp + 0x30]
xor ebx, ebx
test r13, r13
sete bl
jmp 0x1400af46c