Function at 0x140024f30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4470]
mov eax, 0x4570
call fcn.1401514a0
sub rsp, rax
mov rsi, r9
mov r12, r8
mov r15, rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov r14d, dword [rbp + 0x44d0]
cmp r14d, 2
jne 0x1400250bd
lea rcx, [rbp + 8]
call fcn.14000a680
nop
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x28], r12
mov dword [rbp + 0x20], r14d
movzx r14d, byte [rbp + 0x44d8]
mov byte [rbp + 0x30], r14b
mov rdi, 0xffffffffffffffff
mov qword [rbp + 0x10], rdi
mov eax, dword [r15]
dec eax
cmp dword [r15 + 0x10], eax
jle 0x14002506d
mov rax, qword [r15 + 0x20]
mov rcx, qword [rax + 8]
cmp rcx, rdi
je 0x140024fd9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15 + 0x20]
call fcn.140042440
cmp dword [r15 + 0x10], 0
jle 0x14002506d
mov rax, qword [r15 + 8]
mov edx, r13d
lea rcx, [r15 + 8]
call qword [rax + 0x10]
mov rax, qword [r15 + 0x20]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025025
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002501b
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025025
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [r15 + 0x20]
mov eax, dword [r15 + 0x10]
dec eax
cdqe
lea r8, [rax + rax*2]
shl r8, 4
lea rdx, [rcx + 0x30]
call fcn.1401535f0
dec dword [r15 + 0x10]
movsxd rcx, dword [r15 + 0x10]
mov eax, dword [r15 + 0x14]
sub eax, ecx
cdqe
lea r8, [rax + rax*2]
shl r8, 4
lea rcx, [rcx + rcx*2]
shl rcx, 4
add rcx, qword [r15 + 0x20]
xor edx, edx
call fcn.140153c90
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x28]
call fcn.14000a560
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x10], 2
mov qword [rbp - 8], r12
mov byte [rbp], r14b
lea rcx, [r15 + 8]
lea rdx, [rbp - 0x28]
call fcn.140025900
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025636
mov eax, dword [rdx + 0x10]
jmp 0x14002561d
lea rcx, [rsp + 0x70]
call fcn.14000a680
nop
mov eax, dword [r15]
dec eax
mov rdi, 0xffffffffffffffff
cmp dword [r15 + 0x10], eax
jle 0x14002518e
mov rax, qword [r15 + 0x20]
mov rcx, qword [rax + 8]
cmp rcx, rdi
je 0x1400250fa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15 + 0x20]
call fcn.140042440
cmp dword [r15 + 0x10], 0
jle 0x14002518e
mov rax, qword [r15 + 8]
mov edx, r13d
lea rcx, [r15 + 8]
call qword [rax + 0x10]
mov rax, qword [r15 + 0x20]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025146
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002513c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025146
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [r15 + 0x20]
mov eax, dword [r15 + 0x10]
dec eax
cdqe
lea r8, [rax + rax*2]
shl r8, 4
lea rdx, [rcx + 0x30]
call fcn.1401535f0
dec dword [r15 + 0x10]
movsxd rcx, dword [r15 + 0x10]
mov eax, dword [r15 + 0x14]
sub eax, ecx
cdqe
lea r8, [rax + rax*2]
shl r8, 4
lea rcx, [rcx + rcx*2]
shl rcx, 4
add rcx, qword [r15 + 0x20]
xor edx, edx
call fcn.140153c90
mov qword [rbp - 0x80], rsi
movzx eax, byte [rbp + 0x44d8]
mov byte [rbp - 0x68], al
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x58]
call fcn.140040a10
nop
lea r8, str.Media_Editor_Undo.dat
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14003f3a0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140037020
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025200
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400251f6
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025200
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025230
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025226
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025230
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000a560
nop
mov dl, 1
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140042070
test al, al
je 0x140025270
lea rcx, [rsp + 0x48]
call fcn.14004fd80
mov dl, 1
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140042070
test al, al
jne 0x140025253
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140037020
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400252ac
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400252a2
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400252ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140025425
lea rdx, str.Error
lea rcx, [rsp + 0x58]
call fcn.14000a4d0
mov dword [rsp + 0x40], 1
lea rbx, vtable.JRDllString.0
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
jle 0x140025349
mov rcx, qword [0x14022a428]
test rcx, rcx
je 0x140025349
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x38]
test rax, rax
je 0x140025349
mov qword [rbp - 0x48], rbx
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x40], rcx
mov r8, qword [rax]
lea rdx, [rbp - 0x48]
mov rcx, rax
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rdx, str.Error_creating_file.
lea rcx, [rsp + 0x50]
call fcn.14000a4d0
mov dword [rsp + 0x40], 3
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0x10], 0
jle 0x1400253a1
mov rcx, qword [0x14022a428]
test rcx, rcx
je 0x1400253a1
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x38]
test rax, rax
je 0x1400253a1
mov qword [rbp - 0x38], rbx
lea rcx, [rsp + 0x50]
mov qword [rbp - 0x30], rcx
mov r8, qword [rax]
lea rdx, [rbp - 0x38]
mov rcx, rax
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x40], 1
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400253ef
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400253e5
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400253ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025420
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140025416
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025420
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140025706
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x38]
call fcn.14000a560
mov qword [rbp + 0x40], r13
mov r12, qword [rbp - 0x80]
mov qword [rbp + 0x48], r12
mov eax, dword [rbp - 0x78]
mov dword [rbp + 0x50], eax
mov rax, qword [rbp - 0x70]
mov qword [rbp + 0x58], rax
movzx eax, byte [rbp - 0x68]
mov byte [rbp + 0x60], al
lea rcx, [r15 + 8]
lea rdx, [rbp + 0x38]
call fcn.140025900
mov rax, qword [rbp + 0x44c0]
mov rbx, qword [rbp + 0x44b8]
mov qword [rbx], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call fcn.140121d48
mov rcx, rax
test rax, rax
je 0x140025710
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, str.Saving_undo_data...
cmp rdx, 0x10000
jae 0x1400254bb
movzx edx, dx
lea rcx, [rsp + 0x60]
call fcn.140017950
jmp 0x1400254d6
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400254c0
lea rcx, [rsp + 0x60]
call fcn.140017f80
nop
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.140035f80
nop
test rsi, rsi
jle 0x1400255a5
movabs rax, 0xa3d70a3d70a3d70b
imul r12
lea r14, [r12 + rdx]
sar r14, 6
mov rax, r14
shr rax, 0x3f
add r14, rax
test r14, r14
jle 0x140025534
mov rax, r12
sub rax, rsi
cqo
idiv r14
mov rdx, rax
mov r8b, 1
lea rcx, [rbp + 0x70]
call fcn.140036290
mov r9d, 0x4000
cmp rsi, r9
cmovb r9, rsi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea rdx, [rbp + 0x470]
mov rcx, rbx
call fcn.140033400
mov rbx, qword [rbp - 0x50]
sub rsi, rbx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44d0]
mov r8d, ebx
lea rdx, [rbp + 0x470]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp + 0x44d0]
cmp rax, rbx
jne 0x140025651
test rsi, rsi
mov rbx, qword [rbp + 0x44b8]
jg 0x140025515
lea rax, vtable.CProgress.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.14011b0fc
mov rdx, qword [rbp + 0x468]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400255d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x380]
call fcn.1401345c0
lea rcx, [rbp + 0x298]
call fcn.14012325c
lea rcx, [rbp + 0x1b0]
call fcn.14012325c
lea rcx, [rbp + 0x70]
call fcn.140122134
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140025636
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14002562c
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140025636
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x45b0]
add rsp, 0x4570
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
lea edx, [r8 + 0x10]
lea rcx, str.There_was_an_error_creating_the_undo..._could_disk_space_be_running_low_
call fcn.14012189c
movsxd rax, dword [r15 + 0x10]
lea esi, [rax - 1]
lea rbx, [rax + rax*2]
shl rbx, 4
add rbx, 0xffffffffffffffd0
mov rax, qword [r15 + 0x20]
mov rcx, qword [rbx + rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140025698
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15 + 0x20]
add rcx, rbx
call fcn.140042440
mov edx, esi
lea rcx, [r15 + 8]
call fcn.140025720
nop
lea rax, vtable.CProgress.0
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
call fcn.14011b0fc
mov rdx, qword [rbp + 0x468]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400256d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x380]
call fcn.1401345c0
lea rcx, [rbp + 0x298]
call fcn.14012325c
lea rcx, [rbp + 0x1b0]
call fcn.14012325c
lea rcx, [rbp + 0x70]
call fcn.140122134
nop
mov rdx, qword [rsp + 0x70]
jmp 0x1400250a3
mov ecx, 0x80004005
call fcn.1400180c0
int3