Function at 0x1400203c0
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, rcx
mov ebx, 4
mov dword [rsp + 0xc8], ebx
lea rdx, str.SOFTWARETrendMicroPC_cillinNTCorpCurrentVersionMisc.
test rdx, rdx
je 0x140020496
lea rdi, str.DumpMaximumFiles
test rdi, rdi
je 0x140020496
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002048f
mov dword [rsp + 0xd8], eax
mov dword [rsp + 0xd0], ebx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd8]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0xc8]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0xc8], ecx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0xc8]
mov qword [rsp + 0x28], rbx
lea r13, str.PurgeDumpFile
mov qword [rsp + 0x20], r13
lea r9, str._s____Exception_Helper__nMaximumFiles____d_.
mov r8d, 0x14c
lea rdx, str..eh_ExceptionHelper.cpp
mov ecx, 0x44
call fcn.140038200
mov rdi, qword [rsi + 0x10]
sub edi, ebx
test edi, edi
jle 0x140020658
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
lea r9, str._s___Deleting___d__dump_files.
mov r8d, 0x151
lea rdx, str..eh_ExceptionHelper.cpp
mov ecx, 0x44
call fcn.140038200
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
test edi, edi
jle 0x140020658
mov ebp, edi
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
nop
nop
test r12, r12
jne 0x14002053a
call fcn.140041c30
cmp rbx, qword [rsi + 8]
jne 0x140020545
call fcn.140041c30
cmp qword [rbx + 0x38], 8
jb 0x140020552
mov rcx, qword [rbx + 0x20]
jmp 0x140020556
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400205a6
cmp rbx, qword [rsi + 8]
jne 0x14002056b
call fcn.140041c30
cmp qword [rbx + 0x38], 8
jb 0x140020578
mov rax, qword [rbx + 0x20]
jmp 0x14002057c
lea rax, [rbx + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, str._s___Delete_dump_file__s__successfully.
mov r8d, 0x158
lea rdx, str..eh_ExceptionHelper.cpp
mov ecx, 0x44
call fcn.140038200
jmp 0x1400205f4
cmp rbx, qword [rsi + 8]
jne 0x1400205b1
call fcn.140041c30
cmp qword [rbx + 0x38], 8
jb 0x1400205be
mov rdi, qword [rbx + 0x20]
jmp 0x1400205c2
lea rdi, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
lea r9, str._s___Delete_dump_file__s__failed:___d_.
mov r8d, 0x15c
lea rdx, str..eh_ExceptionHelper.cpp
mov ecx, 0x44
call fcn.140038200
cmp byte [rbx + 0x41], 0
je 0x140020601
call fcn.140041c30
jmp 0x14002064e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x41], 0
jne 0x14002062e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], 0
jne 0x14002064e
nop
nop
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x41], 0
je 0x140020620
jmp 0x14002064e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x41], 0
jne 0x14002064b
cmp rbx, qword [rax + 0x10]
jne 0x14002064b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x41], 0
je 0x140020638
mov rbx, rax
sub rbp, 1
jne 0x140020530
mov rax, qword [rsi + 8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140021580
mov rcx, qword [rsi + 8]
call fcn.140041700
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], 0
add rsp, 0x88
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret