Function at 0x18000f2f0
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 [0x1801a8080]
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 0x18000f37d
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
xor r8d, r8d
lea rdx, [0x180156244]
mov rcx, r14
call fcn.18000c0b0
mov dword [rsp + 0x30], 1
jmp 0x18000f8dd
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.1801023f0
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 0x18000f8b2
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 0x18000f3d7
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.1800e2fc8
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 0x18000f435
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.18000c0b0
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.18009d3f0
movzx edi, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000f4bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f4ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f918
call fcn.1800e2d24
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rbx, qword [rsp + 0x38]
test dil, dil
je 0x18000f885
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.1800121f0
nop
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2a
jb 0x18000f562
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.180101f90
mov byte [rdi + 0x2a], 0
jmp 0x18000f584
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.1800128b0
nop
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x18000f593
mov rdx, qword [r12]
mov r9d, 0xfde9
mov r8d, dword [r12 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.18009f200
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 0x18000f61b
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.180101f90
mov byte [rdi + r13], 0
jmp 0x18000f630
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.1800128b0
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18000f674
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f66f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f91e
call fcn.1800e2d24
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 0x18000f6d1
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.180101f90
mov byte [rdi + 0xb], r13b
jmp 0x18000f6f2
mov qword [rsp + 0x20], 0xb
lea r9, str.___r_n__html_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x60]
call fcn.1800128b0
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
test rbx, rbx
je 0x18000f835
test rdx, rdx
je 0x18000f81f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000f835
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 0x18000f81f
cmp edi, dword [rsp + 0x40]
jne 0x18000f81f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000f766
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000f766
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 0x18000f780
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.18000c0b0
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18000f7df
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f7da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f924
call fcn.1800e2d24
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 0x18000f808
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800e2d24
mov qword [rsp + 0x38], r13
jmp 0x18000f8dd
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18000f835
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18000f835
mov qword [rbx], rsi
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18000f872
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f86d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f912
call fcn.1800e2d24
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
test rbx, rbx
je 0x18000f8b2
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000f8a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800e2d24
mov qword [rsp + 0x38], r13
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
xor r8d, r8d
lea rdx, [0x180156244]
mov rcx, r14
call fcn.18000c0b0
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rcx, r12
call fcn.18000c040
mov rax, r14
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1800e2d00
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.180107ee8
int3
call fcn.180107ee8
nop
call fcn.180107ee8
nop
call fcn.180107ee8
int3