Function at 0x140041eb8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rbp + 0x400], rax
xor edi, edi
mov r15, r8
mov qword [rsp + 0x70], rdi
mov ebx, edi
mov dword [rsp + 0x60], edi
mov r14, rdx
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, 0x100
test eax, eax
je 0x140041f1d
cmp dword [rsp + 0x60], edi
cmovne ebx, ecx
lea rax, [rsp + 0x70]
or ebx, 1
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOffice16.0ClickToRunStorePackages
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004217b
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140042170
cmp dword [rsp + 0x60], edi
jbe 0x140042170
mov esi, edi
movzx ebx, word [0x14004cfb8]
lea rcx, [rbp - 0x1e]
xor edx, edx
mov word [rbp - 0x20], bx
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x6c], 0x104
lea rcx, [rbp - 0x6e]
mov word [rbp - 0x70], bx
lea r8d, [rdx + 0x4c]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x6c]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x78], 0x4e
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x20]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x28], rax
mov edx, esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14004203f
cmp dword [rsp + 0x68], 1
jne 0x14004203f
mov r8d, dword [rsp + 0x6c]
lea rdx, [rbp - 0x20]
dec r8d
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x140042050
inc esi
cmp esi, dword [rsp + 0x60]
jae 0x140042170
jmp 0x140041fa0
mov eax, edi
lea rcx, [r14 + 4]
cmp r15, 0xffffffff80000001
lea r8, [rbp - 0x20]
mov edx, 0x104
setne al
or r15, 0xffffffffffffffff
inc eax
mov r9, r15
mov dword [r14], eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rsi, [r14 + 0x20c]
mov r9, r15
mov rcx, rsi
lea r8, [rbp - 0x70]
lea edx, [r15 + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov qword [rbp - 0x80], rdi
mov ebx, edi
mov dword [rsp + 0x64], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400420c4
cmp dword [rsp + 0x64], edi
mov eax, 0x100
cmovne ebx, eax
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
or ebx, 1
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140042170
movzx eax, word [0x14004cfb8]
lea rcx, [rbp + 0x1f2]
xor edx, edx
mov word [rbp + 0x1f0], ax
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rdx, str.JitV64
lea rax, [rbp + 0x1f0]
mov dword [rsp + 0x64], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140042166
lea rcx, [r14 + 0x25a]
mov r9, r15
lea r8, [rbp + 0x1f0]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov dil, 1
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400443a0
add rsp, 0x510
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret