Function at 0x140009600
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1150
call fcn.1401cc7e0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1160], rbx
mov rax, qword [0x1402b38e0]
xor rax, rbp
mov qword [rbp + 0x1100], rax
mov rbx, rdx
mov qword [rbp + 0x28], rdx
mov r13, rcx
mov r15, 0xffffffffffffffff
mov qword [rbp + 0x10], r15
mov rdi, r15
mov qword [rbp], r15
xor esi, esi
lea rax, [rbp + 0xce0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xef0]
lea r8, [rbp + 0xad0]
lea rdx, [rbp + 0x8c0]
mov rcx, rbx
call fcn.1401d3ce4
lea rdx, [rbp + 0x8c0]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xad0]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140266b78]
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x290]
xor r8d, r8d
lea rdx, [0x140266b88]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000996d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov qword [rbp + 0x10], rax
cmp rax, rdi
je 0x14000996d
movsxd rcx, dword [r13 + 0x4c]
lea r10, [0x140266c10]
mov r10, qword [r10 + rcx*8]
mov qword [rbp + 0x20], r10
mov r14, rdi
inc r14
cmp byte [r10 + r14], 0
jne 0x140009742
mov rax, qword [r13 + 0x68]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x30], rax
mov edi, esi
mov dword [rbp + 0xc], esi
movabs r9, 0xffffffffffffff0
cmp edi, eax
jge 0x1400098bc
movsxd rcx, edi
test edi, edi
js 0x1400099c8
mov rdx, qword [r13 + 0x68]
cmp rcx, rdx
jge 0x1400099c8
mov r8, qword [r13 + 0x60]
lea rax, [rcx + rcx*4]
mov r12d, dword [r8 + rax*4 + 8]
test r12d, r12d
jle 0x140009876
test edi, edi
js 0x1400099c3
cmp rcx, rdx
jge 0x1400099c3
lea rax, [rcx + rcx*4]
mov r8, qword [r8 + rax*4]
test r8, r8
je 0x140009845
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400097d0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140009845
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400097fc
mov rcx, r9
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401cc7e0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140009845
mov byte [rbx], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor edx, edx
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, rsi
jmp 0x140009848
mov rbx, rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, r12d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009969
cmp r12d, dword [rbp + 8]
jne 0x140009969
mov r10, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
dec eax
cmp edi, eax
jge 0x1400098aa
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, r14d
mov rdx, r10
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009969
cmp r14d, dword [rbp + 8]
jne 0x140009969
inc edi
mov dword [rbp + 0xc], edi
mov rax, qword [rbp + 0x18]
mov r10, qword [rbp + 0x20]
jmp 0x14000975d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, 0xffffffffffffffff
mov qword [rbp + 0x10], r15
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
cmp dword [r13 + 0x50], 0
je 0x140009927
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rbp], rax
cmp rax, r15
je 0x140009931
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000996d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, r15
mov qword [rbp], r15
jmp 0x140009931
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdi, qword [rbp]
mov rdx, rbx
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000996d
mov rax, qword [r13]
xor edx, edx
mov rcx, r13
call qword [rax + 0xa8]
mov eax, dword [r13 + 0xa8]
mov dword [r13 + 0xac], eax
mov esi, 1
jmp 0x14000996d
mov rdi, qword [rbp]
cmp rdi, 0xffffffffffffffff
je 0x14000997c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp r15, 0xffffffffffffffff
je 0x14000998b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
mov rcx, qword [rbp + 0x1100]
xor rcx, rbp
call fcn.1401cbf20
mov rbx, qword [rbp + 0x1160]
lea rsp, [rbp + 0x1110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002c300
call fcn.14002c300
nop
int3