Function at 0x180010030
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 0x1800100bd
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
xor r8d, r8d
lea rdx, [0x180163940]
mov rcx, r14
call fcn.180004a10
mov dword [rsp + 0x30], 1
jmp 0x18001061d
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.18010e6d0
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 0x1800105f2
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 0x180010117
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.1800ef564
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 0x180010175
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.180004a10
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.1800a8860
movzx edi, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1800101ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800101fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010658
call fcn.1800ef5a0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rbx, qword [rsp + 0x38]
test dil, dil
je 0x1800105c5
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.180012f50
nop
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2a
jb 0x1800102a2
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.18010e270
mov byte [rdi + 0x2a], 0
jmp 0x1800102c4
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.180013610
nop
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x1800102d3
mov rdx, qword [r12]
mov r9d, 0xfde9
mov r8d, dword [r12 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.1800aa6e0
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 0x18001035b
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.18010e270
mov byte [rdi + r13], 0
jmp 0x180010370
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.180013610
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1800103b4
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800103af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001065e
call fcn.1800ef5a0
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 0x180010411
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.18010e270
mov byte [rdi + 0xb], r13b
jmp 0x180010432
mov qword [rsp + 0x20], 0xb
lea r9, str.___r_n__html_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x60]
call fcn.180013610
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
test rbx, rbx
je 0x180010575
test rdx, rdx
je 0x18001055f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180010575
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 0x18001055f
cmp edi, dword [rsp + 0x40]
jne 0x18001055f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800104a6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800104a6
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 0x1800104c0
mov r8, rsi
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.180004a10
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18001051f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001051a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010664
call fcn.1800ef5a0
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 0x180010548
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800ef5a0
mov qword [rsp + 0x38], r13
jmp 0x18001061d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180010575
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180010575
mov qword [rbx], rsi
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1800105b2
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800105ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010652
call fcn.1800ef5a0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
test rbx, rbx
je 0x1800105f2
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800105e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r13
mov edx, 8
mov rcx, rbx
call fcn.1800ef5a0
mov qword [rsp + 0x38], r13
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov word [r14], r13w
xor r8d, r8d
lea rdx, [0x180163940]
mov rcx, r14
call fcn.180004a10
or r15d, 1
mov dword [rsp + 0x30], r15d
mov rcx, r12
call fcn.180004980
mov rax, r14
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1800ef540
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.180111064
int3
call fcn.180111064
nop
call fcn.180111064
nop
call fcn.180111064
int3