Function at 0x140030e00
Capabilities:
Convert ip address from string
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov qword [rsp + 0xd8], 0
mov rbx, rdx
mov rsi, r8
test rdx, rdx
je 0x140030e9c
mov eax, dword [rdx + 0x28]
and eax, 4
test r8, r8
je 0x140030e90
xor edi, edi
test eax, eax
jne 0x140030e71
xor edi, edi
cmp byte [rsi], 0
je 0x140030e71
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xd0]
mov rdx, rsi
call sym.Curl_fopen
mov edi, eax
test eax, eax
je 0x140030ea0
mov rcx, qword [rsp + 0xd8]
mov rax, qword [0x14011e7f0]
call qword [rax]
mov eax, edi
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rdx]
test rsi, rsi
je 0x140030e9c
test eax, eax
je 0x140030e3b
xor edi, edi
jmp 0x140030e71
mov r9, qword [rsp + 0xd0]
mov r8d, 0x75
mov edx, 1
lea rcx, str._Your_alt_svc_cache._https:__curl.se_docs_alt_svc.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call sym.fwrite
mov r14, qword [rbx + 8]
test r14, r14
je 0x14003112d
lea rax, [rsp + 0xf0]
mov dword [rsp + 0xcc], edi
lea r13, [0x1400f9295]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x180], rsi
nop word [rax + rax]
mov rbx, qword [r14]
mov rdx, qword [rsp + 0xc0]
mov r14, qword [r14 + 0x10]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rbx + 0x20]
call sym.Curl_gmtime
mov r12d, eax
test eax, eax
je 0x140030f50
mov rcx, qword [rsp + 0xd0]
call sym.fclose
mov rcx, qword [rsp + 0xd8]
mov edi, r12d
test rcx, rcx
je 0x140030e68
call sym.unlink
jmp 0x140030e60
mov rdx, qword [rbx + 0x10]
lea rbp, [rsp + 0xe0]
mov ecx, 0x17
lea rdi, [0x1400f9299]
mov r8, rbp
lea rsi, [0x1400f929b]
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8, rbp
mov rdx, qword [rbx]
mov ecx, 0x17
cmp eax, 1
cmovne rdi, r13
cmovne rsi, r13
call qword [sym.imp.WS2_32.dll_inet_pton]
lea rdx, [0x1400f9299]
mov r8d, dword [rbx + 0x1c]
movzx r12d, byte [rbx + 0x28]
cmp eax, 1
mov eax, dword [rbx + 0x2c]
lea r9, [0x1400f929b]
movzx ebp, word [rbx + 0x18]
cmovne rdx, r13
cmovne r9, r13
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0xb4], eax
mov eax, dword [rsp + 0x100]
add eax, 1
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0x104]
lea ecx, [rax + 0x76c]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0xb8], rax
lea rax, [0x1400f928f]
cmp r8d, 0x10
je 0x14003104f
lea rax, [0x1400f9292]
cmp r8d, 0x20
je 0x14003104f
cmp r8d, 8
lea rax, [0x1400f928c]
cmovne rax, r13
movzx r11d, word [rbx + 8]
mov r10, qword [rbx]
lea r8, [0x1400f928f]
mov ebx, dword [rbx + 0xc]
cmp ebx, 0x10
je 0x140031080
lea r8, [0x1400f9292]
cmp ebx, 0x20
je 0x140031080
cmp ebx, 8
lea r8, [0x1400f928c]
cmovne r8, r13
mov ebx, dword [rsp + 0xa4]
mov qword [rsp + 0x50], rdi
mov rdi, qword [rsp + 0xb8]
mov dword [rsp + 0x60], ecx
mov rcx, r15
mov dword [rsp + 0x98], ebx
mov ebx, dword [rsp + 0xa8]
mov qword [rsp + 0x28], rdx
lea rdx, str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__u_n
mov dword [rsp + 0x88], ebx
mov ebx, dword [rsp + 0xac]
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x80], ebx
mov ebx, dword [rsp + 0xb0]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x78], ebx
mov ebx, dword [rsp + 0xb4]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x70], ebx
mov ebx, dword [rsp + 0xc8]
mov dword [rsp + 0x90], r12d
mov dword [rsp + 0x68], ebx
call sym.curl_mfprintf
test r14, r14
jne 0x140030ef8
mov edi, dword [rsp + 0xcc]
mov rsi, qword [rsp + 0x180]
mov rcx, qword [rsp + 0xd0]
call sym.fclose
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140030e68
mov rdx, rsi
call sym.Curl_rename
test eax, eax
je 0x140030e60
mov r12d, 0x17
jmp 0x140030f2c