Function at 0x140080c60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2040
call fcn.1400fc7a0
sub rsp, rax
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbp, rdx
mov rdi, rcx
mov rcx, rbp
lea rdx, str.ftp:
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140080f29
mov r8d, 5
lea rdx, str.http:
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140080f29
mov r8d, 6
lea rdx, str.https:
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140080f29
mov r8d, 4
lea rdx, str.ipp:
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140080f29
mov r8d, 7
lea rdx, str.mailto:
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140080f29
mov r8d, 5
lea rdx, str.news:
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140080f29
mov rcx, rdi
call fcn.140079040
mov r8d, 0x800
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.14004dff0
mov edx, 0x23
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_strrchr
mov r14, rax
test rax, rax
je 0x140080d78
mov byte [rax], 0
inc r14
mov rax, qword [rdi + 0x990]
test rax, rax
je 0x140080d93
lea rdx, [rsp + 0x30]
mov rcx, rdi
call rax
mov rbp, rax
jmp 0x140080d9a
lea rbp, [rdi + 0x11b8]
test rbp, rbp
je 0x1400811a0
mov rcx, rdi
mov qword [rsp + 0x2080], r15
call fcn.14007fb90
mov r8d, 0x800
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x11b8]
call fcn.14004dff0
mov r8d, 0x800
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x9b8]
call fcn.14004dff0
mov edx, 0x2f
lea rcx, [rdi + 0x9b8]
call sub.VCRUNTIME140.dll_strrchr
lea rcx, [rdi + 0x9b8]
test rax, rax
jne 0x140080e02
mov byte [rcx], al
jmp 0x140080e10
cmp rax, rcx
jbe 0x140080e10
cmp byte [rax - 1], 0x2f
je 0x140080e10
mov byte [rax], 0
mov r8d, 5
lea rdx, str.file:
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140080e2e
add rbp, 5
lea rdx, [0x140101508]
mov rcx, rbp
xor esi, esi
call fcn.140042140
mov r15, rax
test rax, rax
je 0x140080e9e
xor edx, edx
lea r8d, [rsi + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, r15
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea ecx, [rbx + 1]
movsxd rcx, ecx
lea edx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r8, rbx
lea edx, [rsi + 1]
mov rcx, rax
mov qword [rdi + 0x4c0], rax
mov r9, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140080ee6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r9, rbp
lea r8, str._HTML__HEAD__TITLE_Error__TITLE___HEAD__BODY__H1_Error__H1__P_Unable_to_follow_the_link___s_____s.__P___BODY_
lea rcx, [rsp + 0x1030]
mov qword [rsp + 0x20], rax
mov edx, 0x1000
call fcn.14005ba90
lea rcx, [rsp + 0x1030]
call fcn.14004deb0
mov qword [rdi + 0x4c0], rax
mov esi, 0xffffffff
mov rcx, rdi
mov byte [0x14016867c], 1
call fcn.14007b890
mov r15, qword [rsp + 0x2080]
mov rcx, rdi
mov byte [0x14016867c], 0
test r14, r14
je 0x140080f1b
mov rdx, r14
call fcn.1400814e0
mov eax, esi
jmp 0x1400811a9
xor edx, edx
call fcn.140081450
mov eax, esi
jmp 0x1400811a9
mov r8d, 0x800
lea rdx, [rsp + 0x830]
mov rcx, rbp
call fcn.140084ee0
test eax, eax
jne 0x1400811a7
xor esi, esi
cmp qword [0x140168670], rdi
jne 0x140080f8c
cmp dword [0x140168658], esi
je 0x140080f62
mov rcx, rdi
call fcn.140044980
mov dword [0x14016864c], esi
mov dword [0x140168648], esi
mov dword [0x140168654], esi
mov dword [0x140168650], esi
mov dword [0x140168644], esi
mov dword [0x140168640], esi
mov dword [0x140168658], esi
mov r8d, 0x800
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.14004dff0
mov edx, 0x23
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140080fb6
mov byte [rax], sil
mov rax, qword [rdi + 0x990]
test rax, rax
je 0x140080fce
lea rdx, [rsp + 0x30]
mov rcx, rdi
call rax
jmp 0x140080fd5
lea rax, [rdi + 0x11b8]
test rax, rax
je 0x1400811a7
mov rcx, rdi
call fcn.14007fb90
mov r8d, 0x800
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x11b8]
call fcn.14004dff0
mov r8d, 0x800
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x9b8]
call fcn.14004dff0
mov edx, 0x2f
lea rcx, [rdi + 0x9b8]
call sub.VCRUNTIME140.dll_strrchr
lea rcx, [rdi + 0x9b8]
test rax, rax
jne 0x140081036
mov byte [rcx], sil
jmp 0x140081044
cmp rax, rcx
jbe 0x140081044
cmp byte [rax - 1], 0x2f
je 0x140081044
mov byte [rax], sil
lea rax, [rsp + 0x830]
mov r9, rbp
lea r8, str._HTML__HEAD__TITLE_Error__TITLE___HEAD__BODY__H1_Error__H1__P_Unable_to_follow_the_link___s_____s.__P___BODY_
mov qword [rsp + 0x20], rax
mov edx, 0x1000
lea rcx, [rsp + 0x1030]
call fcn.14005ba90
cmp qword [0x140168670], rdi
jne 0x1400810b0
cmp dword [0x140168658], esi
je 0x140081086
mov rcx, rdi
call fcn.140044980
mov dword [0x14016864c], esi
mov dword [0x140168648], esi
mov dword [0x140168654], esi
mov dword [0x140168650], esi
mov dword [0x140168644], esi
mov dword [0x140168640], esi
mov dword [0x140168658], esi
mov rcx, rdi
call fcn.14007fb90
or dword [rdi + 0x60], 0x80
lea rcx, [rsp + 0x1030]
call fcn.14004deb0
mov rcx, rdi
mov qword [rdi + 0x4c0], rax
mov byte [0x14016867c], 1
call fcn.14007b890
mov ebx, esi
mov byte [0x14016867c], sil
cmp qword [rdi + 0x4c0], rbx
je 0x14008114d
mov eax, dword [rdi + 0x19c8]
test eax, eax
jne 0x140081103
call fcn.140045000
mov r8d, dword [rdi + 0x2c]
sub r8d, eax
mov eax, dword [rdi + 0x19c0]
cmp eax, r8d
jl 0x14008111b
test eax, eax
jns 0x14008111b
mov ebx, eax
lea rcx, [rdi + 0x19d0]
mov dword [rdi + 0x19b8], ebx
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov edx, ebx
call fcn.140069300
mov r8, qword [rdi + 0x18]
mov rdx, rdi
mov rcx, rdi
call fcn.140039c50
mov rcx, rdi
call fcn.140044980
cmp qword [rdi + 0x4c0], rsi
je 0x1400811a0
mov eax, dword [rdi + 0x19c8]
test eax, eax
jne 0x140081165
call fcn.140045000
mov r8d, dword [rdi + 0x28]
sub r8d, eax
mov eax, dword [rdi + 0x19c4]
cmp eax, r8d
jl 0x14008117d
test eax, eax
jns 0x14008117d
mov esi, eax
lea rcx, [rdi + 0x1a88]
mov dword [rdi + 0x19bc], esi
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov edx, esi
call fcn.140069300
mov rcx, rdi
call fcn.140044980
mov eax, 0xffffffff
jmp 0x1400811a9
xor eax, eax
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0x2040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret