Function at 0x18000fde0
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 [0x1801bc080]
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 0x18000fe6d
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
xor r8d, r8d
lea rdx, [0x180163950]
mov rcx, r14
call fcn.180004aa0
mov dword [rsp + 0x30], 1
jmp 0x1800103cd
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.18010e5a0
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 0x1800103a2
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 0x18000fec7
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.1800ef434
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 0x18000ff25
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.180004aa0
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.1800a8730
movzx edi, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000ffaf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ffaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010408
call fcn.1800ef470
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rbx, qword [rsp + 0x38]
test dil, dil
je 0x180010375
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.180012d00
nop
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2a
jb 0x180010052
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.18010e140
mov byte [rdi + 0x2a], 0
jmp 0x180010074
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.1800133c0
nop
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x180010083
mov rdx, qword [r12]
mov r9d, 0xfde9
mov r8d, dword [r12 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.1800aa5b0
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 0x18001010b
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.18010e140
mov byte [rdi + r13], 0
jmp 0x180010120
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.1800133c0
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180010164
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001015f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001040e
call fcn.1800ef470
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 0x1800101c1
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.18010e140
mov byte [rdi + 0xb], r13b
jmp 0x1800101e2
mov qword [rsp + 0x20], 0xb
lea r9, str.___r_n__html_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x60]
call fcn.1800133c0
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
test rbx, rbx
je 0x180010325
test rdx, rdx
je 0x18001030f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180010325
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 0x18001030f
cmp edi, dword [rsp + 0x40]
jne 0x18001030f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180010256
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180010256
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 0x180010270
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.180004aa0
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1800102cf
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800102ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010414
call fcn.1800ef470
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 0x1800102f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800ef470
mov qword [rsp + 0x38], r13
jmp 0x1800103cd
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180010325
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180010325
mov qword [rbx], rsi
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180010362
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001035d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010402
call fcn.1800ef470
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
test rbx, rbx
je 0x1800103a2
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180010390
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800ef470
mov qword [rsp + 0x38], r13
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
xor r8d, r8d
lea rdx, [0x180163950]
mov rcx, r14
call fcn.180004aa0
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rcx, r12
call fcn.180004a10
mov rax, r14
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1800ef410
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.180110f34
int3
call fcn.180110f34
nop
call fcn.180110f34
nop
call fcn.180110f34
int3