Function at 0x140048824
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r13
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x48], 0
xor edi, edi
mov rcx, qword [0x14009b020]
lea r15, [0x14009b020]
lea r13, [0x14008cfe0]
cmp rcx, r15
je 0x14004886f
test byte [rcx + 0x1c], 4
je 0x14004886f
cmp byte [rcx + 0x19], 5
jb 0x14004886f
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x25]
mov r8, r13
call fcn.1400042fc
lea rax, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, [0x14008b4d8]
lea rax, [rbp + 0x48]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftFaxSecurity
and qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20019
and dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400488f9
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140048a9f
test byte [rcx + 0x1c], 4
je 0x140048a9f
cmp byte [rcx + 0x19], 2
jb 0x140048a9f
mov edx, 0x26
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.1400046fc
jmp 0x140048a9f
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
and qword [rsp + 0x20], rdi
lea rdx, str.Descriptor
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140048956
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140048a9f
test byte [rcx + 0x1c], 4
je 0x140048a9f
cmp byte [rcx + 0x19], 2
jb 0x140048a9f
mov edx, 0x27
jmp 0x1400488e5
cmp dword [rbp + 0x38], 3
jne 0x140048a71
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140048a71
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov ebx, 8
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400489d2
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140048a9f
test byte [rcx + 0x1c], 4
je 0x140048a9f
cmp byte [rcx + 0x19], 2
jb 0x140048a9f
lea edx, [rbx + 0x21]
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.1400042fc
jmp 0x140048a9f
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Descriptor
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140048a2e
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140048a9f
test byte [rcx + 0x1c], 4
je 0x140048a9f
cmp byte [rcx + 0x19], 2
jb 0x140048a9f
mov edx, 0x2a
jmp 0x1400488e5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
nop dword [rax + rax]
test eax, eax
jne 0x140048a66
mov ebx, 0x53a
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140048a9f
test byte [rcx + 0x1c], 4
je 0x140048a9f
cmp byte [rcx + 0x19], 2
jb 0x140048a9f
lea edx, [rax + 0x2b]
jmp 0x1400489c1
mov qword [0x14009f338], rdi
xor edi, edi
jmp 0x140048a9f
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140048a9a
test byte [rcx + 0x1c], 4
je 0x140048a9a
cmp byte [rcx + 0x19], 2
jb 0x140048a9a
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r8, r13
call fcn.1400042fc
mov ebx, 0x3f1
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140048ab4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rdi, rdi
je 0x140048b1c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
jne 0x140048b1c
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x140048b1c
test byte [rax + 0x1c], 4
je 0x140048b1c
cmp byte [rax + 0x19], 2
jb 0x140048b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0x2c
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
mov eax, ebx
add rsp, 0x50
pop r15
pop r13
pop rdi
pop rbx
pop rbp
ret