Function at 0x140001850
Capabilities:
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xe30
lea rax, [0x140002e60]
mov qword [rsp + 0xde0], rax
lea rax, [0x140002e80]
mov qword [rsp + 0xde8], rax
call fcn.140002f40
lea rax, [0x140002e90]
mov qword [rsp + 0xdd0], rax
lea rax, [0x140002eb0]
mov qword [rsp + 0xdd8], rax
lea rcx, [rsp + 0xdb8]
call fcn.140003490
lea rcx, [rsp + 0xd70]
xor edx, edx
call fcn.1400038a0
mov qword [rsp + 0xda8], 0
mov qword [rsp + 0xe20], 0
lea rcx, [rsp + 0xdc8]
mov rdx, qword [0x140023e80]
call fcn.1400031b0
test eax, eax
je 0x1400018f6
mov ebx, 0xb
jmp 0x14000192f
cmp qword [0x140023e40], 0
je 0x140001911
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.140003330
test eax, eax
jne 0x1400018ef
xor ebx, ebx
test ebx, ebx
jne 0x14000198f
lea rcx, [rsp + 0xde0]
mov edx, 0x40000
call qword [rsp + 0xde0]
mov qword [rsp + 0xda8], rax
test rax, rax
je 0x14000198a
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 0x14000198f
mov ebx, 2
lea rcx, [rsp + 0xc98]
call fcn.140003ad0
test ebx, ebx
je 0x1400019b9
cmp byte [0x140022840], 0
jne 0x140001f98
mov ecx, ebx
call fcn.140001710
jmp 0x140001f98
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xd70]
lea r8, [rsp + 0xde0]
lea r9, [rsp + 0xdd0]
call fcn.140006970
mov ebx, eax
test ebx, ebx
jne 0x1400019a0
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 0x140001a88
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 0x140001a51
add qword [0x140023ec0], 1
jmp 0x140001a7c
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 0x140001a26
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0xcf8], 0
ja 0x140001d51
mov edi, ebx
jmp 0x140001f77
mov edi, 0xb
jmp 0x140001f77
cmp byte [0x140022840], 0
jne 0x140001dee
lea r14, [rsp + r12*2 + 0x67c]
mov edx, esi
lea rcx, [rsp + 0xc98]
mov r8, r14
call fcn.140006bf0
cmp byte [0x140023ee0], 0
jne 0x140001aef
mov rcx, r14
call fcn.140001780
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.1400069b0
mov ebx, eax
test ebx, ebx
jne 0x140001aa6
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 0x140001bcd
xor r13, r13
cmp word [r14 + r13*2], 0x2f
jne 0x140001bc1
mov word [r14 + r13*2], 0
cmp dword [0x140022b60], 0
je 0x140001bba
lea rcx, [rsp + 0x67c]
call fcn.1400166f0
mov word [r14 + r13*2], 0x5c
add r13, 1
cmp word [r14 + r13*2], 0
jne 0x140001b95
test r15d, r15d
je 0x140001cb8
cmp dword [0x140022b60], 0
je 0x140001c08
lea rcx, [rsp + 0x67c]
call fcn.1400166f0
cmp byte [0x140022b40], 0
je 0x140001c08
mov ecx, 1
lea rdx, [rsp + 0x67c]
call qword [sym.imp.pbcore64.dll_AddUninstLog]
add qword [0x140023ea0], 1
call fcn.1400017e0
jmp 0x140001ca3
mov rax, qword [0x140023ea0]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140023ea0], rax
call fcn.1400017e0
jmp 0x140001ca3
mov rax, qword [0x140023ea0]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140023ea0], rax
call fcn.1400017e0
jmp 0x140001ca3
cmp qword [rsp + 0xd20], 0
je 0x140001ca3
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 0x140001ca3
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 0x140001d53
jmp 0x140001aa6
cmp qword [rsp + 0xd30], 0
je 0x140001cfd
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 0x140001cfd
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 0x140001d32
xor edx, edx
cmp eax, 2
jne 0x140001d37
mov byte [0x140022840], 1
jmp 0x140001d37
mov edx, 1
cmp byte [0x140022840], 0
jne 0x140001dee
test edx, edx
je 0x140001df8
jmp 0x140001c1a
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.140006bf0
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 0x140001da0
lea rcx, [rsp + 0x67c]
call fcn.140016550
lea rax, [rsp + 0x67c]
or r12, 0xffffffffffffffff
nop dword [rax + rax]
add r12, 1
cmp word [rax + r12*2], 0
jne 0x140001dd0
cmp r14, 0x104
jb 0x140001ab7
jmp 0x140001aad
mov edi, 2
jmp 0x140001f77
lea rcx, [rsp + 0xdf8]
lea rdx, [rsp + 0x67c]
call fcn.1400031c0
test eax, eax
je 0x140001e6f
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.14000e020
xor ecx, ecx
lea rdx, [rsp + 0x60]
lea r8, [0x140022860]
mov r9d, 0x116
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x140001e6a
cmp eax, 0xa
je 0x140001df8
cmp eax, 0xb
je 0x140001c3b
jmp 0x140001e6f
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.1400032a0
test eax, eax
jne 0x140001ebd
mov rax, qword [rsp + 0xe00]
cmp qword [rsp + 0xdf0], rax
je 0x140001ef6
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.14000e020
lea rcx, [rsp + 0x60]
call fcn.140016520
mov ebx, 0xb
mov rax, qword [0x140023ea0]
add rax, qword [rsp + 0xe00]
add rax, 1
mov qword [0x140023ea0], rax
call fcn.1400017e0
cmp qword [rsp + 0xd30], 0
je 0x140001f58
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 0x140001f58
lea rcx, [rsp + 0xdf8]
lea rdx, [rsp + 0x58]
lea r8, [rsp + 0x54]
call fcn.140003500
lea rcx, [rsp + 0xdf8]
call fcn.1400031d0
test ebx, ebx
jne 0x140001aa6
test eax, eax
je 0x140001c5c
mov edi, eax
mov ebx, edi
lea rcx, [rsp + 0xde0]
mov rdx, qword [rsp + 0xe18]
call qword [rsp + 0xde8]
test ebx, ebx
jne 0x1400019a0
lea rcx, [rsp + 0xc98]
lea rdx, [rsp + 0xde0]
call fcn.140003b90
mov rdx, qword [rsp + 0xda8]
lea rcx, [rsp + 0xde0]
call qword [rsp + 0xde8]
lea rcx, [rsp + 0xdc8]
call fcn.1400031d0
mov eax, ebx
add rsp, 0xe30
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret