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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x980
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2421], rax
mov r13, qword [rsp + 0x9d0]
mov r12, rcx
mov esi, r8d
mov rdi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x72]
mov r8d, 0xfe
xor edx, edx
mov rbp, r9
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x70], bx
call sub.ntdll.dll_memset
lea rdx, str._sMountedDevices
lea rcx, [rsp + 0x70]
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 + 0x70]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005e53d
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 0x14005e523
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x50]
mov r8d, 0x66a
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
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005e4e0
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 0x14005e510
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 0x14005e731
lea rcx, [rsp + 0x172]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x170], 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 + 0x170]
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 0x14005e710
mov qword [rsp + 0x9b0], r14
movabs r14, 0x3a44493a4f494d44
nop
lea rcx, [rsp + 0x571]
xor edx, edx
mov r8d, 0x3ff
add edi, 1
mov byte [rsp + 0x570], bl
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x570]
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 0x14005e6b5
cmp dword [rsp + 0x4c], 0xc
jb 0x14005e6b5
cmp dword [rsp + 0x570], esi
jne 0x14005e6b5
mov eax, dword [r12]
imul rax, rbp
cmp qword [rsp + 0x574], rax
jne 0x14005e6b5
xor eax, eax
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x51], rax
mov qword [rsp + 0x59], rax
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
mov eax, dword [r13 + 0x78]
mov qword [rsp + 0x50], r14
mov dword [rcx], eax
mov eax, dword [r13 + 0x7c]
mov dword [rcx + 4], eax
mov eax, dword [r13 + 0x80]
mov r9d, 3
mov dword [rcx + 8], eax
mov eax, dword [r13 + 0x84]
xor r8d, r8d
mov dword [rcx + 0xc], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005e6b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x170]
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 + 0x170]
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 0x14005e5b0
mov r14, qword [rsp + 0x9b0]
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 + 0x970]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x9c0]
add rsp, 0x980
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret