Function at 0x10015870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d806
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x200
mov eax, dword [0x10028080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.10015120
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x148]
call fcn.10014420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.10005890
test eax, eax
je 0x10015ac4
push 0x104
push 0
lea edx, [ebp - 0x118]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x104
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
push str.MSIComponentID
lea ecx, [ebp - 0x148]
call fcn.10005890
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x10015ac4
lea edx, [ebp - 0x118]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
jbe 0x10015ac4
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10014860
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x134]
push ecx
push 0
push 0
push 0
push 0x10021318
lea ecx, [ebp - 0x148]
call fcn.10005890
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x10015a09
cmp dword [ebp - 0x134], 0
jbe 0x10015a09
mov edx, dword [ebp - 0x134]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.10019150
push 0
mov ecx, dword [ebp + 0x10]
call fcn.1000cd10
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x148]
call fcn.10005890
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
push 0
push 0
push str.MSIApplicationLCID
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x134]
push eax
push 0
push 0
push 0
push 0x10021340
lea ecx, [ebp - 0x148]
call fcn.10005890
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x10015aa3
cmp dword [ebp - 0x134], 0
jbe 0x10015aa3
mov ecx, dword [ebp - 0x134]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.10019150
push 0
mov ecx, dword [ebp + 0x14]
call fcn.1000cd10
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x148]
call fcn.10005890
mov dword [ebp - 0x160], eax
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x15c]
push eax
push 0
push 0
push str.MSIOfficeLCID
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov byte [ebp - 0x135], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.10014730
mov al, byte [ebp - 0x135]
jmp 0x10015bd7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.10014730
jmp 0x10015bc5
mov dword [ebp - 4], 0xffffffff
jmp 0x10015bd5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001947d
mov esp, ebp
pop ebp
ret 0x10