Function at 0x180039040
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov r12, r9
mov rsi, r8
mov rdi, rdx
cmp qword [rdx + 0x18], 8
jb 0x180039087
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x18003919f
lea rcx, [rsp + 0x50]
call fcn.180012fc0
nop
lea rdx, str.RegOpenKeyEx_Failed._lStatus:
lea rcx, [rsp + 0x50]
call fcn.18001da90
mov rcx, rax
mov edx, ebx
call fcn.180011f20
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, rdi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
lea rdx, str.CRegUtility::ReadRegValue
lea rcx, [rbp + 0x68]
call fcn.1800104c0
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x40]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rbp + 0x40]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0x90]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x40]
call fcn.18008f070
nop
lea rcx, [rbp + 0x68]
call fcn.18008f070
nop
lea rcx, [rbp - 0x28]
call fcn.180013040
lea rcx, [rbp - 0x28]
call fcn.180012100
xor al, al
jmp 0x18003943b
xor r13b, r13b
xor r14d, r14d
mov word [rbp + 0xc0], r14w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0xc2]
call fcn.1800c7520
mov dword [rsp + 0x3c], 0x410
mov rcx, rsi
call fcn.180012700
mov rdx, rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800392f0
lea rcx, [rsp + 0x50]
call fcn.180012fc0
nop
lea rdx, str.RegQueryValueEx_Failed._lStatus:
lea rcx, [rsp + 0x50]
call fcn.18001da90
mov rcx, rax
xor edx, edx
call fcn.180011f20
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, rdi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
lea rdx, str.CRegUtility::ReadRegValue
lea rcx, [rbp + 0x40]
call fcn.1800104c0
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x68]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 0x29]
lea r8, [rbp + 0x68]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0x90]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x68]
call fcn.18008f070
nop
lea rcx, [rbp + 0x40]
call fcn.18008f070
nop
lea rcx, [rbp - 0x28]
call fcn.180013040
lea rcx, [rbp - 0x28]
call fcn.180012100
jmp 0x180039304
cmp dword [rsp + 0x38], 4
jne 0x180039304
mov r13b, 1
mov eax, dword [rbp + 0xc0]
mov dword [r12], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x50]
call fcn.180012fc0
nop
lea rdx, str.bRet:
lea rcx, [rsp + 0x50]
call fcn.18001da90
mov rcx, rax
movzx edx, r13b
call fcn.180011980
mov rcx, rax
lea rdx, str._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, rdi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._dwKeyValue:
call fcn.18001da90
mov rcx, rax
mov edx, dword [r12]
call fcn.18002ef10
mov rcx, rax
lea rdx, str.._samDesired:
call fcn.18001da90
mov rcx, rax
xor edx, edx
call fcn.18002ef10
lea rdx, str.CRegUtility::ReadRegValue
lea rcx, [rbp + 0x40]
call fcn.1800104c0
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x68]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, [rbp + 0x68]
lea edx, [r9 - 0x35]
call fcn.1800326a0
nop
lea rcx, [rbp + 0x90]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x68]
call fcn.18008f070
nop
lea rcx, [rbp + 0x40]
call fcn.18008f070
nop
lea rcx, [rbp - 0x28]
call fcn.180013040
lea rcx, [rbp - 0x28]
call fcn.180012100
movzx eax, r13b
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.1800be9b0
add rsp, 0x5e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret