Function at 0x18000fcb0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x8f0], rbx
mov rax, qword [0x1801b8080]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r12, r8
mov r14, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
xor r13d, r13d
mov r15d, r13d
mov dword [rsp + 0x30], r13d
cmp qword [r8 + 0x10], r13
jne 0x18000fd3d
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
xor r8d, r8d
lea rdx, [0x180160958]
mov rcx, r14
call fcn.180004930
mov dword [rsp + 0x30], 1
jmp 0x18001029d
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.18010be50
mov r9d, 1
lea r8d, [r9 + 0x19]
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x180010272
lea rdx, str.Page
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000fd97
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.Page.html
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 8
call fcn.1800ecce4
mov qword [rsp + 0x40], rax
mov rsi, 0xffffffffffffffff
mov qword [rax], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
lea rax, [rbp - 0x60]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x18000fdf5
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.180004930
nop
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov r9d, 1
mov r8d, 0x10000000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1800a5fe0
movzx edi, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000fe7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000fe7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800102d8
call fcn.1800ecd20
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rbx, qword [rsp + 0x38]
test dil, dil
je 0x180010245
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov r8d, 8
lea rdx, str._html__r_n
lea rcx, [rsp + 0x60]
call fcn.180012bb0
nop
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2a
jb 0x18000ff22
lea rax, [rcx + 0x2a]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x60]
add rdi, rcx
mov r8d, 0x2a
lea rdx, str._meta_http_equiv_refresh__content_0_url
mov rcx, rdi
call fcn.18010b9f0
mov byte [rdi + 0x2a], 0
jmp 0x18000ff44
mov qword [rsp + 0x20], 0x2a
lea r9, str._meta_http_equiv_refresh__content_0_url
xor r8d, r8d
lea edx, [r8 + 0x2a]
lea rcx, [rsp + 0x60]
call fcn.180013270
nop
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x18000ff53
mov rdx, qword [r12]
mov r9d, 0xfde9
mov r8d, dword [r12 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.1800a7e60
mov r15d, 4
mov dword [rsp + 0x30], r15d
and r15d, 0xfffffffb
mov dword [rsp + 0x30], r15d
or r15d, 2
mov dword [rsp + 0x30], r15d
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r9, qword [rbp - 0x80]
mov r13, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp r13, rax
ja 0x18000ffdb
lea rax, [rcx + r13]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x60]
add rdi, rcx
mov r8, r13
mov rdx, r9
mov rcx, rdi
call fcn.18010b9f0
mov byte [rdi + r13], 0
jmp 0x18000fff0
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.180013270
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180010034
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001002f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800102de
call fcn.1800ecd20
xor r13d, r13d
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], r13b
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x180010091
lea rax, [rcx + 0xb]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x60]
add rdi, rcx
lea r8d, [r13 + 0xb]
lea rdx, str.___r_n__html_
mov rcx, rdi
call fcn.18010b9f0
mov byte [rdi + 0xb], r13b
jmp 0x1800100b2
mov qword [rsp + 0x20], 0xb
lea r9, str.___r_n__html_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x60]
call fcn.180013270
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
test rbx, rbx
je 0x1800101f5
test rdx, rdx
je 0x1800101df
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800101f5
mov edi, dword [rsp + 0x70]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800101df
cmp edi, dword [rsp + 0x40]
jne 0x1800101df
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180010126
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180010126
mov qword [rbx], rsi
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
lea rax, [rbp - 0x60]
nop word [rax + rax]
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x180010140
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.180004930
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18001019f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001019a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800102e4
call fcn.1800ecd20
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800101c8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800ecd20
mov qword [rsp + 0x38], r13
jmp 0x18001029d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800101f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800101f5
mov qword [rbx], rsi
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180010232
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001022d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800102d2
call fcn.1800ecd20
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
test rbx, rbx
je 0x180010272
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180010260
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800ecd20
mov qword [rsp + 0x38], r13
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
xor r8d, r8d
lea rdx, [0x180160958]
mov rcx, r14
call fcn.180004930
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rcx, r12
call fcn.1800048a0
mov rax, r14
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1800eccc0
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18010e7e4
int3
call fcn.18010e7e4
nop
call fcn.18010e7e4
nop
call fcn.18010e7e4
int3