Function at 0x1400030e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x5f0]
mov eax, 0x6f0
call fcn.14000b4d0
sub rsp, rax
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
xor r12d, r12d
lea rax, [rsp + 0x48]
mov word [rdx], r12w
mov r14, r9
mov byte [r9], r12b
mov rdi, rdx
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x48], r12
lea rdx, str.SoftwareClientsMail
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000364e
xor edx, edx
mov qword [rsp + 0x6e8], rbx
mov r8d, 0x208
lea rcx, [rbp + 0x3c0]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x3c0]
call fcn.140002d60
test al, al
je 0x1400031b0
cmp word [rbp + 0x3c0], r12w
je 0x1400031a6
lea r8, [rbp + 0x3c0]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400031f1
mov rcx, qword [rsp + 0x48]
jmp 0x140003640
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x60]
mov dword [rsp + 0x40], 0x206
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov word [rbp + 0x1a6], r12w
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rbx, eax
test eax, eax
jne 0x140003279
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
test eax, eax
je 0x140003279
cmp rsi, 0xffffffff80000001
jne 0x140003279
lea r8, str.SoftwareClientsMail_
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp - 0x60]
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1b0]
lea rcx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
jne 0x140003646
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x6e0], r15
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SupportUTF8
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400032e6
cmp dword [rsp + 0x34], 4
jne 0x1400032e6
cmp dword [rsp + 0x48], r12d
je 0x1400032e6
mov byte [r14], 1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.MSIInstallOnWTS
movups xmmword [rsp + 0x50], xmm0
mov r14, r12
mov rsi, r12
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003347
cmp dword [rsp + 0x34], 4
je 0x14000334f
mov dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea rdx, str.MSIApplicationLCID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd r15, eax
test eax, eax
jne 0x14000347b
cmp dword [rsp + 0x34], 7
jne 0x1400033eb
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400033eb
mov ecx, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
shr rcx, 1
lea rdx, str.MSIApplicationLCID
xor r8d, r8d
mov word [rax + rcx*2], r12w
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd r15, eax
test eax, eax
jne 0x14000347b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea rdx, str.MSIOfficeLCID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd r15, eax
test eax, eax
jne 0x14000347b
cmp dword [rsp + 0x34], 7
jne 0x14000347b
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000347b
mov ecx, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
shr rcx, 1
lea rdx, str.MSIOfficeLCID
xor r8d, r8d
mov word [rax + rcx*2], r12w
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd r15, eax
test r15, r15
mov dword [rsp + 0x30], 0x4e
mov r15, qword [rsp + 0x6e0]
jne 0x140003587
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.MSIComponentID
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003587
cmp dword [rsp + 0x34], 1
jne 0x140003587
cmp dword [rsp + 0x40], r12d
jne 0x140003528
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x11c
call sub.VCRUNTIME140.dll_memset
mov eax, 0x10
mov dword [rbp - 0x60], 0x11c
mov r8b, 6
mov word [rbp + 0xb8], ax
xor ecx, ecx
lea edx, [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x40
lea rcx, [rbp - 0x60]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140003528
xor bl, bl
jmp 0x14000352a
mov bl, 1
test rsi, rsi
je 0x14000354b
mov r8, rdi
mov byte [rsp + 0x20], bl
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400029d0
test al, al
jne 0x14000360e
test r14, r14
je 0x14000356c
mov r8, rdi
mov byte [rsp + 0x20], bl
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400029d0
test al, al
jne 0x140003609
mov r8, rdi
mov byte [rsp + 0x20], bl
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400029d0
test al, al
jne 0x140003609
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.DLLPath
mov dword [rsp + 0x30], 0x206
mov word [rdi + 0x206], r12w
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003605
cmp dword [rsp + 0x34], 2
jne 0x140003609
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, eax
dec rax
cmp rax, 0x102
ja 0x140003605
lea r8, [rbp + 0x1b0]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140003609
mov word [rdi], r12w
test rsi, rsi
je 0x140003622
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x14000363b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x6e8]
cmp r12w, word [rdi]
setne al
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.140009e30
add rsp, 0x6f0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret