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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x970
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov r12, rcx
mov ebp, r8d
mov rdi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0xfe
mov r14d, r9d
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x60], bx
call sub.ntdll.dll_memset
lea rdx, str._sMountedDevices
lea rcx, [rsp + 0x60]
mov r8, rdi
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x40]
mov r9d, 0xf013f
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005e8bd
call fcn.140049470
lea rbp, [0x140433b50]
xor edx, edx
mov rcx, rbp
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea edx, [rbx + 0x5c]
lea rcx, str..._reg.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005e8a3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x50]
mov r8d, Ordinal_1701
mov byte [rsp + 0x50], bl
mov qword [rsp + 0x51], rax
mov word [rsp + 0x59], ax
mov byte [rsp + 0x5b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbp
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005e860
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x50]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005e890
mov rbx, rbp
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_UpdateDosDevices.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005ea82
lea rcx, [rsp + 0x562]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + reloc.MFC80U.DLL_Ordinal_1376], bx
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x48], 0x400
mov edi, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005ea61
mov rsi, qword [rsp + 0x9c0]
mov qword [rsp + 0x9a0], r13
mov r13, qword [rsp + 0x9c8]
nop
nop
nop
nop
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x3ff
add edi, 1
mov byte [rsp + 0x160], bl
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x4c], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005ea06
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xc
jb 0x14005ea06
cmp dword [rsp + 0x160], ebp
jne 0x14005ea06
mov eax, dword [r12]
imul rax, rsi
cmp qword [rsp + 0x164], rax
jne 0x14005ea06
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x160]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x160], r14d
mov qword [rsp + 0x164], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005ea06
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
xor edx, edx
mov r8d, 0x400
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x48], 0x400
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005e940
mov r13, qword [rsp + 0x9a0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x9b0]
add rsp, 0x970
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret