Function at 0x180004470
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov rax, qword [0x18003d928]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, r9
mov ebp, r8d
mov r12d, edx
mov rsi, rcx
call fcn.180002810
test al, al
je 0x1800044f6
mov rcx, qword [rsi + 0xb0]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
test rcx, rcx
je 0x1800044cb
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x18002f830]
call qword [rax]
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov r9, rdi
mov r8d, ebp
mov edx, r12d
mov rcx, rbx
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
test rcx, rcx
je 0x1800044ef
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
jmp 0x180004697
test rdi, rdi
jne 0x180004505
mov eax, 0x80070057
jmp 0x180004697
mov edx, dword [rdi]
test bpl, 3
mov ecx, 0x18
setne r8b
mov r9d, 0xfa
test dl, 1
je 0x180004534
test r8b, r8b
mov eax, r9d
cmovne eax, ecx
mov dword [rdi + 4], eax
mov eax, ecx
cmovne eax, r9d
mov dword [rdi + 8], eax
test dl, 2
je 0x18000454c
test r8b, r8b
mov eax, r9d
cmovne eax, ecx
cmovne ecx, r9d
mov dword [rdi + 0x10], ecx
mov dword [rdi + 0xc], eax
test dl, 4
je 0x18000455f
mov dword [rdi + 0x14], 1
mov dword [rdi + 0x18], 1
xor ebx, ebx
test dl, 8
je 0x180004591
mov rcx, qword [rsi + 0x18]
xor eax, eax
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov r11d, dword [rsp + 0x70]
mov eax, dword [rsp + 0x74]
mov dword [rdi + 0x1c], r11d
mov dword [rdi + 0x20], eax
mov eax, dword [rdi]
test al, 0x10
je 0x18000467c
and eax, 0xffffffef
lea rdx, str.CLSID_
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
mov dword [rdi], eax
call fcn.180003f80
lea r8, str.850EE997_38F1_4D5C_B4AF_30111031266B
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.180003eb0
lea rcx, [rsp + 0x50]
mov r9d, 0x20019
mov r8, qword [rax]
mov rdx, 0xffffffff80000000
call fcn.1800012d0
mov rdx, qword [rsp + 0x40]
test eax, eax
sete bpl
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004615
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004632
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
test bpl, bpl
je 0x18000466a
lea rcx, [rsp + 0x30]
lea rax, [rdi + 0x24]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x18000466e
mov word [rdi + 0x24], bx
test rsi, rsi
je 0x18000467c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rdi]
test al, 0x20
je 0x18000468c
mov dword [rdi + 0x224], 1
test al, 0x40
je 0x180004695
and eax, 0xffffffbf
mov dword [rdi], eax
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800193b0
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret