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

Disassembly:
push 0x5ac
mov eax, 0x2a9519c9
call fcn.2a8b8862
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x5b0], ebx
mov dword [ebp - 4], eax
mov byte [ebp - 0x198], al
mov byte [ebp - 0x94], al
test edi, edi
je 0x2a8859df
mov byte [edi], al
call fcn.2a8865dd
mov esi, dword [eax]
test esi, esi
je 0x2a885b79
and dword [ebp - 0x5a4], 0
push str.FGetComponentPath
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x5b8], eax
test eax, eax
je 0x2a885cab
lea eax, [ebp - 0x5a4]
mov dword [ebp - 0x5ac], 0x80
push eax
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x5a8], ebx
push eax
push ebx
push str.SoftwareClientsMail
push SysReAllocString
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2a885aaf
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x5a8]
push eax
push ebx
push ebx
push dword [ebp - 0x5a4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
push 1
test eax, eax
pop eax
push dword [ebp - 0x5a4]
cmove esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x5a4], 0
test si, si
je 0x2a885ab5
xor eax, eax
inc eax
cmp dword [ebp - 0x5a8], eax
jne 0x2a885ab5
push 0
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.2a885359
add esp, 0xc
test eax, eax
je 0x2a885ab5
jmp 0x2a885b1c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x5a4]
mov dword [ebp - 0x5ac], 0x80
push eax
xor eax, eax
inc eax
push eax
push 0
push str.SoftwareClientsMail
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2a885b1c
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x5a8]
push eax
push 0
push 0
push dword [ebp - 0x5a4]
call ebx
push 1
test eax, eax
pop eax
push dword [ebp - 0x5a4]
cmove esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x5a4], 0
test si, si
je 0x2a885b7f
xor esi, esi
inc esi
cmp dword [ebp - 0x5a8], esi
jne 0x2a885b82
push 0
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.2a885359
add esp, 0xc
test eax, eax
je 0x2a885b82
mov ebx, dword [ebp - 0x5b0]
test edi, edi
je 0x2a885b67
mov eax, dword [ebp + 0xc]
movzx eax, ax
push eax
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.2a885359
add esp, 0xc
test ebx, ebx
je 0x2a885b79
lea eax, [ebp - 0x198]
mov ecx, ebx
push eax
call fcn.2a885359
call fcn.2a8b881d
ret
xor esi, esi
inc esi
push 0
push str.SoftwareClientsMail_
lea eax, [ebp - 0x49c]
push 0x200
push eax
call fcn.2a885359
add esp, 0x10
lea eax, [ebp - 0x94]
push 0
push eax
lea eax, [ebp - 0x49c]
push 0x200
push eax
call fcn.2a885359
add esp, 0x10
lea eax, [ebp - 0x5a4]
push eax
push esi
push 0
lea eax, [ebp - 0x49c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2a885b46
lea eax, [ebp - 0x5b4]
mov esi, 0x104
push eax
lea eax, [ebp - 0x198]
mov dword [ebp - 0x5b4], esi
push eax
lea eax, [ebp - 0x5a8]
push eax
push 0
push str.MSIComponentID
push dword [ebp - 0x5a4]
call ebx
test eax, eax
jne 0x2a885c2e
cmp dword [ebp - 0x5a8], 4
jne 0x2a885c93
push eax
push esi
lea eax, [ebp - 0x198]
push eax
push 0
push eax
call dword [ebp - 0x5b8]
jmp 0x2a885c93
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x5a8]
push eax
push 0
push str.DLLPath
push dword [ebp - 0x5a4]
call ebx
test eax, eax
jne 0x2a885c93
cmp dword [ebp - 0x5a8], 2
jne 0x2a885c93
mov byte [ebp - 0x29c], al
lea eax, [ebp - 0x29c]
push esi
push eax
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
push 0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x198]
push esi
push eax
call fcn.2a885359
add esp, 0x10
push dword [ebp - 0x5a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x5a4], 0
jmp 0x2a885b46
push 0
push str.Mapi32
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.2a885359
add esp, 0x10
lea eax, [ebp - 0x5a0]
push 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
jmp 0x2a885b4c