Function at 0x140061130
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15, rdx
mov r13, rcx
mov r14d, 1
xor r8d, r8d
lea rdx, [0x1400e8c10]
mov rcx, r15
call fcn.14000f160
cmp qword [r13 + 0x70], 0
jne 0x1400613de
xor r12d, r12d
mov rbx, r12
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWARETrendMicroPC_cillinNTCorpCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400613a2
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x50], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x52]
call fcn.1400a0a70
mov dword [rsp + 0x38], 0x208
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Application_Path
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140061262
mov r14d, r12d
mov dword [rsp + 0x28], eax
lea rax, str.CProfileDocument::GetAppPath
mov qword [rsp + 0x20], rax
lea r9, str._s___Can_not_find_application_path__d_
mov r8d, 0x509
lea rdx, str..libTmProfileDocument.cpp
lea ecx, [r12 + 0x57]
call fcn.1400580a0
jmp 0x1400613d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
je 0x140061295
or r9, 0xffffffffffffffff
lea r8, [0x1400e86b8]
mov edx, 0x105
lea rcx, [rsp + 0x50]
call fcn.1400a7cc0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
mov rdx, qword [r13 + 0x78]
cmp rdx, 8
jb 0x1400612bd
lea rdi, [r13 + 0x60]
mov rax, qword [rdi]
jmp 0x1400612c4
lea rdi, [r13 + 0x60]
mov rax, rdi
lea rcx, [rsp + 0x50]
cmp rcx, rax
jb 0x140061317
cmp rdx, 8
jb 0x1400612d9
mov rcx, qword [rdi]
jmp 0x1400612dc
mov rcx, rdi
mov rax, qword [r13 + 0x70]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x50]
cmp rcx, rax
jbe 0x140061317
cmp rdx, 8
jb 0x1400612f7
mov rdi, qword [rdi]
lea r8, [rsp + 0x50]
sub r8, rdi
sar r8, 1
mov r9, rbp
lea rdx, [r13 + 0x58]
lea rcx, [r13 + 0x58]
call fcn.14000ef60
jmp 0x1400613d0
movabs rax, 0x7ffffffffffffffe
cmp rbp, rax
jbe 0x14006132b
call fcn.1400cbc00
mov rax, qword [r13 + 0x78]
cmp rax, rbp
jae 0x140061346
mov r8, qword [r13 + 0x70]
mov rdx, rbp
lea rcx, [r13 + 0x58]
call fcn.14000f350
jmp 0x14006135f
test rbp, rbp
jne 0x14006135f
mov qword [r13 + 0x70], r12
cmp rax, 8
jb 0x140061358
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x1400613d0
test rbp, rbp
je 0x1400613d0
mov rdx, qword [r13 + 0x78]
cmp rdx, 8
jb 0x140061373
mov rcx, qword [rdi]
jmp 0x140061376
mov rcx, rdi
lea r12, [rbp + rbp]
add rdx, rdx
mov r9, r12
lea r8, [rsp + 0x50]
call fcn.14009d1a0
mov qword [r13 + 0x70], rbp
cmp qword [r13 + 0x78], 8
jb 0x140061399
mov rdi, qword [rdi]
mov word [r12 + rdi], 0
jmp 0x1400613d0
mov r14d, r12d
lea rax, str.CProfileDocument::GetAppPath
mov qword [rsp + 0x20], rax
lea r9, str._s___Can_not_open_reg
mov r8d, 0x500
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x57
call fcn.1400580a0
nop
test rbx, rbx
je 0x1400613de
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [r13 + 0x58]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, r15
call fcn.14000ef60
mov eax, r14d
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14009cca0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret