Function at 0x2a830f00
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x61c
mov eax, 0x2a8d1745
call fcn.2a85a9f6
mov esi, str.MicrosoftOutlook_
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.RoamCache_
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
push 0x5c
movsd dword es:[edi], dword [esi]
pop eax
movsw word es:[edi], word [esi]
mov word [ebp - 0x5d8], ax
lea eax, [ebp - 0x5ec]
push eax
push 0x801a
movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor ebx, ebx
push ebx
mov dword [ebp - 0x5d4], ecx
call edi
test eax, eax
jne 0x2a831518
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x3bc]
push eax
push dword [ebp - 0x5ec]
call esi
lea eax, [ebp - 0x5ec]
push eax
push 0x801c
push ebx
call edi
cmp eax, ebx
jne 0x2a831518
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x5ec]
call esi
xor eax, eax
push 0x1fe
mov word [ebp - 0x5bc], ax
lea eax, [ebp - 0x5ba]
push ebx
push eax
mov dword [ebp - 0x5e0], ebx
call sub.MSVCR100.dll_memset
push 0xff
lea eax, [ebp - 0x1b3]
push ebx
push eax
mov byte [ebp - 0x1b4], bl
call sub.MSVCR100.dll_memset
push ebx
call fcn.2a837aea
add esp, 0x1c
cmp eax, 4
jne 0x2a831518
call fcn.2a837aea
mov dword [ebp - 0x5dc], eax
cmp eax, ebx
je 0x2a831518
mov eax, dword [0x2a91f9ec]
call dword [eax + 0xca4]
movzx eax, ax
cmp ax, bx
je 0x2a8310bd
call fcn.2a8385c3
test ax, ax
jne 0x2a8310bd
mov eax, dword [0x2a91f9ec]
call dword [eax + 0xca8]
mov edx, dword [eax]
mov esi, 0x100
push esi
lea ecx, [ebp - 0x5bc]
push ecx
mov ecx, eax
call dword [edx + 0xac]
test al, al
je 0x2a831518
push esi
lea eax, [ebp - 0x5bc]
push eax
push esi
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x5d0]
push eax
mov dword [ebp - 0x5d0], ebx
call dword [sym.imp.MSVCR100.dll_wcstombs_s]
add esp, 0x14
test eax, eax
jne 0x2a831518
cmp dword [ebp - 0x5d0], ebx
jbe 0x2a831518
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x5e0], eax
mov dword [ebp - 0x5e4], ebx
mov byte [ebp - 0xb4], bl
mov dword [ebp - 0x5f8], 0x80
call fcn.2a8385c3
test ax, ax
lea eax, [ebp - 0x5e4]
push eax
je 0x2a831306
push 0x101
jmp 0x2a831308
call fcn.2a8385c3
test ax, ax
jne 0x2a831088
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MAPIInitialize
push dword [ebp - 0x5dc]
call esi
push str.MAPIUninitialize
push dword [ebp - 0x5dc]
mov edi, eax
call esi
mov dword [ebp - 0x5d0], eax
cmp edi, ebx
je 0x2a83150c
cmp eax, ebx
je 0x2a83150c
mov eax, dword [0x2a91fa40]
push 0x2a816d91
push ebx
mov dword [ebp - 4], ebx
call dword [eax + 8]
pop ecx
pop ecx
push ebx
mov byte [ebp - 4], 1
call edi
cmp eax, ebx
jge 0x2a83113f
mov eax, dword [0x2a91fa40]
push 0xffffffffffffffff
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x608], ebx
push 0x2a90b360
lea eax, [ebp - 0x608]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x5f4]
push eax
push ebx
mov dword [ebp - 0x5f0], ebx
mov dword [ebp - 0x5f4], ebx
call sub.MAPI32.dll_Ordinal_19
cmp eax, ebx
jl 0x2a8312c8
mov eax, dword [ebp - 0x5f4]
cmp eax, ebx
je 0x2a8312c8
lea edx, [ebp - 0x5e8]
push edx
push ebx
mov dword [ebp - 0x5e8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x2a8312a7
mov ecx, dword [ebp - 0x5e8]
cmp ecx, ebx
je 0x2a8312a7
xor edx, edx
inc edx
push 4
mov word [ebp - 0x61c], dx
pop edx
mov eax, 0x3d04000b
mov dword [ebp - 0x5cc], edx
mov dword [ebp - 0x5c8], edx
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x5c4], eax
push 2
lea edx, [ebp - 0x5cc]
lea eax, [ebp - 0x624]
push edx
mov dword [ebp - 0x5c0], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x38]
cmp eax, ebx
jge 0x2a831202
mov eax, dword [0x2a91fa40]
push 0xffffffffffffffff
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x614], ebx
push 0x2a90b360
lea eax, [ebp - 0x614]
jmp 0x2a831139
mov eax, dword [ebp - 0x5e8]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x5cc]
push edx
push eax
call dword [ecx + 0x34]
cmp eax, ebx
jge 0x2a83123c
mov eax, dword [0x2a91fa40]
push 0xffffffffffffffff
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x5fc], ebx
push 0x2a90b360
lea eax, [ebp - 0x5fc]
jmp 0x2a831139
mov eax, dword [ebp - 0x5e8]
mov ecx, dword [eax]
lea edx, [ebp - 0x5f0]
push edx
push ebx
push 1
push eax
call dword [ecx + 0x4c]
cmp eax, ebx
jl 0x2a831286
mov eax, dword [ebp - 0x5f0]
cmp dword [eax], ebx
jbe 0x2a831286
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x5e0], eax
call dword [ebp - 0x5d0]
mov eax, dword [0x2a91fa40]
mov byte [ebp - 4], bl
call dword [eax + 0xc]
or dword [ebp - 4], 0xffffffff
jmp 0x2a831088
mov eax, dword [0x2a91fa40]
push 0xffffffffffffffff
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x604], ebx
push 0x2a90b360
lea eax, [ebp - 0x604]
jmp 0x2a831139
mov eax, dword [0x2a91fa40]
push 0xffffffffffffffff
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x610], ebx
push 0x2a90b360
lea eax, [ebp - 0x610]
jmp 0x2a831139
mov eax, dword [0x2a91fa40]
push 0xffffffffffffffff
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x600], ebx
push 0x2a90b360
lea eax, [ebp - 0x600]
jmp 0x2a831139
push 1
push ebx
push str.SoftwareClientsMailMicrosoft_OutlookEnvelopeCurVer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2a83147f
lea eax, [ebp - 0x5f8]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x60c]
push eax
push ebx
push ebx
push dword [ebp - 0x5e4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2a83147f
lea eax, [ebp - 0xb4]
push str.Outlook.Envelope.14
push eax
call fcn.2a837aea
pop ecx
pop ecx
test eax, eax
je 0x2a83137e
lea eax, [ebp - 0xb4]
push str.Outlook.Envelope.15
push eax
call fcn.2a837aea
pop ecx
pop ecx
test eax, eax
jne 0x2a83147f
push 3
pop edi
lea eax, [ebp - 0x2b8]
push edi
push eax
call fcn.2a837aea
pop ecx
pop ecx
mov dword [ebp - 0x5d0], eax
mov esi, dword [ebp - 0x5d4]
add esi, 4
lea eax, [ebp - 0x5d0]
mov dword [ebp - 4], edi
cmp eax, esi
je 0x2a8313b4
push eax
mov ecx, esi
call fcn.2a837aea
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5d0], ebx
je 0x2a8313cc
push dword [ebp - 0x5d0]
call fcn.2a837aea
pop ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x5d8]
push ecx
push eax
call fcn.2a837aea
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.2a837aea
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.2a837aea
mov ecx, dword [ebp - 0x5d4]
add esp, 0x18
push dword [ebp - 0x5e0]
push esi
call fcn.2a830dd5
test ax, ax
jne 0x2a83150c
push esi
call fcn.2a837aea
lea eax, [ebp - 0x2b8]
push edi
push eax
call fcn.2a837aea
add esp, 0xc
mov dword [ebp - 0x5d0], eax
lea eax, [ebp - 0x5d0]
mov dword [ebp - 4], 4
cmp eax, esi
je 0x2a831446
push eax
mov ecx, esi
call fcn.2a837aea
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5d0], ebx
je 0x2a83145e
push dword [ebp - 0x5d0]
call fcn.2a837aea
pop ecx
lea eax, [ebp - 0x5d8]
push eax
push dword [esi]
call fcn.2a837aea
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call fcn.2a837aea
mov ecx, dword [ebp - 0x5d4]
jmp 0x2a8314f1
mov edi, dword [ebp - 0x5d4]
lea esi, [edi + 4]
push esi
call fcn.2a837aea
lea eax, [ebp - 0x3bc]
push 3
push eax
call fcn.2a837aea
add esp, 0xc
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x5d4]
mov dword [ebp - 4], 5
cmp eax, esi
je 0x2a8314be
push eax
mov ecx, esi
call fcn.2a837aea
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5d4], ebx
je 0x2a8314d6
push dword [ebp - 0x5d4]
call fcn.2a837aea
pop ecx
lea eax, [ebp - 0x5d8]
push eax
push dword [esi]
call fcn.2a837aea
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call fcn.2a837aea
mov ecx, edi
add esp, 0x10
push dword [ebp - 0x5e0]
push esi
call fcn.2a830dd5
test ax, ax
jne 0x2a83150c
push esi
call fcn.2a837aea
pop ecx
push dword [ebp - 0x5dc]
call fcn.2a837aea
pop ecx
call fcn.2a85aa3e
ret