Function at 0x14014c150
Capabilities:
Convert ip address from string

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2b8
mov rbp, qword [0x14048f870]
mov r12, qword [rcx + 0x1238]
mov dword [rsp + 0x50], 0
mov rbx, rcx
and byte [rcx + 0x133a], 0xf7
test r12, r12
je 0x14014c3b6
nop dword [rax]
mov rdi, qword [r12]
test rdi, rdi
je 0x14014c3a8
movzx eax, byte [rdi]
cmp al, 0x2d
je 0x14014c368
mov byte [rsp + 0x37], 1
mov rsi, rdi
cmp al, 0x2b
jne 0x14014c1bd
mov byte [rsp + 0x37], 0
lea rsi, [rdi + 1]
mov edx, 0x3a
mov rcx, rsi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14014c867
mov rdx, rax
sub rdx, rsi
cmp rdx, 0xff
jg 0x14014c867
lea r13, [rsp + 0xa0]
mov rdi, r13
cmp rdx, 8
jb 0x14014c201
mov rcx, rdx
shr rcx, 3
rep movsq qword [rdi], qword [rsi]
xor ecx, ecx
test dl, 4
je 0x14014c211
mov ecx, dword [rsi]
mov dword [rdi], ecx
mov ecx, 4
test dl, 2
je 0x14014c224
movzx r8d, word [rsi + rcx]
mov word [rdi + rcx], r8w
add rcx, 2
test dl, 1
je 0x14014c232
movzx r8d, byte [rsi + rcx]
mov byte [rdi + rcx], r8b
lea rsi, [rax + 1]
mov byte [rsp + rdx + 0xa0], 0
mov r8d, 0xa
lea rdx, [rsp + 0x58]
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp eax, 0xffff
ja 0x14014c658
mov r14, qword [rsp + 0x58]
cmp r14, rsi
je 0x14014c658
cmp byte [r14], 0x3a
jne 0x14014c658
mov dword [rsp + 0x50], eax
lea rax, [r14 + 1]
xor esi, esi
lea r15, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov rdi, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], rax
nop
cmp byte [rdi], 0
je 0x14014c413
lea r14, [rdi + 1]
mov edx, 0x2c
mov rcx, r14
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14014c5f0
mov qword [rsp + 0x58], rax
cmp byte [rdi + 1], 0x5b
mov r8, rax
je 0x14014c3e0
mov rdi, r8
sub rdi, r14
je 0x14014c407
cmp rdi, 0x3f
ja 0x14014c783
mov r8, rdi
mov rdx, r14
mov rcx, r15
call sub.msvcrt.dll_memcpy
mov r14, qword [rsp + 0x40]
mov byte [rsp + rdi + 0x60], 0
mov rdx, r15
mov edi, dword [rsp + 0x50]
mov ecx, 2
mov r8, r14
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14014c600
lea r14, [rsp + 0x1a0]
mov rdx, r15
mov ecx, 0x17
mov r8, r14
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14014c640
mov r8, r15
lea rdx, str.Resolve_address__s_found_illegal
mov rcx, rbx
mov r15, qword [rsp + 0x38]
call fcn.140123250
mov r8, qword [r12]
jmp 0x14014c78c
lea rsi, [rsp + 0xa0]
lea rcx, [rdi + 1]
lea r9, [rsp + 0x50]
mov r8, rsi
lea rdx, str._255_:_:_d
call fcn.1401153f0
cmp eax, 2
je 0x14014c678
mov r8, qword [r12]
lea rdx, str.Couldnt_parse_CURLOPT_RESOLVE_removal_entry__s
mov rcx, rbx
call fcn.140123250
nop dword [rax]
mov r12, qword [r12 + 8]
test r12, r12
jne 0x14014c190
mov qword [rbx + 0x1238], 0
xor eax, eax
add rsp, 0x2b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp rax, r14
je 0x14014c783
cmp byte [rax - 1], 0x5d
jne 0x14014c783
lea r8, [rax - 1]
lea r14, [rdi + 2]
mov rdi, r8
sub rdi, r14
jne 0x14014c2e1
mov rdi, rax
cmp byte [rdi], 0
jne 0x14014c2a9
cmp qword [rsp + 0x38], 0
je 0x14014c658
mov rcx, r13
lea rdi, [rsp + 0x1a0]
mov esi, dword [rsp + 0x50]
call sub.msvcrt.dll_strlen
mov rcx, rdi
test rax, rax
je 0x14014c463
lea rcx, [rdi + rax]
mov rdx, r13
mov rax, rdi
nop dword [rax]
movzx r8d, byte [rdx]
add rax, 1
add rdx, 1
movzx r8d, byte [rbp + r8]
mov byte [rax - 1], r8b
cmp rcx, rax
jne 0x14014c448
mov r9d, esi
lea r8, [0x1403f49e1]
mov edx, 7
call fcn.14011e860
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rsi, rax
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14014c4b8
test byte [rax + 4], 8
je 0x14014c4b8
mov r10, qword [rax + 0x10]
test r10, r10
je 0x14014c4b8
mov r9, qword [rax + 0x20]
mov r8d, 2
mov edx, 3
mov rcx, rbx
call r10
nop word [rax + rax]
add rsi, 1
mov rcx, qword [rbx + 0xc0]
mov rdx, rdi
mov r8, rsi
call fcn.140143c10
test rax, rax
je 0x14014c4fc
mov r9d, dword [rsp + 0x50]
mov r8, r13
lea rdx, str.RESOLVE__s:_d_is___old_addresses_discarded
mov rcx, rbx
call fcn.140123250
mov rcx, qword [rbx + 0xc0]
mov r8, rsi
mov rdx, rdi
call fcn.1402c1c10
mov r9d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov r8, r13
mov rcx, rbx
call fcn.14014bb50
test rax, rax
je 0x14014c810
mov esi, dword [rax + 0x10]
cmp byte [rsp + 0x37], 0
mov rcx, qword [rbx + 0xe0]
lea edx, [rsi - 1]
jne 0x14014c7d8
mov dword [rax + 0x10], edx
test rcx, rcx
je 0x14014c7c8
test byte [rcx + 4], 8
je 0x14014c7c8
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14014c7c8
mov r8, qword [rcx + 0x20]
mov edx, 3
mov rcx, rbx
call rax
cmp byte [rsp + 0x37], 0
je 0x14014c7c8
lea rax, [0x1403f49e0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov r8, r13
mov rcx, rbx
mov r9d, dword [rsp + 0x50]
lea rdx, str.Added__s:_d:_s_to_DNS_cache_s
mov qword [rsp + 0x20], rax
call fcn.140123250
cmp byte [rsp + 0xa0], 0x2a
jne 0x14014c3a8
cmp byte [rsp + 0xa1], 0
jne 0x14014c3a8
mov r9d, dword [rsp + 0x50]
mov r8, r13
lea rdx, str.RESOLVE__s:_d_is_wildcard__enabling_wildcard_checks
mov rcx, rbx
call fcn.140123250
or byte [rbx + 0x133a], 8
mov r12, qword [r12 + 8]
test r12, r12
jne 0x14014c190
jmp 0x14014c3b6
mov rcx, r14
call sub.msvcrt.dll_strlen
add rax, r14
jmp 0x14014c2c3
mov r9d, edi
mov r8, r15
mov rdx, r14
mov ecx, 2
call fcn.140142b20
test rax, rax
je 0x14014c341
test rsi, rsi
je 0x14014c638
mov qword [rsi + 0x28], rax
mov rdi, qword [rsp + 0x58]
mov rsi, rax
jmp 0x14014c2a0
mov qword [rsp + 0x38], rax
jmp 0x14014c625
mov r9d, edi
mov r8, r15
mov rdx, r14
mov ecx, 0x17
call fcn.140142b20
jmp 0x14014c613
mov r8, qword [r12]
lea rdx, str.Couldnt_parse_CURLOPT_RESOLVE_entry__s
mov rcx, rbx
call fcn.1401234a0
mov eax, 0x31
jmp 0x14014c3c3
mov rcx, rsi
mov r13d, dword [rsp + 0x50]
lea rdi, [rsp + 0x1a0]
call sub.msvcrt.dll_strlen
test rax, rax
je 0x14014c85f
mov r9, qword [0x14048f870]
lea rcx, [rdi + rax]
mov r8, rsi
mov rax, rdi
nop word [rax + rax]
movzx edx, byte [r8]
add rax, 1
add r8, 1
movzx edx, byte [r9 + rdx]
mov byte [rax - 1], dl
cmp rcx, rax
jne 0x14014c6b0
mov r9d, r13d
lea r8, [0x1403f49e1]
mov edx, 7
call fcn.14011e860
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rsi, rax
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14014c6fa
test byte [rax + 4], 8
jne 0x14014c760
mov rcx, qword [rbx + 0xc0]
lea r8, [rsi + 1]
mov rdx, rdi
call fcn.1402c1c10
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14014c3a8
test byte [rax + 4], 8
je 0x14014c3a8
mov r9, qword [rax + 0x18]
test r9, r9
je 0x14014c3a8
mov r8, qword [rax + 0x20]
mov edx, 3
mov rcx, rbx
call r9
mov r12, qword [r12 + 8]
test r12, r12
jne 0x14014c190
jmp 0x14014c3b6
mov r10, qword [rax + 0x10]
test r10, r10
je 0x14014c6fa
mov r9, qword [rax + 0x20]
mov r8d, 2
mov edx, 3
mov rcx, rbx
call r10
jmp 0x14014c6fa
mov r15, qword [rsp + 0x38]
mov r8, qword [r12]
lea rdx, str.Couldnt_parse_CURLOPT_RESOLVE_entry__s
mov rcx, rbx
call fcn.1401234a0
test r15, r15
je 0x14014c66b
mov rbx, qword [0x14048b5b0]
nop dword [rax + rax]
mov rcx, r15
mov r15, qword [r15 + 0x28]
call qword [rbx]
test r15, r15
jne 0x14014c7b0
jmp 0x14014c66b
lea rax, str.__non_permanent_
jmp 0x14014c575
mov qword [rax + 8], 0
mov dword [rax + 0x10], edx
test rcx, rcx
je 0x14014c56e
test byte [rcx + 4], 8
je 0x14014c56e
mov rax, qword [rcx + 0x18]
test rax, rax
jne 0x14014c555
jmp 0x14014c56e
mov rax, qword [rbx + 0xe0]
mov r15, qword [rsp + 0x38]
test rax, rax
je 0x14014c840
test byte [rax + 4], 8
je 0x14014c840
mov r10, qword [rax + 0x18]
test r10, r10
je 0x14014c840
mov r8, qword [rax + 0x20]
mov edx, 3
mov rcx, rbx
call r10
nop
mov rbx, qword [0x14048b5b0]
mov rcx, r15
mov r15, qword [r15 + 0x28]
call qword [rbx]
test r15, r15
jne 0x14014c847
mov eax, 0x1b
jmp 0x14014c3c3
mov rcx, rdi
jmp 0x14014c6c9
mov r8, rdi
lea rdx, str.Couldnt_parse_CURLOPT_RESOLVE_entry__s
mov rcx, rbx
call fcn.1401234a0
jmp 0x14014c66b