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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x970
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, r8
mov rdi, rdx
xor esi, esi
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0xfe
mov rbp, r9
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x60], si
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 0x14005c76d
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 0x14005c753
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x50]
mov r8d, 0x438
mov byte [rsp + 0x50], sil
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 0x14005c710
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 0x14005c740
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 0x14005c9d4
lea rcx, [rsp + 0x562]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + reloc.MFC80U.DLL_Ordinal_1376], si
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x48]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x48], 0x400
mov edi, esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005c959
nop
nop
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x3ff
add edi, 1
mov byte [rsp + 0x160], sil
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 0x14005c906
mov edx, dword [rsp + 0x4c]
cmp edx, 0x18
jb 0x14005c906
mov rax, qword [rsp + 0x160]
cmp rax, qword [str.DMIO:ID:]
jne 0x14005c906
lea rcx, [rsp + 0x168]
lea r8, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [r8], rax
mov rax, qword [rcx + 8]
mov qword [r8 + 8], rax
mov eax, dword [rbx + 0x78]
cmp dword [rsp + 0x168], eax
jne 0x14005c906
mov rcx, qword [rsp + 0x168]
mov rax, rcx
shr rax, 0x20
cmp ax, word [rbx + 0x7c]
jne 0x14005c906
shr rcx, 0x30
cmp cx, word [rbx + 0x7e]
jne 0x14005c906
mov rax, qword [rsp + 0x58]
cmp rax, qword [rbx + 0x80]
jne 0x14005c906
mov eax, dword [rbp + 0x78]
lea rcx, [rsp + 0x168]
mov dword [rsp + 0x28], edx
mov dword [rcx], eax
mov eax, dword [rbp + 0x7c]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
mov dword [rcx + 4], eax
mov eax, dword [rbp + 0x80]
mov r9d, 3
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0x84]
xor r8d, r8d
mov dword [rcx + 0xc], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005c906
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], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x48]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_1376]
mov edx, edi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x48], 0x400
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005c7d0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x14005c994
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x47e
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_RegFlushKey_Failed.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14005c9cf
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x485
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_RegCloseKey_Failed.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
mov eax, 1
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x990]
add rsp, 0x970
pop rdi
pop rsi
pop rbp
ret