Function at 0x14005ca00
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, 0x990
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2435], rax
mov r12, rcx
mov rbx, r8
mov rdi, rdx
xor esi, esi
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0xfe
mov r13d, r9d
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x80], si
call sub.ntdll.dll_memset
lea rdx, str._sMountedDevices
lea rcx, [rsp + 0x80]
mov r8, rdi
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x48]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005cb6d
call fcn.140049470
lea rbp, [0x140433b50]
xor edx, edx
mov rcx, rbp
mov r8d, 0x80
mov rbx, rax
call sub.ntdll.dll_memset
lea edx, [rsi + 0x5c]
lea rcx, str..._reg.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005cb53
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x68]
mov r8d, Ordinal_1173
mov byte [rsp + 0x68], sil
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], 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 0x14005cb10
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x68]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005cb40
mov rsi, rbp
mov rax, qword [rbx]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_UpdateDosDevices.
mov r8, rsi
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005cd80
lea rcx, [rsp + 0x582]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + Ordinal_1412], si
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x580]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], 0x400
mov edi, esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005cd65
mov rbp, qword [rsp + 0x9e0]
nop
nop
nop
nop
lea rcx, [rsp + 0x181]
xor edx, edx
mov r8d, 0x3ff
add edi, 1
mov byte [rsp + 0x180], sil
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x580]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x180]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005cd12
cmp dword [rsp + 0x50], 0x18
jb 0x14005cd12
mov rax, qword [rsp + 0x180]
cmp rax, qword [str.DMIO:ID:]
jne 0x14005cd12
lea rcx, [rsp + 0x188]
lea rdx, [rsp + 0x58]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov eax, dword [rbx + 0x78]
cmp dword [rsp + 0x188], eax
jne 0x14005cd12
mov rcx, qword [rsp + 0x188]
mov rax, rcx
shr rax, 0x20
cmp ax, word [rbx + 0x7c]
jne 0x14005cd12
shr rcx, 0x30
cmp cx, word [rbx + 0x7e]
jne 0x14005cd12
mov rax, qword [rsp + 0x60]
cmp rax, qword [rbx + 0x80]
jne 0x14005cd12
mov rcx, qword [rsp + 0x48]
xor eax, eax
lea rdx, [rsp + 0x580]
mov qword [rsp + 0x69], rax
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
mov eax, dword [r12]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x68], r13d
imul rax, rbp
mov qword [rsp + 0x6c], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005cd12
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x580]
xor edx, edx
mov r8d, 0x400
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x580]
mov edx, edi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005cbe0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x980]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x9d0]
add rsp, 0x990
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret