Function at 0x1001051e4
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4c0
mov rax, qword [0x100151198]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rbx, rcx
mov r12d, r8d
mov rbp, rdx
mov edi, 0x206
lea rcx, [rsp + 0x92]
xor r13d, r13d
mov r8, rdi
xor edx, edx
mov word [rsp + 0x90], r13w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2a2]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x2a0], r13w
call sub.msvcrt.dll_memset
xor eax, eax
or rdi, 0xffffffffffffffff
mov word [rsp + 0x70], r13w
mov dword [rsp + 0x80], r13d
mov esi, r13d
mov qword [rsp + 0x72], rax
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
cmp qword [rbx + 0xa0], r13
je 0x10010550f
cmp qword [rbx + 0x38], r13
je 0x10010550f
cmp qword [rbx + 8], r13
je 0x10010550f
cmp dword [rbx + 0x10], 0x78
jb 0x10010550f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov r11, qword [rbx + 0x38]
mov edx, 0x104
mov r8, qword [r11]
lea rcx, [rsp + 0x2a0]
mov r9d, r13d
lea rax, [rdx + 0x7ffffefa]
cmp rax, r13
je 0x1001052e9
movzx eax, word [r8]
cmp ax, r13w
je 0x1001052e9
mov word [rcx], ax
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x1001052c2
cmp rdx, r13
jne 0x1001052f8
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, r13d
mov word [rcx], r13w
jge 0x10010533c
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x100105551
test byte [rcx + 0x1c], 2
je 0x100105551
mov edx, 0x7f
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
call fcn.100036328
jmp 0x100105551
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdi, rax
cmp rax, r13
jne 0x10010538d
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x100105551
test byte [rcx + 0x1c], 2
je 0x100105551
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x80
call fcn.100034764
jmp 0x100105551
movzx ecx, word [rsp + 0x7c]
movzx r8d, word [rsp + 0x7a]
movzx r9d, word [rsp + 0x78]
movzx edx, word [rsp + 0x70]
movzx eax, word [rsp + 0x7e]
movzx r10d, word [rsp + 0x76]
movzx r11d, word [rsp + 0x72]
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r9d
mov r9, qword [rbx + 0xa0]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], edx
lea r8, [0x100027950]
lea rcx, [rsp + 0x90]
mov edx, 0x104
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.1000f1884
cmp eax, r13d
mov r9d, eax
jge 0x100105436
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x100105551
test byte [rcx + 0x1c], 2
je 0x100105551
mov edx, 0x81
jmp 0x100105327
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x10010549a
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x10010553d
test byte [rcx + 0x1c], 2
je 0x10010553d
call sub.KERNEL32.dll_GetLastError
mov edx, 0x82
jmp 0x1001054f3
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r13d
je 0x1001054d0
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x80], eax
jne 0x1001054d0
mov esi, 1
jmp 0x10010553d
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x10010553d
test byte [rcx + 0x1c], 2
je 0x10010553d
call sub.KERNEL32.dll_GetLastError
mov edx, 0x83
mov rcx, qword [0x100152eb8]
lea r8, [0x10001dad0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x10010553d
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x100105551
test byte [rcx + 0x1c], 2
je 0x100105551
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x7e
call fcn.100034764
cmp rdi, 0xffffffffffffffff
je 0x10010554c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, r13d
jne 0x10010555f
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.10011b980
mov rbx, qword [rsp + 0x508]
add rsp, 0x4c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret