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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100359f3
mov eax, dword fs:[0]
push eax
mov eax, 0x1a2c
call fcn.1003366c
mov eax, dword [0x100440b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1978], ebx
test ebx, ebx
jne 0x1001b3ea
mov eax, 0x80070057
jmp 0x1001b7a7
xor esi, esi
mov dword [ebx], esi
test edi, edi
jne 0x1001b3fa
or dword [ebx], 0xffffffff
jmp 0x1001b7a5
push 0x1003c3fc
push edi
mov dword [ebp - 0x1958], esi
mov dword [ebp - 0x1954], esi
mov dword [ebp - 0x1950], esi
mov dword [ebp - 0x194c], esi
call fcn.10010a66
pop ecx
pop ecx
test eax, eax
je 0x1001b438
push 0x1003c490
push edi
call fcn.10010a66
pop ecx
pop ecx
test eax, eax
je 0x1001b438
mov eax, esi
jmp 0x1001b43b
xor eax, eax
inc eax
test eax, eax
je 0x1001b75d
xor eax, eax
lea ecx, [ebp - 0x1a38]
mov word [ebp - 0x1948], ax
call fcn.10007b32
push str.c2r32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x1a38]
mov dword [ebp - 0x1980], eax
call fcn.10007bee
cmp dword [ebp - 0x1a34], esi
je 0x1001b4a2
call dword [ebp - 0x1a34]
test eax, eax
je 0x1001b4a2
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1a30], 0
je 0x1001b759
call dword [ebp - 0x1a30]
mov esi, eax
jmp 0x1001b759
push 0x64
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.10021114
add esp, 0xc
mov ebx, 0x1003e770
cmp dword [ebx], esi
je 0x1001b4e7
push dword [ebx]
push edi
call fcn.10010a66
pop ecx
pop ecx
test eax, eax
je 0x1001b4cf
add ebx, 0x24
jne 0x1001b4b6
jmp 0x1001b4e7
cmp dword [ebx + 0x1c], esi
je 0x1001b4e7
push 0xffffffffffffffff
push dword [ebx + 0x1c]
lea eax, [ebp - 0x78]
push 0x32
push eax
call fcn.10010a66
add esp, 0x10
cmp word [ebp - 0x78], si
je 0x1001b7a5
push 0x10
pop eax
mov dword [ebp - 0x196c], eax
push eax
push str.SoftwareMicrosoftOffice_i.0CommonInstallRootVirtual
lea eax, [ebp - 0x2e8]
push 0x104
push eax
call fcn.10010a66
add esp, 0x10
test eax, eax
je 0x1001b7a5
mov edi, esi
mov eax, dword [edi*4 + 0x1003d830]
lea ecx, [ebp - 0x1960]
push ecx
or eax, 1
mov dword [ebp - 0x1964], esi
push eax
push esi
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x1960], esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x195c], eax
test eax, eax
jne 0x1001b58f
lea eax, [ebp - 0x1970]
mov dword [ebp - 0x1970], 0x64
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x1964]
push eax
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x1960]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x195c], eax
cmp dword [ebp - 0x1960], esi
je 0x1001b5a3
push dword [ebp - 0x1960]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x195c], esi
jne 0x1001b610
cmp dword [ebp - 0x1964], 1
je 0x1001b5bd
cmp dword [ebp - 0x1964], 2
jne 0x1001b610
cmp dword [ebp - 0x1964], 2
jne 0x1001b60b
push 0x104
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x1001b60b
push 0xffffffffffffffff
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0xe0]
push 0x32
push eax
call fcn.10010a66
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
jmp 0x1001b612
xor ecx, ecx
inc ecx
jmp 0x1001b612
mov ecx, esi
test ecx, ecx
jne 0x1001b63b
inc edi
cmp edi, 3
jb 0x1001b51e
mov eax, dword [ebp - 0x196c]
dec eax
mov dword [ebp - 0x196c], eax
cmp eax, 0xe
jae 0x1001b4fa
jmp 0x1001b7a5
cmp dword [ebx + 0x20], esi
je 0x1001b74d
push dword [ebp - 0x196c]
lea eax, [ebp - 0x6f8]
push str.SoftwareMicrosoftOffice_i.0ClickToRunStoreApplications
push 0x104
push eax
call fcn.10010a66
add esp, 0x10
test eax, eax
je 0x1001b74d
mov ebx, dword [ebx + 0x20]
mov eax, dword [edi*4 + 0x1003d830]
mov dword [ebp - 0x195c], esi
mov dword [ebp - 0x1968], esi
test ebx, ebx
je 0x1001b74d
lea ecx, [ebp - 0x1968]
or eax, 1
push ecx
push eax
push esi
lea eax, [ebp - 0x6f8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x1001b6dc
lea eax, [ebp - 0x1974]
mov dword [ebp - 0x1974], 0x1048
push eax
lea eax, [ebp - 0x1948]
push eax
lea eax, [ebp - 0x195c]
push eax
push esi
push ebx
push dword [ebp - 0x1968]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0x1968], esi
je 0x1001b6f0
push dword [ebp - 0x1968]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1001b74d
cmp dword [ebp - 0x195c], 1
je 0x1001b706
cmp dword [ebp - 0x195c], 2
jne 0x1001b74d
cmp dword [ebp - 0x195c], 2
jne 0x1001b74d
push 0x104
lea eax, [ebp - 0x900]
push eax
lea eax, [ebp - 0x1948]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x1001b74d
push 0xffffffffffffffff
lea eax, [ebp - 0x900]
push eax
lea eax, [ebp - 0x1948]
push 0x824
push eax
call fcn.10010a66
add esp, 0x10
mov esi, dword [ebp - 0x196c]
mov ebx, dword [ebp - 0x1978]
mov dword [ebx], esi
jmp 0x1001b7a5
push edi
push dword [esi*8 + 0x1003dd80]
call fcn.10010a66
pop ecx
pop ecx
test eax, eax
je 0x1001b778
inc esi
cmp esi, 0xf
jb 0x1001b75d
jmp 0x1001b7a5
mov ecx, dword [esi*8 + 0x1003dd84]
test ecx, ecx
je 0x1001b7a5
push ecx
lea eax, [ebp - 0x1948]
xor edx, edx
push eax
lea eax, [ebp - 0x1958]
push eax
call fcn.10010a66
test eax, eax
js 0x1001b7a5
mov eax, dword [ebp - 0x1958]
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001eea4
leave
ret 0xc