Function at 0x1400d5380
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x368]
sub rsp, 0x468
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov ebx, 0x206
xor r12d, r12d
lea rcx, [rbp + 0x142]
mov r8d, ebx
mov word [rbp + 0x140], r12w
xor edx, edx
mov r15, r9
call sub.msvcrt.dll_memset
mov r8d, ebx
mov word [rsp + 0x30], r12w
xor edx, edx
lea rcx, [rsp + 0x32]
call sub.msvcrt.dll_memset
mov ebx, 0x80070057
test rsi, rsi
jne 0x1400d541f
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
lea edx, [rsi + 0x11]
jmp 0x1400d5448
test rdi, rdi
jne 0x1400d545d
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
lea edx, [rdi + 0x12]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128410]
call fcn.140003614
jmp 0x1400d5710
mov r13d, 0x104
cmp dword [rdi], r12d
jne 0x1400d552a
mov r9, rsi
lea r8, str.SoftwareMicrosoftSQMClient_sAdaptiveSqmManifestInfo
mov edx, r13d
lea rcx, [rbp + 0x140]
call fcn.140069190
mov ebx, eax
test eax, eax
jns 0x1400d54b6
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
mov edx, SafeArrayAccessData
jmp 0x1400d56d7
mov eax, r14d
lea r8, str.Version
neg eax
lea rdx, [rbp + 0x140]
mov r9, rdi
sbb rcx, rcx
neg rcx
add rcx, 0xffffffff80000001
call fcn.1400ca758
test eax, eax
jne 0x1400d54e7
cmp dword [rdi], r12d
jne 0x1400d552a
mov ebx, 0x90070a02
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 4
je 0x1400d5710
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128410]
mov edx, reloc.Cabinet.dll_FDICreate
mov r9, rsi
call fcn.140003638
jmp 0x1400d5710
test r15, r15
je 0x1400d56ec
lea rdx, [rsp + 0x30]
mov r8d, r13d
test r14d, r14d
je 0x1400d557b
lea rcx, str._ProgramData_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
jbe 0x1400d5595
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400d5710
mov ebx, 0x80004005
jmp 0x1400d5710
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x1400d56f1
lea rdx, [0x14011ccf0]
lea rcx, [rsp + 0x30]
call fcn.1400d5230
mov ebx, eax
test eax, eax
jns 0x1400d55d7
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
jmp 0x1400d56d7
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400d5230
mov ebx, eax
test eax, eax
jns 0x1400d5615
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
jmp 0x1400d56d7
lea rdx, [0x140128360]
lea rcx, [rsp + 0x30]
call fcn.1400d5230
mov ebx, eax
test eax, eax
jns 0x1400d5657
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
mov edx, reloc.Cabinet.dll_FDIDestroy
jmp 0x1400d56d7
lea rdx, str.Manifest
lea rcx, [rsp + 0x30]
call fcn.1400d5230
mov ebx, eax
test eax, eax
jns 0x1400d5696
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
mov edx, DispGetParam
jmp 0x1400d56d7
mov eax, dword [rdi]
lea r9, [rsp + 0x30]
lea r8, str._sSqm_d.bin
mov dword [rsp + 0x20], eax
mov rdx, r13
mov rcx, r15
call fcn.140069190
mov ebx, eax
test eax, eax
jns 0x1400d56ec
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5710
test byte [rcx + 0x1c], 1
je 0x1400d5710
mov edx, DispGetParam
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128410]
mov r9d, ebx
call fcn.1400036d4
jmp 0x1400d5710
mov ebx, r12d
jmp 0x1400d5710
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret