Function at 0x1800363c0
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 [0x1801c2938]
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 0x180036410
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 0x180036530
lea rcx, [rsp + 0x50]
call fcn.180014d60
nop
lea rdx, str.RegOpenKeyEx_Failed._lStatus:
lea rcx, [rsp + 0x50]
call fcn.180022d00
mov rcx, rax
mov edx, edi
call fcn.180037120
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.180022d00
mov rcx, rax
mov rdx, rsi
call fcn.180022fd0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.180022d00
mov rcx, rax
mov rdx, r12
call fcn.180022fd0
lea rdx, str.CRegUtility::ReadRegValue
lea rcx, [rbp + 0x40]
call fcn.180012480
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x68]
call fcn.180012480
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180014e40
mov rdi, rax
call fcn.180016d70
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.180030340
nop
lea rcx, [rbp + 0x90]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
nop
lea rcx, [rbp + 0x40]
call fcn.180001850
nop
lea rcx, [rbp - 0x28]
call fcn.180014de0
lea rcx, [rbp - 0x28]
call fcn.180013e40
xor al, al
jmp 0x1800368aa
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.1800144b0
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 0x18003657d
test eax, eax
jne 0x180036755
mov ecx, dword [rsp + 0x34]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd064
mov rbx, rax
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x1800365b1
movzx eax, di
mov rdi, rbx
rep stosw word [rdi], ax
mov rcx, r12
call fcn.1800144b0
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 0x1800366d5
lea rcx, [rsp + 0x50]
call fcn.180014d60
nop
lea rdx, str.RegQueryValueEx_Failed._lStatus:
lea rcx, [rsp + 0x50]
call fcn.180022d00
mov rcx, rax
mov edx, edi
call fcn.180037120
mov rcx, rax
lea rdx, str.._strSubKey:
call fcn.180022d00
mov rcx, rax
mov rdx, rsi
call fcn.180022fd0
mov rcx, rax
lea rdx, str.__strKeyName:
call fcn.180022d00
mov rcx, rax
mov rdx, r12
call fcn.180022fd0
lea rdx, str.CRegUtility::ReadRegValue
lea rcx, [rbp + 0x68]
call fcn.180012480
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x40]
call fcn.180012480
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180014e40
mov rdi, rax
call fcn.180016d70
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.180030340
nop
lea rcx, [rbp + 0x90]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0x40]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
nop
lea rcx, [rbp - 0x28]
call fcn.180014de0
lea rcx, [rbp - 0x28]
call fcn.180013e40
jmp 0x180036746
mov eax, dword [rsp + 0x30]
cmp eax, 1
jne 0x1800366fe
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.18001c940
jmp 0x18003673b
cmp eax, 7
je 0x180036708
cmp eax, 2
jne 0x18003673f
mov r8d, dword [rsp + 0x34]
inc r8d
shr r8, 1
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.18001c910
nop
mov rdx, rax
mov rcx, r14
call fcn.1800188d0
nop
lea rcx, [rbp + 0x90]
call fcn.1800a20a0
mov eax, dword [rsp + 0x30]
mov dword [r13], eax
mov r15b, 1
test rbx, rbx
je 0x180036753
mov rcx, rbx
call fcn.1800be7e8
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.180014d60
nop
lea rdx, [0x180148658]
lea rcx, [rsp + 0x50]
call fcn.180022d00
mov rcx, rax
movzx edx, r15b
call fcn.180013a10
mov rcx, rax
lea rdx, str._strSubKey:
call fcn.180022d00
mov rcx, rax
mov rdx, rsi
call fcn.180022fd0
mov rcx, rax
lea rdx, str.._strKeyName:
call fcn.180022d00
mov rcx, rax
mov rdx, r12
call fcn.180022fd0
mov rcx, rax
lea rdx, str.._strKeyValue:
call fcn.180022d00
mov rcx, rax
mov rdx, r14
call fcn.180022fd0
mov rcx, rax
lea rdx, str.._dwType:
call fcn.180022d00
mov rcx, rax
mov edx, dword [r13]
call fcn.18002d850
mov rcx, rax
lea rdx, str.._samDesired:
call fcn.180022d00
mov rcx, rax
mov edx, dword [rbp + 0x138]
call fcn.18002d850
lea rdx, str.CRegUtility::ReadRegValue
lea rcx, [rbp + 0x68]
call fcn.180012480
nop
lea rdx, str.RegUtility.cpp
lea rcx, [rbp + 0x40]
call fcn.180012480
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180014e40
mov rdi, rax
call fcn.180016d70
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.180030340
nop
lea rcx, [rbp + 0x90]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0x40]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
nop
lea rcx, [rbp - 0x28]
call fcn.180014de0
lea rcx, [rbp - 0x28]
call fcn.180013e40
movzx eax, r15b
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1800bdf20
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret