Function at 0x47e560
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov dword [rbp + 0x98], r9d
mov rcx, qword [rbp + 0x88]
call fcn.0040e210
mov rcx, qword [rbp + 0xa0]
call fcn.0040e210
mov rcx, qword [rbp + 0xa8]
call fcn.0040e210
mov rcx, qword [rbp + 0xb0]
call fcn.0040e210
nop
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0xb0]
call fcn.0040e6f0
mov dword [rbp + 0x5c], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
nop
cmp qword [rbp + 0x88], 0
je 0x47e63a
mov rcx, qword [rbp + 0x88]
call fcn.0040feb0
mov rcx, rax
mov rdx, qword [rbp + 0x90]
lea r8, [rbp + 0x60]
call sub.advapi32.dll_RegConnectRegistryW
test eax, eax
je 0x47e645
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x5c], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x38]
call fcn.0047e800
jmp 0x47e7b9
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x60], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040feb0
mov rcx, qword [rbp + 0x60]
mov rdx, rax
xor r8, r8
mov r9d, dword [rbp + 0x98]
or r9d, 0x20019
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x47e694
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x5c], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x38]
call fcn.0047e800
jmp 0x47e7b9
mov dword [rbp + 0x58], 1
mov dword [rbp + 0x54], 0
mov rcx, qword [rbp + 0xa8]
call fcn.0040feb0
mov rcx, qword [rbp + 0x68]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x47e6f0
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x5c], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x38]
call fcn.0047e800
jmp 0x47e7b9
lea rcx, [rbp + 0x48]
mov rdx, qword [0x0047e528]
mov r8d, 1
mov r9d, dword [rbp + 0x54]
add r9d, 1
mov r9d, r9d
call fcn.00411ea0
mov rcx, qword [rbp + 0x48]
mov edx, dword [rbp + 0x54]
add edx, 1
mov edx, edx
xor r8, r8
call fcn.00408d50
mov rcx, qword [rbp + 0xa8]
call fcn.0040feb0
mov rcx, qword [rbp + 0x68]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x58]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47e781
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x48]
call fcn.0040ff50
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x30]
xor r8, r8
mov r9d, dword [rbp + 0x54]
call fcn.00410500
jmp 0x47e789
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x5c], eax
nop
cmp qword [rbp + 0x68], 0
je 0x47e79a
mov rcx, qword [rbp + 0x68]
call sub.advapi32.dll_RegCloseKey_1
cmp qword [rbp + 0x60], 0
je 0x47e7aa
mov rcx, qword [rbp + 0x60]
call sub.advapi32.dll_RegCloseKey_1
cmp dword [rbp + 0x5c], 0
je 0x47e7b8
mov ecx, dword [rbp + 0x5c]
call sub.kernel32.dll_SetLastError
nop
lea rcx, [rbp + 0x30]
call fcn.0040e080
lea rcx, [rbp + 0x48]
mov rdx, qword [0x0047e528]
call fcn.00412080
lea rcx, [rbp + 0x88]
call fcn.0040e080
lea rcx, [rbp + 0xa0]
mov edx, 3
call fcn.0040e160
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x70]
pop rbp
ret