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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xea0
mov eax, dword [0x100440b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
jne 0x1001b7e9
mov eax, 0x80070057
jmp 0x1001ba15
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x484]
xor ebx, ebx
push str.SoftwareMicrosoftOffice_i.0Registration
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp - 0xe9c], ebx
call fcn.10010a66
add esp, 0x10
test eax, eax
je 0x1001ba05
lea eax, [ebp - 0xe9c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x484]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ba05
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xe9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0xe9c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x1001ba05
test edi, edi
jne 0x1001ba12
push 0xffffffffffffffff
lea eax, [ebp - 0x484]
mov edi, 0x100
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.10010a66
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x1001ba12
push 0xffffffffffffffff
push 0x1003cf90
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.10010a66
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x1001ba12
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.10010a66
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x1001ba12
lea eax, [ebp - 0xe94]
mov dword [ebp - 0xe98], ebx
push eax
mov dword [ebp - 0xe94], ebx
lea eax, [ebp - 0x284]
inc ebx
push ebx
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x1001b959
lea eax, [ebp - 0xea0]
mov dword [ebp - 0xea0], 0x802
push eax
lea eax, [ebp - 0xe90]
push eax
lea eax, [ebp - 0xe98]
push eax
push edi
push 0x1003ee18
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0xe94], 0
je 0x1001b96e
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1001b9d4
cmp dword [ebp - 0xe98], ebx
je 0x1001b983
cmp dword [ebp - 0xe98], 2
jne 0x1001b9d4
cmp dword [ebp - 0xe98], 2
jne 0x1001b9d6
push 0x104
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x1001b9d6
push 0xffffffffffffffff
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push 0x401
push eax
call fcn.10010a66
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
jmp 0x1001b9d6
xor ebx, ebx
test ebx, ebx
je 0x1001ba12
lea eax, [ebp - 0xe90]
push str._no_more_entries_
push eax
call fcn.10010a66
pop ecx
pop ecx
test eax, eax
je 0x1001ba12
xor eax, eax
cmp ax, word [ebp - 0xe90]
je 0x1001ba12
lea eax, [ebp - 0xe90]
push eax
jmp 0x1001ba0a
push str._no_more_entries_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001eea4
leave
ret 0x10