Function at 0x4cf540
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
sub rsp, 0x128
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov rax, qword [0x006443a8]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
mov qword [r11 - 0x88], rcx
mov dword [rsp + 0x60], 0
lea rcx, [r11 - 0x48]
call fcn.004cb620
nop
mov ebx, esi
shr ebx, 2
not ebx
and ebx, 1
cmp ebx, 2
jge 0x4cf862
nop
cmp ebx, 1
jne 0x4cf5e1
test bl, sil
je 0x4cf5e1
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rcx, qword [rsp + 0xe8]
lea edx, [rbx + 0x7f]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4cf61f
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rcx, qword [rsp + 0xe8]
call fcn.005711e0
test eax, eax
je 0x4cf83e
cmp ebx, 1
je 0x4cf786
add ebx, 1
cmp ebx, 2
jge 0x4cf862
jmp 0x4cf5b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x64]
call fcn.004910d0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.004677a0
nop
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.00467ad0
nop
mov rax, qword [0x00640e40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x88]
mov edx, 0xe7d10016
lea rcx, [rsp + 0x80]
call fcn.00465350
nop
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.00467690
nop
mov rdx, rbp
lea rcx, [rsp + 0xb0]
call fcn.00467ad0
nop
mov rax, qword [0x00640e40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xb0]
mov edx, 0xe7d10017
mov rcx, rdi
call fcn.00465350
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0xb0]
call fcn.004679c0
nop
lea rcx, [rsp + 0xc8]
call fcn.004679c0
nop
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x4cf74d
add dword [rbx], 0xffffffff
cmp dword [rbx], 0
jne 0x4cf74d
mov rcx, rbx
call fcn.0045f110
mov rcx, rbx
call fcn.00568830
nop
lea rcx, [rsp + 0x88]
call fcn.004679c0
nop
lea rcx, [rsp + 0x68]
call fcn.004679c0
nop
cmp qword [rsp + 0x100], 8
jb 0x4cf77e
mov rcx, qword [rsp + 0xe8]
call fcn.00568830
mov rax, rdi
jmp 0x4cf8da
call fcn.00570710
mov r8b, 1
mov edx, dword [rax]
lea rcx, [rsp + 0x64]
call fcn.00491120
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.004677a0
nop
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.00467ad0
nop
mov rax, qword [0x00640e40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x68]
mov edx, 0xe7d10017
mov rcx, rdi
call fcn.00465350
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x68]
call fcn.004679c0
nop
lea rcx, [rsp + 0x88]
call fcn.004679c0
nop
cmp qword [rsp + 0x100], 8
jb 0x4cf836
mov rcx, qword [rsp + 0xe8]
call fcn.00568830
mov rax, rdi
jmp 0x4cf8da
mov qword [rdi], 0
cmp qword [rsp + 0x100], 8
jb 0x4cf85d
mov rcx, qword [rsp + 0xe8]
call fcn.00568830
mov rax, rdi
jmp 0x4cf8da
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.00467ad0
nop
mov r9, qword [0x00640e40]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
lea r8, [rsp + 0x68]
mov edx, 0xe7d10017
mov rcx, rdi
call fcn.00465350
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x68]
call fcn.004679c0
nop
cmp qword [rsp + 0x100], 8
jb 0x4cf8d7
mov rcx, qword [rsp + 0xe8]
call fcn.00568830
mov rax, rdi
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.00568fb0
mov rbx, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
add rsp, 0x128
ret