Function at 0x100105780
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 [0x100152198]
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 0x100105aab
cmp qword [rbx + 0x38], r13
je 0x100105aab
cmp qword [rbx + 8], r13
je 0x100105aab
cmp dword [rbx + 0x10], 0x78
jb 0x100105aab
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 0x100105885
movzx eax, word [r8]
cmp ax, r13w
je 0x100105885
mov word [rcx], ax
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x10010585e
cmp rdx, r13
jne 0x100105894
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, r13d
mov word [rcx], r13w
jge 0x1001058d8
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100105aed
test byte [rcx + 0x1c], 2
je 0x100105aed
mov edx, 0x7f
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
call fcn.100036510
jmp 0x100105aed
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdi, rax
cmp rax, r13
jne 0x100105929
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100105aed
test byte [rcx + 0x1c], 2
je 0x100105aed
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x80
call fcn.100034784
jmp 0x100105aed
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, [0x100027960]
lea rcx, [rsp + 0x90]
mov edx, 0x104
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.1000f1d78
cmp eax, r13d
mov r9d, eax
jge 0x1001059d2
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100105aed
test byte [rcx + 0x1c], 2
je 0x100105aed
mov edx, 0x81
jmp 0x1001058c3
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 0x100105a36
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100105ad9
test byte [rcx + 0x1c], 2
je 0x100105ad9
call sub.KERNEL32.dll_GetLastError
mov edx, 0x82
jmp 0x100105a8f
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 0x100105a6c
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x80], eax
jne 0x100105a6c
mov esi, 1
jmp 0x100105ad9
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100105ad9
test byte [rcx + 0x1c], 2
je 0x100105ad9
call sub.KERNEL32.dll_GetLastError
mov edx, 0x83
mov rcx, qword [0x100153eb8]
lea r8, [0x10001dad0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x100105ad9
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100105aed
test byte [rcx + 0x1c], 2
je 0x100105aed
mov rcx, qword [rcx + 0x10]
lea r8, [0x10001dad0]
mov edx, 0x7e
call fcn.100034784
cmp rdi, 0xffffffffffffffff
je 0x100105ae8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, r13d
jne 0x100105afb
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.10011be80
mov rbx, qword [rsp + 0x508]
add rsp, 0x4c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret