Function at 0x2a889952
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1dc
mov eax, 0x2a9872b5
call fcn.2a8ca9a7
xor ebx, ebx
push ebx
call fcn.2a888046
pop ecx
cmp eax, 4
jne 0x2a889bf2
cmp word [0x2a9ffda0], bx
jne 0x2a889c09
push 6
pop ecx
mov esi, str.SoftwareMicrosoftOffice_
mov dword [ebp - 0x1c4], ebx
lea edi, [ebp - 0x1bc]
mov byte [ebp - 0x90], bl
rep movsd dword es:[edi], dword [esi]
push 0x111
lea eax, [ebp - 0x1a1]
push ebx
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x1c8], 0x80
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - 0x1d0], ebx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1e8], ebx
lea eax, [ebp - 0x1e8]
mov dword [ebp - 4], ebx
push eax
call fcn.2a888046
add esp, 0x10
test ax, ax
je 0x2a889bc9
mov esi, fcn.2a84c8f0
mov byte [ebp - 0x1c0], bl
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
push 0xa
push 3
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1dc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa_s]
push ebx
lea eax, [ebp - 0x1c0]
mov edi, 0x12c
push eax
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.2a888046
push ebx
push 0x2a98b00c
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.2a888046
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
push 0xa
push 3
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1d8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa_s]
add esp, 0x48
lea eax, [ebp - 0x1c0]
push ebx
push eax
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.2a888046
push ebx
push str.Outlook
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.2a888046
add esp, 0x20
lea eax, [ebp - 0x1c4]
xor esi, esi
inc esi
push eax
push esi
push ebx
lea eax, [ebp - 0x1bc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x2a98d5b4
test eax, eax
jne 0x2a889b1b
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x1cc]
push eax
push ebx
push str.Bitness
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2a889b0f
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.2a888046
pop ecx
pop ecx
test eax, eax
jne 0x2a889b08
mov word [0x2a9ffd9c], si
mov word [0x2a9ffda0], si
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x2a9ffda0], 0
jne 0x2a889baa
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], ebx
push eax
push 0x101
push ebx
lea eax, [ebp - 0x1bc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2a889b9e
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x1cc]
push eax
push ebx
push str.Bitness
push dword [ebp - 0x1c0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2a889b9e
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.2a888046
pop ecx
pop ecx
test eax, eax
jne 0x2a889b97
mov word [0x2a9ffd9c], si
mov word [0x2a9ffda0], si
push dword [ebp - 0x1c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1e8], 0
mov dword [ebp - 4], 2
je 0x2a889c09
push dword [ebp - 0x1e8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x2a889c09
movzx esi, word [0x2a9ffd9c]
cmp dword [ebp - 0x1e8], 0
mov dword [ebp - 4], 1
je 0x2a889bed
push dword [ebp - 0x1e8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ax, si
jmp 0x2a889c0f
cmp word [0x2a9ffd9c], bx
je 0x2a889c09
xor eax, eax
mov word [0x2a9ffd9c], ax
mov word [0x2a9ffda0], ax
mov ax, word [0x2a9ffd9c]
call fcn.2a8ca985
ret