Function at 0x140001870
Capabilities:
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xe30
lea rax, [0x140002e80]
mov qword [rsp + 0xde0], rax
lea rax, [0x140002ea0]
mov qword [rsp + 0xde8], rax
call fcn.140002f60
lea rax, [0x140002eb0]
mov qword [rsp + 0xdd0], rax
lea rax, [0x140002ed0]
mov qword [rsp + 0xdd8], rax
lea rcx, [rsp + 0xdb8]
call fcn.1400034b0
lea rcx, [rsp + 0xd70]
xor edx, edx
call fcn.1400038c0
mov qword [rsp + 0xda8], 0
mov qword [rsp + 0xe20], 0
lea rcx, [rsp + 0xdc8]
mov rdx, qword [0x140023e80]
call fcn.1400031d0
test eax, eax
je 0x140001916
mov ebx, 0xb
jmp 0x14000194f
cmp qword [0x140023e40], 0
je 0x140001931
mov rax, qword [0x140023e40]
mov eax, dword [rax]
mov qword [rsp + 0xe20], rax
lea rcx, [rsp + 0xdc8]
lea rdx, [rsp + 0xe20]
xor r8d, r8d
call fcn.140003350
test eax, eax
jne 0x14000190f
xor ebx, ebx
test ebx, ebx
jne 0x1400019af
lea rcx, [rsp + 0xde0]
mov edx, 0x40000
call qword [rsp + 0xde0]
mov qword [rsp + 0xda8], rax
test rax, rax
je 0x1400019aa
mov qword [rsp + 0xdb0], 0x40000
lea rax, [rsp + 0xdb8]
mov qword [rsp + 0xd90], rax
mov qword [rsp + 0xda0], 0
mov qword [rsp + 0xd98], 0
jmp 0x1400019af
mov ebx, 2
lea rcx, [rsp + 0xc98]
call fcn.140003af0
test ebx, ebx
je 0x1400019d9
cmp byte [0x140022840], 0
jne 0x140001fb8
mov ecx, ebx
call fcn.140001730
jmp 0x140001fb8
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xd70]
lea r8, [rsp + 0xde0]
lea r9, [rsp + 0xdd0]
call fcn.140006990
mov ebx, eax
test ebx, ebx
jne 0x1400019c0
mov dword [rsp + 0x5c], 0xffffffff
mov qword [rsp + 0xe18], 0
mov qword [rsp + 0xe10], 0
mov qword [0x140023ec0], 0
mov qword [0x140023ea0], 0
cmp dword [rsp + 0xcf8], 0
jbe 0x140001aa8
xor esi, esi
mov rax, qword [rsp + 0xd08]
mov edx, esi
shr edx, 3
movzx eax, byte [rax + rdx]
mov edx, pe_nt_image_headers64
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x140001a71
add qword [0x140023ec0], 1
jmp 0x140001a9c
mov rax, qword [rsp + 0xd00]
lea edx, [esi + 1]
mov edx, edx
mov rdx, qword [rax + rdx*8]
mov ecx, esi
sub rdx, qword [rax + rcx*8]
mov rax, qword [0x140023ec0]
lea rax, [rax + rdx + 1]
mov qword [0x140023ec0], rax
add esi, 1
cmp esi, dword [rsp + 0xcf8]
jb 0x140001a46
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0xcf8], 0
ja 0x140001d71
mov edi, ebx
jmp 0x140001f97
mov edi, 0xb
jmp 0x140001f97
cmp byte [0x140022840], 0
jne 0x140001e0e
lea r14, [rsp + r12*2 + 0x67c]
mov edx, esi
lea rcx, [rsp + 0xc98]
mov r8, r14
call fcn.140006c10
cmp byte [0x140023ee0], 0
jne 0x140001b0f
mov rcx, r14
call fcn.1400017a0
lea rax, [rsp + 0xdd0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xde0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe00]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xe08]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe18]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xd70]
mov r8d, esi
lea r9, [rsp + 0x5c]
call fcn.1400069d0
mov ebx, eax
test ebx, ebx
jne 0x140001ac6
mov rax, qword [rsp + 0xd08]
mov edx, esi
shr edx, 3
movzx eax, byte [rax + rdx]
mov edx, pe_nt_image_headers64
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
setne r15b
movzx r15d, r15b
cmp word [r14], 0
je 0x140001bed
xor r13, r13
cmp word [r14 + r13*2], 0x2f
jne 0x140001be1
mov word [r14 + r13*2], 0
cmp dword [0x140022b60], 0
je 0x140001bda
lea rcx, [rsp + 0x67c]
call fcn.140016710
mov word [r14 + r13*2], 0x5c
add r13, 1
cmp word [r14 + r13*2], 0
jne 0x140001bb5
test r15d, r15d
je 0x140001cd8
cmp dword [0x140022b60], 0
je 0x140001c28
lea rcx, [rsp + 0x67c]
call fcn.140016710
cmp byte [0x140022b40], 0
je 0x140001c28
mov ecx, 1
lea rdx, [rsp + 0x67c]
call qword [sym.imp.pbcore64.dll_AddUninstLog]
add qword [0x140023ea0], 1
call fcn.140001800
jmp 0x140001cc3
mov rax, qword [0x140023ea0]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140023ea0], rax
call fcn.140001800
jmp 0x140001cc3
mov rax, qword [0x140023ea0]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140023ea0], rax
call fcn.140001800
jmp 0x140001cc3
cmp qword [rsp + 0xd20], 0
je 0x140001cc3
mov rax, qword [rsp + 0xd20]
mov edx, esi
shr edx, 3
movzx eax, byte [rax + rdx]
mov edx, pe_nt_image_headers64
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x140001cc3
mov rax, qword [rsp + 0xd28]
mov edx, esi
mov edx, dword [rax + rdx*4]
lea rcx, [rsp + 0x67c]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esi, 1
cmp esi, dword [rsp + 0xcf8]
jb 0x140001d73
jmp 0x140001ac6
cmp qword [rsp + 0xd30], 0
je 0x140001d1d
mov rax, qword [rsp + 0xd30]
mov edx, esi
shr edx, 3
movzx eax, byte [rax + rdx]
mov edx, pe_nt_image_headers64
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x140001d1d
mov rax, qword [rsp + 0xd38]
mov edx, esi
mov ecx, dword [rax + rdx*8 + 4]
mov dword [rsp + 0x58], ecx
mov eax, dword [rax + rdx*8]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x67c]
mov rdx, qword [rsp + 0xe00]
lea r8, [rsp + 0x58]
lea r9, [rsp + 0x54]
call qword [0x140023e20]
cmp eax, 1
je 0x140001d52
xor edx, edx
cmp eax, 2
jne 0x140001d57
mov byte [0x140022840], 1
jmp 0x140001d57
mov edx, 1
cmp byte [0x140022840], 0
jne 0x140001e0e
test edx, edx
je 0x140001e18
jmp 0x140001c3a
xor esi, esi
mov qword [rsp + 0xe08], 0
mov qword [rsp + 0xe00], 0
mov edx, esi
lea rcx, [rsp + 0xc98]
xor r8, r8
call fcn.140006c10
mov r14, rax
lea rdx, [rsp + 0x67c]
mov r8, qword [0x140023e60]
xor ecx, ecx
nop word [rax + rax]
nop word [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001dc0
lea rcx, [rsp + 0x67c]
call fcn.140016570
lea rax, [rsp + 0x67c]
or r12, 0xffffffffffffffff
nop dword [rax + rax]
add r12, 1
cmp word [rax + r12*2], 0
jne 0x140001df0
cmp r14, 0x104
jb 0x140001ad7
jmp 0x140001acd
mov edi, 2
jmp 0x140001f97
lea rcx, [rsp + 0xdf8]
lea rdx, [rsp + 0x67c]
call fcn.1400031e0
test eax, eax
je 0x140001e8f
lea rcx, str.errorcreatefile
lea rdx, [rsp + 0x60]
mov r8d, 0x61c
call qword [sym.imp.pbcore64.dll_EvalVarBuf]
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x67c]
call fcn.14000e040
xor ecx, ecx
lea rdx, [rsp + 0x60]
lea r8, [0x140022860]
mov r9d, 0x116
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x140001e8a
cmp eax, 0xa
je 0x140001e18
cmp eax, 0xb
je 0x140001c5b
jmp 0x140001e8f
mov ebx, 0xb
mov rax, qword [rsp + 0xe00]
mov qword [rsp + 0xdf0], rax
mov rax, qword [rsp + 0xe18]
mov rdx, rax
add rdx, qword [rsp + 0xe08]
lea rcx, [rsp + 0xdf8]
lea r8, [rsp + 0xdf0]
call fcn.1400032c0
test eax, eax
jne 0x140001edd
mov rax, qword [rsp + 0xe00]
cmp qword [rsp + 0xdf0], rax
je 0x140001f16
lea rcx, str.errorwritefile
lea rdx, [rsp + 0x60]
mov r8d, 0x61c
call qword [sym.imp.pbcore64.dll_EvalVarBuf]
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x67c]
call fcn.14000e040
lea rcx, [rsp + 0x60]
call fcn.140016540
mov ebx, 0xb
mov rax, qword [0x140023ea0]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140023ea0], rax
call fcn.140001800
cmp qword [rsp + 0xd30], 0
je 0x140001f78
mov rax, qword [rsp + 0xd30]
mov edx, esi
shr edx, 3
movzx eax, byte [rax + rdx]
mov edx, pe_nt_image_headers64
mov ecx, esi
and ecx, 7
sar edx, cl
test eax, edx
je 0x140001f78
lea rcx, [rsp + 0xdf8]
lea rdx, [rsp + 0x58]
lea r8, [rsp + 0x54]
call fcn.140003520
lea rcx, [rsp + 0xdf8]
call fcn.1400031f0
test ebx, ebx
jne 0x140001ac6
test eax, eax
je 0x140001c7c
mov edi, eax
mov ebx, edi
lea rcx, [rsp + 0xde0]
mov rdx, qword [rsp + 0xe18]
call qword [rsp + 0xde8]
test ebx, ebx
jne 0x1400019c0
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xde0]
call fcn.140003bb0
mov rdx, qword [rsp + 0xda8]
lea rcx, [rsp + 0xde0]
call qword [rsp + 0xde8]
lea rcx, [rsp + 0xdc8]
call fcn.1400031f0
mov eax, ebx
add rsp, 0xe30
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret