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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x880
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2164], rax
lea rax, [rsp + 0x48]
mov r12, r9
mov ebx, r8d
mov r13, rcx
xor edi, edi
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005c42d
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, [rdi + 0x5c]
lea rcx, str..._reg.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rbx, rax
je 0x14005c413
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x58]
mov r8d, 0x279
mov byte [rsp + 0x58], dil
mov qword [rsp + 0x59], rax
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rbx + 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 0x14005c3d0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x58]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005c400
mov rdi, rbp
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_UpdateDosDevices.
mov r8, rdi
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005c5e3
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x70], di
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x400
mov esi, edi
mov ebp, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005c5d6
mov qword [rsp + 0x8b0], r14
mov r14, qword [rsp + 0x8d8]
mov qword [rsp + 0x8c0], r15
mov r15d, dword [rsp + 0x8d0]
nop
nop
nop
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_1137]
xor edx, edx
mov r8d, 0x3ff
add esi, 1
mov byte [rsp + Ordinal_1137], dil
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x470]
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 0x14005c579
mov rax, qword [rsp + 0x474]
mov ecx, dword [r13]
cqo
idiv rcx
cmp r12, rax
jne 0x14005c579
cmp ebx, dword [rsp + 0x470]
jne 0x14005c579
xor eax, eax
imul rcx, r14
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x59], rax
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
mov qword [rsp + 0x5c], rcx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ebp, edi
sete bpl
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x400
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005c4b0
mov r15, qword [rsp + 0x8c0]
mov r14, qword [rsp + 0x8b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x8c8]
add rsp, 0x880
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret