Function at 0x1403a4f48
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14d, 4
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
mov byte [rsp + 0xa1], 0
call sub.MSVCR90.dll__getdrive
or r13, 0xffffffffffffffff
mov rdi, rsi
mov r11d, eax
xor eax, eax
mov rcx, r13
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp ecx, 3
jl 0x1403a4fcd
cmp byte [rsi + 1], 0x3a
jne 0x1403a4fcd
cmp byte [rsi + 2], 0x5c
jne 0x1403a4fcd
movsx ecx, byte [rsi]
call sub.MSVCR90.dll_toupper
mov byte [rsp + 0xa0], al
jmp 0x1403a4fd9
add r11b, 0x40
mov byte [rsp + 0xa0], r11b
and qword [rsp + 0x30], 0
and dword [rbx], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test rax, rax
mov rdi, rax
je 0x1403a53a7
cmp rax, r13
je 0x1403a53a7
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1403a5044
mov ecx, dword [rsp + 0x94]
mov edx, dword [rsp + 0x98]
add edx, ecx
btr edx, 0x1f
mov dword [rbx], edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx], 0
jle 0x1403a53a0
lea rax, [rsp + 0x64]
mov rbx, 0xffffffff80000002
mov edi, 0xf003f
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
lea r9, [0x1403f5c5d]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, str.SoftwareSymantecSpeed_Disk_Unmovable_FilesAttributes
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], edi
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x54]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403a50d9
or dword [rsp + 0x50], r14d
jmp 0x1403a50de
mov dword [rsp + 0x50], r14d
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x50]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x64]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsDefragAppStartParams
lea r9, [0x1403f5c5d]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], edi
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rax, qword [str.ExcludeFiles]
lea rdx, [rsp + 0xa0]
mov qword [rdx], rax
mov eax, dword [0x1404791b0]
mov r14d, 0x40
mov dword [rdx + 8], eax
mov al, byte [0x1404791b4]
mov ecx, r14d
mov byte [rdx + 0xc], al
mov eax, 0x800
mov rdx, rax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x60]
mov rbx, rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [r14 + 0x1c]
mov rcx, rsi
mov edi, eax
call sub.MSVCR90.dll_strrchr
test rax, rax
jne 0x1403a51ee
lea rcx, [rsp + 0xc0]
sub rcx, rsi
mov al, byte [rsi]
mov byte [rcx + rsi], al
add rsi, 1
test al, al
jne 0x1403a51df
jmp 0x1403a5217
mov edx, 0x5c
mov rcx, rsi
call sub.MSVCR90.dll_strrchr
lea rdx, [rsp + 0xc0]
lea rcx, [rax + 1]
sub rdx, rcx
mov al, byte [rcx]
mov byte [rdx + rcx], al
add rcx, 1
test al, al
jne 0x1403a520a
lea rcx, [rsp + 0xc0]
call sub.MSVCR90.dll__strupr
mov esi, 0xea
cmp edi, esi
jne 0x1403a527d
mov eax, dword [rsp + 0x54]
mov r8d, r14d
mov rcx, rbx
add eax, 0x800
mov edx, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x60]
mov rbx, rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x1403a522d
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call sub.MSVCR90.dll_strstr
test rax, rax
jne 0x1403a538c
lea rdi, [rsp + 0xc0]
mov rcx, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
lea r9, [rcx - 1]
mov rcx, r13
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx + r9]
mov ecx, dword [rsp + 0x54]
cmp rdx, rcx
jbe 0x1403a530a
lea eax, [rcx + r9 + 1]
mov r8d, r14d
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x60]
mov rbx, rax
lea rax, [rsp + 0x54]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
cmp byte [rcx + rbx - 2], 0x5c
je 0x1403a5331
mov rdi, rbx
mov rcx, r13
repne scasb al, byte [rdi]
movzx eax, word [0x140405e1c]
mov word [rdi - 1], ax
xor eax, eax
mov rdi, rbx
mov rcx, r13
repne scasb al, byte [rdi]
lea rcx, [rsp + 0xc0]
xor edx, edx
mov al, byte [rcx + rdx]
add rdx, 1
test al, al
mov byte [rdi + rdx - 2], al
jne 0x1403a5345
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasb al, byte [rdi]
lea rdx, [rsp + 0xa0]
lea r9d, [rax + 2]
not rcx
xor r8d, r8d
sub rcx, 1
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x54], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
jmp 0x1403a53a9
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1403addc0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret