Function at 0x140009cf0
Capabilities:
Delete file
Get file size
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x14004d028]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
mov edx, 8
lea rcx, [rsp + 0x78]
call fcn.1400013a0
lea rdx, [0x140044b60]
lea rcx, [rsp + 0x78]
call fcn.14000be30
mov qword [rsp + 0x68], rax
movzx eax, byte [0x14004da80]
test eax, eax
jne 0x140009d57
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
jmp 0x14000a0db
lea rcx, [rsp + 0x78]
call fcn.140002f00
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x140009d84
mov byte [0x14004da80], 0
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
jmp 0x14000a0db
mov edx, 0x800
mov rcx, qword [rsp + 0x2d0]
call fcn.140009cb0
shl rax, 1
cmp rax, 0x800
jbe 0x140009db0
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
jmp 0x14000a0db
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 8
lea rcx, [rsp + 0x90]
call fcn.1400013a0
lea rcx, [rsp + 0x90]
call fcn.140008f60
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140009f4e
lea rcx, [rsp + 0xa0]
call fcn.140008e50
xor r9d, r9d
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x70]
call fcn.140009780
movzx eax, word [rsp + 0x8c]
movzx ecx, word [rsp + 0x8a]
movzx edx, word [rsp + 0x88]
movzx edi, word [rsp + 0x86]
movzx r8d, word [rsp + 0x82]
movzx r9d, word [rsp + 0x80]
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edi
mov r9d, r8d
mov eax, dword [rsp + 0x4c]
mov r8d, eax
lea rdx, [0x1400440e8]
lea rcx, [0x14004f290]
call fcn.140009ad0
lea rcx, [rsp + 0x90]
call fcn.1400099d0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x78]
call fcn.1400099d0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rdx, [0x140044ba8]
lea rcx, [0x140052cd0]
call fcn.140009970
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, [0x140052cd0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140009f4e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, [0x140052cd0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
movzx eax, word [rsp + 0x8c]
movzx ecx, word [rsp + 0x8a]
movzx edx, word [rsp + 0x88]
movzx edi, word [rsp + 0x86]
movzx r8d, word [rsp + 0x82]
movzx r9d, word [rsp + 0x80]
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edi
mov r9d, r8d
mov eax, dword [rsp + 0x50]
mov r8d, eax
lea rdx, [0x140044328]
lea rcx, [0x14004f300]
call fcn.140009ad0
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x14000a09b
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, 0x100
lea rdx, [0x140050500]
lea rcx, [0x14004f300]
call fcn.140009b30
mov eax, dword [0x14004f288]
mov dword [rsp + 0x54], eax
mov eax, dword [0x14004f288]
inc eax
mov dword [0x14004f288], eax
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
lea r9, [0x140050500]
lea r8, [0x1400444d8]
mov edx, 0x800
lea rcx, [0x14004f370]
call fcn.140009c30
mov edx, 0x8c8
lea rcx, [0x14004f370]
call fcn.140009cb0
mov eax, eax
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
lea rdx, [0x14004f370]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a0a8
lea rcx, [0x1400445a8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x48], 0x4c4b40
jbe 0x14000a0c0
lea rcx, [0x140052cd0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x90]
call fcn.14000a3d0
nop
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
nop
jmp 0x14000a0db
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140017a80
add rsp, 0x2c0
pop rdi
ret