Function at 0x18000f2e0
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 [0x1801a3080]
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 0x18000f36d
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
xor r8d, r8d
lea rdx, [0x180152244]
mov rcx, r14
call fcn.18000c0a0
mov dword [rsp + 0x30], 1
jmp 0x18000f8cd
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.1800fe490
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 0x18000f8a2
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 0x18000f3c7
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.1800df068
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 0x18000f425
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.18000c0a0
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.180099490
movzx edi, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000f4af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f4aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f908
call fcn.1800dedc4
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rbx, qword [rsp + 0x38]
test dil, dil
je 0x18000f875
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.1800121e0
nop
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2a
jb 0x18000f552
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.1800fe030
mov byte [rdi + 0x2a], 0
jmp 0x18000f574
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.1800128a0
nop
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x18000f583
mov rdx, qword [r12]
mov r9d, 0xfde9
mov r8d, dword [r12 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.18009b2a0
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 0x18000f60b
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.1800fe030
mov byte [rdi + r13], 0
jmp 0x18000f620
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.1800128a0
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18000f664
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f65f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f90e
call fcn.1800dedc4
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 0x18000f6c1
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.1800fe030
mov byte [rdi + 0xb], r13b
jmp 0x18000f6e2
mov qword [rsp + 0x20], 0xb
lea r9, str.___r_n__html_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x60]
call fcn.1800128a0
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
test rbx, rbx
je 0x18000f825
test rdx, rdx
je 0x18000f80f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000f825
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 0x18000f80f
cmp edi, dword [rsp + 0x40]
jne 0x18000f80f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000f756
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000f756
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 0x18000f770
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.18000c0a0
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18000f7cf
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f7ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f914
call fcn.1800dedc4
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 0x18000f7f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800dedc4
mov qword [rsp + 0x38], r13
jmp 0x18000f8cd
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000f825
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000f825
mov qword [rbx], rsi
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18000f862
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f85d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f902
call fcn.1800dedc4
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
test rbx, rbx
je 0x18000f8a2
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000f890
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800dedc4
mov qword [rsp + 0x38], r13
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
xor r8d, r8d
lea rdx, [0x180152244]
mov rcx, r14
call fcn.18000c0a0
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rcx, r12
call fcn.18000c030
mov rax, r14
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1800deda0
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.180103f88
int3
call fcn.180103f88
nop
call fcn.180103f88
nop
call fcn.180103f88
int3