Function at 0x140004c60
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x15c0]
mov eax, 0x16c0
call fcn.140013430
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x15b0], rax
mov qword [rsp + 0x16f8], rsi
xor edx, edx
mov rsi, qword [0x14001b910]
mov r8d, 0x1000
mov qword [rsp + 0x1700], r14
xor r12b, r12b
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x1708], r15
lea rcx, [rbp + 0x5b0]
xor r15d, r15d
add rsi, 0x300000
mov r13d, r15d
call sub.VCRUNTIME140.dll_memset
lea r8, [0x14001c070]
lea rdx, [0x140014f78]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0x1b0]
lea rdx, str._s
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x3b0]
movups xmmword [0x14001bd50], xmm0
movups xmmword [0x14001bd60], xmm0
movups xmmword [0x14001bd70], xmm0
movups xmmword [0x14001bd80], xmm0
movups xmmword [0x14001bd90], xmm0
movups xmmword [0x14001bda0], xmm0
movups xmmword [0x14001bdb0], xmm0
movups xmmword [0x14001bdc0], xmm0
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x140004d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000528b
mov edi, dword [rsp + 0x40]
mov rbx, rax
nop dword [rax]
test byte [rsp + 0x60], 0x10
jne 0x140004e6d
lea r9, [rbp - 0x74]
lea r8, [rbp + 0x1b0]
lea rdx, str._s_s
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x140004e68
test r14, r14
je 0x140004e44
cmp r12b, 1
jne 0x140004e44
xor ecx, ecx
mov dword [rsp + 0x40], r15d
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov r8d, 0x500000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000080
lea rcx, [rbp + 0x3b0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140004f0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, r14d
mov r14, qword [rsp + 0x48]
movsxd rax, r13d
lea rcx, [rbp + 0x5b0]
shl rax, 9
lea rdx, [rbp + 0x3b0]
add rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
inc r13d
inc r12b
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140004d80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14, r14
je 0x14000519c
cmp r12b, 9
jae 0x14000501b
xor ecx, ecx
mov dword [rsp + 0x40], r15d
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov r8d, 0x500000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000080
lea rcx, [rbp + 0x5b0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140004fa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000519c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, 0x500000
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140004f38
lea edi, [rax - 2]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004f4e
mov edi, dword [rsp + 0x40]
cmp edi, 0x500000
je 0x140004f50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rsp + 0x40]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jle 0x140004e3f
movsxd r8, edi
mov rax, rsi
mov rdx, r8
movzx ecx, byte [rax]
test cl, cl
je 0x140004f7e
cmp cl, 0x1f
jne 0x140004f81
mov byte [rax], 0x20
inc rax
sub rdx, 1
jne 0x140004f72
mov r14, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, r14
mov byte [r8 + rsi], r15b
mov r12b, 9
call qword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x140004e44
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, 0x500000
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140004fd2
lea edi, [rax - 2]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004fe8
mov edi, dword [rsp + 0x40]
cmp edi, 0x500000
je 0x140004fea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rsp + 0x40]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jle 0x14000519c
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
movsxd rax, edi
mov r12b, 9
mov byte [rax + rsi], r15b
call qword [sym.imp.USER32.dll_SetWindowTextA]
movsxd rbx, edi
test edi, edi
jle 0x14000506b
mov rdx, r15
movzx ecx, byte [rdx + rsi]
test cl, cl
je 0x14000506b
cmp cl, 0x81
jb 0x140005056
cmp cl, 0x9f
jbe 0x14000503e
lea eax, [rcx + 0x20]
cmp al, 0x1c
ja 0x140005056
movzx eax, byte [rdx + rsi + 1]
cmp al, 0x40
jb 0x140005056
cmp al, 0x7e
jbe 0x140005051
sub al, 0x80
cmp al, 0x7c
ja 0x140005056
inc rdx
jmp 0x140005063
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x140005063
add cl, 0x20
mov byte [rdx + rsi], cl
inc rdx
cmp rdx, rbx
jl 0x140005025
cmp edi, 0x8000
jge 0x140005085
lea r9, str.Varnish_cache
mov r8d, edi
mov rdx, rsi
call fcn.1400025a0
lea r9, str._address_
mov r8d, edi
mov rdx, rsi
call fcn.1400025a0
lea r9, str._meta_name_author_
mov r8d, edi
mov rdx, rsi
call fcn.1400025a0
lea r9, str.powered_by
mov r8d, edi
mov rdx, rsi
call fcn.1400025a0
mov r8, rax
test rax, rax
je 0x140005178
cmp byte [r8 + 0xa], 0x3a
mov eax, r15d
sete al
add eax, 0xa
mov ecx, eax
inc eax
cmp byte [rcx + r8], 0x20
cmova eax, ecx
mov ecx, eax
inc eax
cmp byte [rcx + r8], 0x20
cmova eax, ecx
mov ecx, eax
inc eax
cmp byte [rcx + r8], 0x20
cmova eax, ecx
mov ecx, eax
inc eax
cmp byte [rcx + r8], 0x20
cmova eax, ecx
cmp byte [rax + r8], 0x20
lea edx, [rax + 1]
cmova edx, eax
cmp edx, edi
jge 0x140005178
cmp byte [rdx + r8], 0x3c
jne 0x140005138
lea eax, [rdx + 1]
mov ecx, eax
mov edx, eax
cmp rcx, rbx
jge 0x140005138
inc edx
cmp byte [rcx + r8], 0x3e
je 0x140005138
inc rcx
cmp rcx, rbx
jl 0x140005127
movsxd rax, edx
lea rdx, [0x14001bd50]
sub rdx, rax
sub rdx, r8
lea r9, [rax + r8]
mov rcx, r9
nop
mov rax, rcx
sub rax, r8
cmp rax, rbx
jge 0x140005178
movzx eax, byte [rcx]
cmp al, 0x20
jl 0x140005178
cmp al, 0x3c
je 0x140005178
mov byte [rdx + rcx], al
inc rcx
mov rax, rcx
sub rax, r9
cmp rax, 0x60
jl 0x140005150
lea r9, str._title_
mov r8d, edi
mov rdx, rsi
call fcn.1400025a0
lea r9, str._center_
mov r8d, edi
mov rdx, rsi
call fcn.1400025a0
lea r8, [0x14001c070]
lea rdx, str._sEntryInfo.txt
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x140005279
xor ecx, ecx
mov dword [rsp + 0x40], r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov r8d, 0x500000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000080
lea rcx, [rbp + 0x1b0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005234
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
jmp 0x140005270
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, 0x500000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000525e
cmp dword [rsp + 0x40], 0x500000
je 0x140005267
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x1708]
test r14, r14
mov r14, qword [rsp + 0x1700]
mov rsi, qword [rsp + 0x16f8]
je 0x1400052ae
cmp r12b, 9
jb 0x1400052d6
test r13d, r13d
jle 0x1400052d6
lea rbx, [rbp + 0x5b0]
mov edi, r13d
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rbx, 0x200
sub rdi, 1
jne 0x1400052c0
mov rcx, qword [rbp + 0x15b0]
xor rcx, rsp
call fcn.140012330
add rsp, 0x16c0
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret