Function at 0x14000cd80
Capabilities:
Create directory
Timestomp file
Write file on windows

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x1401b2788]
xor rax, rsp
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xf8], 0
jne 0x14000cdc3
mov eax, 1
jmp 0x14000d0bb
movzx eax, word [rsp + 0x108]
and eax, 0xf000
cmp eax, 0x4000
jne 0x14000ce75
mov rcx, qword [rsp + 0xf8]
call fcn.140165cec
test eax, eax
je 0x14000ce70
call fcn.1401566b4
cmp dword [rax], 0x11
jne 0x14000ce66
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xf8]
call fcn.14000cb90
test eax, eax
jne 0x14000ce66
movzx eax, word [rsp + 0xae]
and eax, 0xf000
cmp eax, 0x4000
jne 0x14000ce66
movzx eax, word [rsp + 0xae]
and eax, 0x1ff
movzx ecx, word [rsp + 0x108]
and ecx, 0x1ff
cmp eax, ecx
je 0x14000ce70
movzx eax, word [rsp + 0x108]
and eax, 0x1ff
mov edx, eax
mov rcx, qword [rsp + 0xf8]
call fcn.140165178
test eax, eax
je 0x14000ce70
mov eax, 1
jmp 0x14000d0bb
jmp 0x14000cf8c
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x40], 0
lea rdx, [0x14019bafc]
mov rcx, qword [rsp + 0xf8]
call fcn.140158a70
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000ceb1
mov eax, 1
jmp 0x14000d0bb
mov rcx, qword [rsp + 0x100]
call sym.sqlite3.exe_sqlite3_value_blob
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14000cf24
mov rcx, qword [rsp + 0x100]
call sym.sqlite3.exe_sqlite3_value_bytes
cdqe
mov r9, qword [rsp + 0x50]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.1401599f8
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x100]
call sym.sqlite3.exe_sqlite3_value_bytes
cdqe
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x58], rax
je 0x14000cf24
mov dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x50]
call fcn.140158310
cmp dword [rsp + 0x40], 0
jne 0x14000cf69
movzx eax, word [rsp + 0x108]
test eax, eax
je 0x14000cf69
movzx eax, word [rsp + 0x108]
and eax, 0x1ff
mov edx, eax
mov rcx, qword [rsp + 0xf8]
call fcn.140165178
test eax, eax
je 0x14000cf69
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x40], 0
je 0x14000cf7a
mov eax, 2
jmp 0x14000d0bb
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
call sym.sqlite3.exe_sqlite3_result_int64
cmp qword [rsp + 0x110], 0
jl 0x14000d0b9
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
movsxd rax, dword [rsp + 0x110]
imul rax, rax, 0x989680
movabs rcx, 0x19db1ded53e8000
add rax, rcx
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x78]
sar rax, 0x20
mov dword [rsp + 0x84], eax
mov rcx, qword [rsp + 0xf8]
call sym.sqlite3.exe_sqlite3_win32_utf8_to_unicode
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14000d01f
mov eax, 1
jmp 0x14000d0bb
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_free
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14000d0b2
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], 0
jne 0x14000d0a2
mov dword [rsp + 0x44], 1
jmp 0x14000d0aa
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
jmp 0x14000d0bb
mov eax, 1
jmp 0x14000d0bb
xor eax, eax
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140154660
add rsp, 0xe8
ret