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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa00
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x9f0], rax
mov rbp, qword [rsp + reloc.MFC80U.DLL_Ordinal_2640]
mov rsi, rcx
mov r13, r8
mov r12d, edx
xor ebx, ebx
lea rcx, [rsp + 0xf2]
mov r8d, 0xfe
xor edx, edx
mov r14, r9
mov qword [rsp + 0x40], rbx
mov word [rsp + 0xf0], bx
call sub.ntdll.dll_memset
lea r8d, [rbx + 0x7e]
lea rcx, [rsp + 0x72]
xor edx, edx
mov word [rsp + 0x70], bx
call sub.ntdll.dll_memset
test rbp, rbp
je 0x14005e08a
mov edi, ebx
nop
nop
nop
nop
lea rdx, str.AOMEIHive_d
lea rcx, [rsp + 0x70]
mov r8d, edi
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [rsp + 0x70]
mov r8, rbp
mov rcx, rsi
call fcn.14005b310
test eax, eax
jne 0x14005df93
add edi, 1
cmp edi, 0xa
jl 0x14005df60
jmp 0x14005df9c
cmp edi, 0xa
jl 0x14005e06e
call fcn.140049470
lea rsi, [0x140433b50]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._reg.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005e053
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x50]
mov r8d, Ordinal_1582
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, rsi
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005e010
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
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 0x14005e040
mov rbx, rsi
mov rax, qword [rbp]
lea rdx, str._s:_Load_hive_failed.
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005e39a
lea r8, [rsp + 0x70]
lea rdx, str._sMountedDevices
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCR80.dll__swprintf]
jmp 0x14005e0a9
mov rcx, rbx
lea rdx, [0x1402e2640]
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0xee], ax
jne 0x14005e094
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0xf0]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005e1ae
call fcn.140049470
lea rsi, [0x140433b50]
xor edx, edx
mov rcx, rsi
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._reg.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14005e193
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x50]
mov r8d, Ordinal_1591
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, rsi
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005e150
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
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 0x14005e180
mov rbx, rsi
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_UpdateDosDevices.
mov r8, rbx
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005e39a
lea rcx, [rsp + 0x1f2]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x1f0], 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 + 0x1f0]
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 0x14005e36d
mov qword [rsp + Ordinal_2610], r15
movabs r15, 0x3a44493a4f494d44
nop
lea rcx, [rsp + 0x5f1]
xor edx, edx
mov r8d, 0x3ff
add edi, 1
mov byte [rsp + 0x5f0], bl
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
lea rdx, [rsp + 0x1f0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5f0]
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 0x14005e312
cmp dword [rsp + 0x5f0], r12d
jne 0x14005e312
mov eax, dword [rsi]
imul rax, r13
cmp qword [rsp + 0x5f4], rax
jne 0x14005e312
xor eax, eax
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x1f0]
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 [r14]
mov qword [rsp + 0x50], r15
mov dword [rcx], eax
mov eax, dword [r14 + 4]
mov dword [rcx + 4], eax
mov eax, dword [r14 + 8]
mov r9d, 3
mov dword [rcx + 8], eax
mov eax, dword [r14 + 0xc]
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 0x14005e312
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x1f0]
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 + 0x1f0]
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 0x14005e220
mov r15, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbp, rbp
je 0x14005e395
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14005b510
mov eax, 1
mov rcx, qword [rsp + 0x9f0]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0xa00]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret