Function at 0x1400049f0
Capabilities:
Set file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf0
lea rcx, [rsp + 0x30]
call fcn.140092230
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movabs rax, 0x8000000000000000
cmp rdi, rax
je 0x140004dfd
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xe0], xmm0
lea rcx, [rsp + 0x30]
call fcn.140004460
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmm3, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
lea rcx, [rsp + 0x80]
call fcn.1400a43c0
mov r8, rdx
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140092250
cmp qword [rsp + 0x30], 0
jne 0x140004e59
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140004ad0
js 0x140004e65
movzx eax, byte [0x14013e141]
mov edx, 1
mov rcx, rbx
call fcn.140006350
test rax, rax
je 0x140004e6a
mov r15, rax
jmp 0x140004ad6
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
call fcn.140006180
test rax, rax
je 0x140004ba9
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140004b4c
mov rbx, rax
dec rbx
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x140004b39
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.140006360
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140006360
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x140004b6c
mov rcx, qword [rsp + 0xa8]
mov r8d, 1
call fcn.140006360
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140004b8c
mov rcx, qword [rsp + 0x88]
mov r8d, 1
call fcn.140006360
test rdi, rdi
je 0x140004ba2
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call fcn.140006360
xor esi, esi
jmp 0x140004dfd
mov rbx, rax
lea rcx, [rsp + 0x80]
call fcn.1400a43c0
mov r8, rdx
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.14009b480
cmp dword [rsp + 0x30], 2
jne 0x140004c1b
mov rax, qword [rsp + 0x38]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140004c3b
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x140004c06
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.140006360
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140006360
jmp 0x140004c3b
lea rcx, [rsp + 0x80]
call fcn.1400a43c0
mov rcx, rax
call fcn.1400964e0
test al, al
mov rax, rbx
jne 0x140004b06
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0xa0]
call fcn.1400a43c0
mov r8, rdx
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140092270
mov rbx, rax
mov r14, rax
test rax, rax
jne 0x140004d9f
lea rcx, [rsp + 0xa0]
call fcn.1400a43c0
add rdx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
mov word [rsp + 0x40], 0
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.1400026d0
mov r14, qword [rsp + 0xc8]
mov rcx, r14
mov edx, 2
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x140004e0f
xor r15d, r15d
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x140004ce5
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.140006360
test r15, r15
jne 0x140004e77
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xc8], rsi
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rsp + 0xd0], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0xc0]
call fcn.1400a43c0
mov r14, rax
mov r15, rdx
lea rcx, [rsp + 0x30]
call fcn.1400a43c0
mov r9, rdx
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14009b880
mov r15, rax
mov r14, rdx
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140004d76
mov rcx, qword [rsp + 0x38]
mov r8d, 1
call fcn.140006360
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x140004d96
mov rcx, qword [rsp + 0xc8]
mov r8d, 1
call fcn.140006360
test r15, r15
je 0x140004e35
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x140004dbf
mov rcx, qword [rsp + 0xa8]
mov r8d, 1
call fcn.140006360
test rbx, rbx
je 0x140004dfa
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140004de4
mov rcx, qword [rsp + 0x88]
mov r8d, 1
call fcn.140006360
test rdi, rdi
je 0x140004dfa
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call fcn.140006360
mov rsi, r14
mov rax, rsi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
jne 0x140004cd4
jmp 0x140004ce5
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x140004ba2
mov rcx, qword [rsp + 0xa8]
mov r8d, 1
jmp 0x140004b9d
lea rcx, [0x1400b88d8]
call fcn.1400b76b0
call fcn.1400acde0
mov ecx, 1
mov rdx, rbx
call fcn.1400b74d0
mov qword [rsp + 0x30], r15
lea rax, [0x1400b88c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400b87b0]
lea r9, [0x1400b8800]
lea r8, [rsp + 0x30]
mov edx, 0x2b
call fcn.1400b7b30
int3