Function at 0x140021860
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rsi
sub rsp, 0x128
mov rax, qword [0x140091800]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0xa0], 0
mov rbp, r8
mov rsi, rdx
test rdx, rdx
je 0x140021b8a
test r8, r8
jne 0x1400218a6
mov rax, qword [rdx]
test rax, rax
cmovne rbp, rax
test byte [rdx + 0x28], 4
jne 0x140021b8a
test rbp, rbp
je 0x140021b8a
cmp byte [rbp], 0
je 0x140021b8a
mov qword [rsp + 0x108], r14
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x158], rbx
lea r8, [rsp + 0xa8]
mov qword [rsp + 0x120], rdi
mov rdx, rbp
mov qword [rsp + 0x118], r12
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x100], r15
call fcn.140033270
mov r14d, eax
test eax, eax
jne 0x140021b34
mov rdx, qword [rsp + 0xa8]
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 qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov rsi, qword [rsi + 8]
test rsi, rsi
je 0x140021af4
mov rdi, qword [rsi]
lea rdx, [rsp + 0xc0]
mov rsi, qword [rsi + 0x10]
lea rbx, [0x140071ba0]
mov r15, qword [rsp + 0xa8]
mov rcx, qword [rdi + 0x20]
call fcn.140032a20
test eax, eax
jne 0x140021b77
mov rdx, qword [rdi + 0x10]
lea r8, [rsp + 0xe8]
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, qword [rdi]
lea r12, [0x14007393c]
cmp eax, 1
lea r13, [0x140073940]
lea r8, [rsp + 0xe8]
mov ecx, reloc.WS2_32.dll_socket
cmovne r12, rbx
cmovne r13, rbx
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
lea rcx, [0x14007393c]
mov eax, dword [rdi + 0x1c]
cmovne rcx, rbx
mov qword [rsp + 0xb0], rcx
lea rcx, [0x140073940]
cmovne rcx, rbx
mov qword [rsp + 0xb8], rcx
lea rcx, [0x140073d70]
cmp eax, 8
je 0x1400219fd
cmp eax, 0x10
je 0x1400219f4
cmp eax, 0x20
mov r9, rbx
cmove r9, rcx
jmp 0x140021a04
lea r9, [0x140073d6c]
jmp 0x140021a04
lea r9, [0x140073d68]
mov eax, dword [rdi + 0xc]
cmp eax, 8
je 0x140021a26
cmp eax, 0x10
je 0x140021a1d
cmp eax, 0x20
mov r8, rbx
cmove r8, rcx
jmp 0x140021a2d
lea r8, [0x140073d6c]
jmp 0x140021a2d
lea r8, [0x140073d68]
mov eax, dword [rdi + 0x2c]
movzx ecx, byte [rdi + 0x28]
mov edx, dword [rsp + 0xd4]
mov r11d, dword [rsp + 0xd0]
add edx, 0x76c
movzx r10d, word [rdi + 0x18]
inc r11d
movzx ebx, word [rdi + 8]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x90], ecx
mov rcx, r15
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0x70], eax
mov rax, qword [rdi + 0x10]
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], edx
lea rdx, str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__d_n
mov dword [rsp + 0x58], r10d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r9
mov r9, qword [rsp + 0xb8]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
call fcn.1400151c0
test rsi, rsi
jne 0x140021938
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140021b3c
mov rdx, rbp
call fcn.140033160
test eax, eax
je 0x140021b34
mov r14d, reloc.WS2_32.dll_socket
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140021b3c
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
mov rcx, qword [rsp + 0xa0]
call qword [fcn.14006f2ae]
mov r15, qword [rsp + 0x100]
mov eax, r14d
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x158]
jmp 0x140021b8c
mov rcx, qword [rsp + 0xa8]
mov r14d, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140021b21
xor eax, eax
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14006e1a0
add rsp, 0x128
pop rsi
pop rbp
ret