Function at 0x140002030
Capabilities:
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xe30
lea rax, [0x140003940]
mov qword [rsp + 0xde0], rax
lea rax, [0x140003960]
mov qword [rsp + 0xde8], rax
call fcn.140003a20
lea rax, [0x140003970]
mov qword [rsp + 0xdd0], rax
lea rax, [0x140003990]
mov qword [rsp + 0xdd8], rax
lea rcx, [rsp + 0xdb8]
call fcn.140003f70
lea rcx, [rsp + 0xd70]
xor edx, edx
call fcn.140004380
mov qword [rsp + 0xda8], 0
mov qword [rsp + 0xe20], 0
lea rcx, [rsp + 0xdc8]
mov rdx, qword [0x140024f60]
call fcn.140003c90
test eax, eax
je 0x1400020d6
mov ebx, 0xb
jmp 0x14000210f
cmp qword [0x140024f20], 0
je 0x1400020f1
mov rax, qword [0x140024f20]
mov eax, dword [rax]
mov qword [rsp + 0xe20], rax
lea rcx, [rsp + 0xdc8]
lea rdx, [rsp + 0xe20]
xor r8d, r8d
call fcn.140003e10
test eax, eax
jne 0x1400020cf
xor ebx, ebx
test ebx, ebx
jne 0x14000216f
lea rcx, [rsp + 0xde0]
mov edx, 0x40000
call qword [rsp + 0xde0]
mov qword [rsp + 0xda8], rax
test rax, rax
je 0x14000216a
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 0x14000216f
mov ebx, 2
lea rcx, [rsp + 0xc98]
call fcn.1400045b0
test ebx, ebx
je 0x140002199
cmp byte [0x140024ee0], 0
jne 0x140002778
mov ecx, ebx
call fcn.140001ef0
jmp 0x140002778
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xd70]
lea r8, [rsp + 0xde0]
lea r9, [rsp + 0xdd0]
call fcn.140007450
mov ebx, eax
test ebx, ebx
jne 0x140002180
mov dword [rsp + 0x5c], 0xffffffff
mov qword [rsp + 0xe18], 0
mov qword [rsp + 0xe10], 0
mov qword [0x140024fa0], 0
mov qword [0x140024f80], 0
cmp dword [rsp + 0xcf8], 0
jbe 0x140002268
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 0x140002231
add qword [0x140024fa0], 1
jmp 0x14000225c
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 [0x140024fa0]
lea rax, [rax + rdx + 1]
mov qword [0x140024fa0], rax
add esi, 1
cmp esi, dword [rsp + 0xcf8]
jb 0x140002206
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0xcf8], 0
ja 0x140002531
mov edi, ebx
jmp 0x140002757
mov edi, 0xb
jmp 0x140002757
cmp byte [0x140024ee0], 0
jne 0x1400025ce
lea r14, [rsp + r12*2 + 0x67c]
mov edx, esi
lea rcx, [rsp + 0xc98]
mov r8, r14
call fcn.1400076d0
cmp byte [0x140024fc0], 0
jne 0x1400022cf
mov rcx, r14
call fcn.140001f60
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.140007490
mov ebx, eax
test ebx, ebx
jne 0x140002286
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 0x1400023ad
xor r13, r13
cmp word [r14 + r13*2], 0x2f
jne 0x1400023a1
mov word [r14 + r13*2], 0
cmp dword [0x140023bc0], 0
je 0x14000239a
lea rcx, [rsp + 0x67c]
call fcn.1400171d0
mov word [r14 + r13*2], 0x5c
add r13, 1
cmp word [r14 + r13*2], 0
jne 0x140002375
test r15d, r15d
je 0x140002498
cmp dword [0x140023bc0], 0
je 0x1400023e8
lea rcx, [rsp + 0x67c]
call fcn.1400171d0
cmp byte [0x140023ba0], 0
je 0x1400023e8
mov ecx, 1
lea rdx, [rsp + 0x67c]
call qword [sym.imp.pbcore64.dll_AddUninstLog]
add qword [0x140024f80], 1
call fcn.140001fc0
jmp 0x140002483
mov rax, qword [0x140024f80]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140024f80], rax
call fcn.140001fc0
jmp 0x140002483
mov rax, qword [0x140024f80]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140024f80], rax
call fcn.140001fc0
jmp 0x140002483
cmp qword [rsp + 0xd20], 0
je 0x140002483
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 0x140002483
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 0x140002533
jmp 0x140002286
cmp qword [rsp + 0xd30], 0
je 0x1400024dd
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 0x1400024dd
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 [0x140024f00]
cmp eax, 1
je 0x140002512
xor edx, edx
cmp eax, 2
jne 0x140002517
mov byte [0x140024ee0], 1
jmp 0x140002517
mov edx, 1
cmp byte [0x140024ee0], 0
jne 0x1400025ce
test edx, edx
je 0x1400025d8
jmp 0x1400023fa
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.1400076d0
mov r14, rax
lea rdx, [rsp + 0x67c]
mov r8, qword [0x140024f40]
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 0x140002580
lea rcx, [rsp + 0x67c]
call fcn.140017030
lea rax, [rsp + 0x67c]
or r12, 0xffffffffffffffff
nop dword [rax + rax]
add r12, 1
cmp word [rax + r12*2], 0
jne 0x1400025b0
cmp r14, 0x104
jb 0x140002297
jmp 0x14000228d
mov edi, 2
jmp 0x140002757
lea rcx, [rsp + 0xdf8]
lea rdx, [rsp + 0x67c]
call fcn.140003ca0
test eax, eax
je 0x14000264f
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.14000eb00
xor ecx, ecx
lea rdx, [rsp + 0x60]
lea r8, [0x1400238c0]
mov r9d, 0x116
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x14000264a
cmp eax, 0xa
je 0x1400025d8
cmp eax, 0xb
je 0x14000241b
jmp 0x14000264f
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.140003d80
test eax, eax
jne 0x14000269d
mov rax, qword [rsp + 0xe00]
cmp qword [rsp + 0xdf0], rax
je 0x1400026d6
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.14000eb00
lea rcx, [rsp + 0x60]
call fcn.140017000
mov ebx, 0xb
mov rax, qword [0x140024f80]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140024f80], rax
call fcn.140001fc0
cmp qword [rsp + 0xd30], 0
je 0x140002738
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 0x140002738
lea rcx, [rsp + 0xdf8]
lea rdx, [rsp + 0x58]
lea r8, [rsp + 0x54]
call fcn.140003fe0
lea rcx, [rsp + 0xdf8]
call fcn.140003cb0
test ebx, ebx
jne 0x140002286
test eax, eax
je 0x14000243c
mov edi, eax
mov ebx, edi
lea rcx, [rsp + 0xde0]
mov rdx, qword [rsp + 0xe18]
call qword [rsp + 0xde8]
test ebx, ebx
jne 0x140002180
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xde0]
call fcn.140004670
mov rdx, qword [rsp + 0xda8]
lea rcx, [rsp + 0xde0]
call qword [rsp + 0xde8]
lea rcx, [rsp + 0xdc8]
call fcn.140003cb0
mov eax, ebx
add rsp, 0xe30
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret