Function at 0x14001d764
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4d0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
cmp rdx, r14
je 0x14001d7ad
mov dword [rdx], r14d
cmp rcx, r14
je 0x14001db3c
cmp rdx, r14
je 0x14001db3c
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x4c], r14d
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x40], r14
mov rax, qword [rbx]
lea r8, [rsp + 0x40]
lea rdx, [0x140002408]
mov rcx, rbx
call qword [rax]
cmp eax, r14d
jl 0x14001d837
mov rax, qword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rax + 0x28]
cmp eax, r14d
je 0x14001d824
lea rcx, [rsp + 0x50]
call fcn.1400150a4
cmp eax, r14d
jl 0x14001d837
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.14002139c
cmp eax, r14d
jl 0x14001d837
mov rax, qword [rbx]
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [rax + 0x30]
mov rax, qword [rbx]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [rax + 0x90]
mov ecx, dword [rsp + 0x48]
mov edx, 0xc96441
cmp eax, r14d
cmovl ecx, edx
mov dword [rsp + 0x48], ecx
mov word [rsp + 0xa0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xa2]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
cmp rax, r14
je 0x14001db17
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_UuidCreateSequential]
mov dword [rsp + 0x5c], eax
cmp eax, r14d
je 0x14001d8ac
cmp eax, 0x720
jne 0x14001d98e
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_UuidHash]
movzx r12d, ax
mov edi, dword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x4c]
mov word [rsp + 0x2b0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2b2]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2b0]
call fcn.14001c3c0
mov ebx, eax
cmp eax, r14d
jl 0x14001d938
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rbp
mov r9d, r13d
mov r8d, r12d
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.14001c424
mov ebx, eax
cmp ebx, r14d
jl 0x14001daf7
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14001d9b3
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
cmp eax, 0x50
je 0x14001d879
cmp eax, 0xb7
jne 0x14001d998
jmp 0x14001d879
mov ebx, 0x80004005
jmp 0x14001db1c
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001d9a9
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov ebx, 0x80004005
jmp 0x14001db08
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call fcn.140020fd4
mov ebx, eax
mov rdi, r14
mov eax, 0x2011
cmp ax, word [rsp + 0x68]
cmove rdi, qword [rsp + 0x70]
mov rdx, r14
mov qword [rsp + 0x60], rdx
mov r8d, r14d
cmp ebx, r14d
jl 0x14001dad5
cmp rdi, r14
je 0x14001da0e
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ebx, eax
mov r8d, dword [rdi + 0x18]
mov rdx, qword [rsp + 0x60]
cmp rdx, r14
jne 0x14001da1c
cmp ebx, r14d
jl 0x14001dad5
mov ebx, 0x80004005
cmp ebx, r14d
jl 0x14001dad5
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_WriteFile]
mov r13d, 0x80070000
cmp eax, r14d
jne 0x14001da59
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
movzx ebx, ax
or ebx, r13d
cmp eax, r14d
cmovle ebx, eax
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
cmp eax, r14d
jne 0x14001da7d
cmp ebx, r14d
jl 0x14001da7d
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
movzx ebx, ax
or ebx, r13d
cmp eax, r14d
cmovle ebx, eax
mov edx, 0x2000
lea rcx, [rsp + 0xa0]
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_SetFileAttributesW]
cmp rdi, r14
je 0x14001da9e
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp ebx, r14d
jl 0x14001dab5
mov dword [rsi], r12d
mov edx, r12d
mov rcx, qword [rsp + 0x40]
call fcn.140021088
mov ebx, eax
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001dac6
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x14001db41
cmp rdi, r14
je 0x14001dae4
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001daf5
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14001db08
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001db08
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x14001db41
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14001db2d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x14001db41
mov eax, 0x80070057
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret