Function at 0x140016a30
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, [0x140046520]
lea rcx, [rsp + 0x78]
call fcn.14000be30
mov qword [rsp + 0x68], rax
movzx eax, byte [0x14004da94]
test eax, eax
jne 0x140016a97
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
jmp 0x140016e1b
lea rcx, [rsp + 0x78]
call fcn.140002f00
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x140016ac4
mov byte [0x14004da94], 0
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
jmp 0x140016e1b
mov edx, 0x800
mov rcx, qword [rsp + 0x2d0]
call fcn.140009cb0
shl rax, 1
cmp rax, 0x800
jbe 0x140016af0
lea rcx, [rsp + 0x78]
call fcn.14000a3d0
jmp 0x140016e1b
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 0x140016c8e
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, [0x140046508]
lea rcx, [0x140051970]
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, [0x140046568]
lea rcx, [0x1400530f0]
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, [0x1400530f0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140016c8e
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, [0x1400530f0]
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, [0x140046598]
lea rcx, [0x1400519e0]
call fcn.140009ad0
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140016ddb
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, [0x140052be0]
lea rcx, [0x1400519e0]
call fcn.140009b30
mov eax, dword [0x140051960]
mov dword [rsp + 0x54], eax
mov eax, dword [0x140051960]
inc eax
mov dword [0x140051960], eax
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
lea r9, [0x140052be0]
lea r8, [0x1400465b0]
mov edx, 0x800
lea rcx, [0x140051a50]
call fcn.140009c30
mov edx, 0x8c8
lea rcx, [0x140051a50]
call fcn.140009cb0
mov eax, eax
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, eax
lea rdx, [0x140051a50]
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 0x140016de8
lea rcx, [0x1400465c8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x48], 0x4c4b40
jbe 0x140016e00
lea rcx, [0x1400530f0]
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 0x140016e1b
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140017a80
add rsp, 0x2c0
pop rdi
ret