Function at 0x140009250
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.1401b1e20
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1168], rbx
mov rax, qword [0x1416e97c0]
xor rax, rbp
mov qword [rbp + 0x1100], rax
mov dword [rbp + 0x18], r9d
mov ebx, r8d
mov r13, rdx
mov qword [rbp + 0x30], rdx
mov r14, rcx
or r12, 0xffffffffffffffff
mov qword [rbp + 0x10], r12
or rdi, r12
mov qword [rbp], rdi
xor esi, esi
lea rax, [rbp + 0xef0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xce0]
lea r8, [rbp + 0xad0]
lea rdx, [rbp + 0x8c0]
mov rcx, r13
call fcn.1401b1eec
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, r13
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..bak
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x290]
xor r8d, r8d
lea rdx, [0x1401e34e8]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400095c5
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 r12, rax
mov qword [rbp + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x1400095c5
cmp ebx, 0xffffffff
jne 0x14000938a
mov ebx, dword [r14 + 0x4c]
movsxd rcx, ebx
lea r10, section..data
mov r10, qword [r10 + rcx*8]
mov qword [rbp + 0x28], r10
or r15, 0xffffffffffffffff
inc r15
cmp byte [r10 + r15], 0
jne 0x1400093a0
mov rax, qword [r14 + 0x68]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x38], rax
mov edi, esi
mov dword [rbp + 0x1c], esi
movabs r9, 0xffffffffffffff0
cmp edi, eax
jge 0x140009512
movsxd rdx, edi
test edi, edi
js 0x14000950d
cmp rdx, qword [r14 + 0x68]
jge 0x14000950d
lea rcx, [rdx + rdx*4]
mov rax, qword [r14 + 0x60]
mov r13d, dword [rax + rcx*4 + 8]
test r13d, r13d
jle 0x1400094c7
test edi, edi
js 0x1400094be
cmp rdx, qword [r14 + 0x68]
jge 0x1400094be
lea rcx, [rdx + rdx*4]
mov r8, qword [rax + rcx*4]
test r8, r8
je 0x140009490
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [r8 + rcx*2], 0
jne 0x140009420
inc ecx
cmp ecx, 0x3fffffff
jg 0x140009490
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x140009447
mov rdx, r9
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1401b1e20
sub rsp, rdx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140009490
mov byte [rbx], 0
lea eax, [rcx + rcx]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, rsi
jmp 0x140009493
mov rbx, rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, r13d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400095c1
cmp r13d, dword [rbp + 8]
je 0x1400094c3
jmp 0x1400095c1
call fcn.140021da8
mov r10, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
dec eax
cmp edi, eax
jge 0x1400094fb
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 8]
mov r8d, r15d
mov rdx, r10
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400095c1
cmp r15d, dword [rbp + 8]
jne 0x1400095c1
inc edi
mov dword [rbp + 0x1c], edi
mov rax, qword [rbp + 0x20]
mov r10, qword [rbp + 0x28]
jmp 0x1400093bb
call fcn.140021da8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r12, 0xffffffffffffffff
mov qword [rbp + 0x10], r12
mov r13, qword [rbp + 0x30]
mov rcx, r13
cmp dword [r14 + 0x50], 0
je 0x14000957a
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rbp], rax
cmp rax, r12
je 0x140009584
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400095c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
or rdi, r12
mov qword [rbp], rdi
jmp 0x140009584
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdi, qword [rbp]
mov rdx, r13
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400095c5
cmp dword [rbp + 0x18], 0
je 0x1400095ba
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0xa8]
mov eax, dword [r14 + 0xa8]
mov dword [r14 + 0xac], eax
mov esi, 1
jmp 0x1400095c5
mov rdi, qword [rbp]
cmp rdi, 0xffffffffffffffff
je 0x1400095d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp r12, 0xffffffffffffffff
je 0x1400095e3
mov rcx, r12
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.1401b1e80
mov rbx, qword [rbp + 0x1168]
lea rsp, [rbp + 0x1110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret