Function at 0x180039460
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov r14, r9
mov r12, r8
mov rsi, rdx
mov r13, qword [rbp + 0x130]
cmp qword [rdx + 0x18], 8
jb 0x1800394b0
mov rdx, qword [rdx]
mov r9d, dword [rbp + 0x138]
or r9d, 0x20019
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x1800395d0
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, edi
call fcn.180011f20
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, r12
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 rdi, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x42
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
xor al, al
jmp 0x18003994a
xor edi, edi
mov dword [r13], edi
xor r15b, r15b
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
mov rcx, r12
call fcn.180012700
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x18003961d
test eax, eax
jne 0x1800397f5
mov ecx, dword [rsp + 0x34]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd9f0
mov rbx, rax
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x180039651
movzx eax, di
mov rdi, rbx
rep stosw word [rdi], ax
mov rcx, r12
call fcn.180012700
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x180039775
lea rcx, [rsp + 0x50]
call fcn.180012fc0
nop
lea rdx, str.RegQueryValueEx_Failed._lStatus:
lea rcx, [rsp + 0x50]
call fcn.18001da90
mov rcx, rax
mov edx, edi
call fcn.180011f20
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, r12
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 rdi, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x5b
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
jmp 0x1800397e6
mov eax, dword [rsp + 0x30]
cmp eax, 1
jne 0x18003979e
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
mov rcx, r14
call fcn.180018ad0
jmp 0x1800397db
cmp eax, 7
je 0x1800397a8
cmp eax, 2
jne 0x1800397df
mov r8d, dword [rsp + 0x34]
inc r8d
shr r8, 1
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.180018aa0
nop
mov rdx, rax
mov rcx, r14
call fcn.180015260
nop
lea rcx, [rbp + 0x90]
call fcn.1800126d0
mov eax, dword [rsp + 0x30]
mov dword [r13], eax
mov r15b, 1
test rbx, rbx
je 0x1800397f3
mov rcx, rbx
call fcn.1800bf278
xor edi, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x50]
call fcn.180012fc0
nop
lea rdx, str.bRet:
lea rcx, [rsp + 0x50]
call fcn.18001da90
mov rcx, rax
movzx edx, r15b
call fcn.180011980
mov rcx, rax
lea rdx, str._strSubKey:
call fcn.18001da90
mov rcx, rax
mov rdx, rsi
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._strKeyName:
call fcn.18001da90
mov rcx, rax
mov rdx, r12
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._strKeyValue:
call fcn.18001da90
mov rcx, rax
mov rdx, r14
call fcn.18001ddc0
mov rcx, rax
lea rdx, str.._dwType:
call fcn.18001da90
mov rcx, rax
mov edx, dword [r13]
call fcn.18002ef10
mov rcx, rax
lea rdx, str.._samDesired:
call fcn.18001da90
mov rcx, rax
mov edx, dword [rbp + 0x138]
call fcn.18002ef10
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 rdi, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, WSAStartup
lea r8, [rbp + 0x40]
lea edx, [r9 - 0x6d]
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
movzx eax, r15b
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1800be9b0
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret