Function at 0x10070b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e824
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x100e6018]
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 edi, ecx
mov dword [ebp - 0x484], edi
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x494], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 4], 0
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10008c80
mov ecx, edi
call sym.iImportLib.dll_public:_long_int___thiscall_elex::msi::CMsiHelper::InstalledMsiOpenByGUID_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov esi, eax
mov dword [ebp - 0x490], esi
test esi, esi
jne 0x1007105a
push 0x100b2814
lea ecx, [ebp - 0x480]
call fcn.10008550
push 0x100b2814
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 1
call fcn.10008550
xor eax, eax
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], 0
mov word [ebp - 0x434], ax
mov byte [ebp - 4], 3
push 0x400
push eax
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x48c], eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call sym.iImportLib.dll_public:_long_int___thiscall_elex::msi::CMsiHelper::InstalledMsiQueryItem_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____int___int__
test eax, eax
jne 0x10070f8e
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [ecx]
xor eax, eax
push eax
push 0x100b2814
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
call fcn.100089b0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x488], 0
jne 0x10070e35
cmp dword [ebp - 0x48c], 0
jne 0x10070e35
cmp dword [ebp - 0x420], 8
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push str.common_files
push eax
call esi
test eax, eax
jne 0x10070e35
cmp dword [ebp - 0x420], 8
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push str.program_files
push eax
call esi
push 1
test eax, eax
push 0xffffffffffffffff
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x5c
lea ecx, [ebp - 0x434]
push eax
je 0x10070d7f
call fcn.10016c40
push eax
push 0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x434]
call fcn.10011440
mov esi, eax
lea eax, [ebp - 0x450]
cmp eax, esi
je 0x10070d62
cmp dword [ebp - 0x43c], 8
jb 0x10070d39
push dword [ebp - 0x450]
call ebx
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
call fcn.1000d5d0
cmp dword [ebp - 0x498], 8
jb 0x10070e35
push dword [ebp - 0x4ac]
call ebx
add esp, 4
jmp 0x10070e35
call fcn.10016c40
cmp dword [ebp - 0x420], 8
mov edi, eax
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x434]
cmovae ecx, dword [ebp - 0x434]
push eax
push ecx
call esi
test eax, eax
jne 0x10070e2f
cmp dword [ebp - 0x420], 8
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push str.programdata
push eax
call esi
test eax, eax
jne 0x10070e2f
cmp dword [ebp - 0x420], 8
push 0x5c
lea edx, [ebp - 0x434]
cmovae edx, dword [ebp - 0x434]
push eax
lea esi, [ebp - 0x434]
cmovae esi, dword [ebp - 0x434]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
lea ecx, [esi + 4]
cmp ecx, eax
je 0x10070e2f
cmp edi, 0xffffffff
je 0x10070e2f
push edi
push 0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x434]
call fcn.10011440
push eax
lea ecx, [ebp - 0x450]
call fcn.1000d090
lea ecx, [ebp - 0x4ac]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov edi, dword [ebp - 0x484]
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x10070f4c
mov ecx, dword [ebp - 0x458]
test ecx, ecx
jne 0x10070ebf
cmp dword [ebp - 0x43c], 8
lea edx, [ebp - 0x450]
cmovae edx, dword [ebp - 0x450]
cmp word [edx], cx
je 0x10070e7f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x10070e70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070e70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x468]
call fcn.100089b0
cmp dword [ebp - 0x420], 8
lea edx, [ebp - 0x434]
cmovae edx, dword [ebp - 0x434]
cmp word [edx], 0
jne 0x10070ead
xor ecx, ecx
jmp 0x10070f3f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070eb2
jmp 0x10070f3b
cmp ecx, eax
jbe 0x10070f4c
cmp dword [ebp - 0x43c], 8
lea edx, [ebp - 0x450]
cmovae edx, dword [ebp - 0x450]
cmp word [edx], 0
jne 0x10070ee5
xor ecx, ecx
jmp 0x10070eff
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070ef0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x468]
call fcn.100089b0
cmp dword [ebp - 0x420], 8
lea edx, [ebp - 0x434]
cmovae edx, dword [ebp - 0x434]
cmp word [edx], 0
jne 0x10070f2a
xor ecx, ecx
jmp 0x10070f3f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070f30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x480]
call fcn.100089b0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x43c], 8
jb 0x10070f64
push dword [ebp - 0x450]
call ebx
add esp, 4
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call sym.iImportLib.dll_public:_long_int___thiscall_elex::msi::CMsiHelper::InstalledMsiQueryItem_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____int___int__
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10070c50
cmp dword [ebp - 0x46c], 8
lea edx, [ebp - 0x480]
cmovae edx, dword [ebp - 0x480]
cmp word [edx], 0
jne 0x10070fac
xor ecx, ecx
jmp 0x10070fc0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070fb1
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x494]
push edx
call fcn.100089b0
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
push dword [edi]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x420], 8
jb 0x10070ff2
push dword [ebp - 0x434]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x454], 8
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], 0
mov word [ebp - 0x434], ax
jb 0x10071023
push dword [ebp - 0x468]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x46c], 8
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
jb 0x10071054
push dword [ebp - 0x480]
call ebx
add esp, 4
mov esi, dword [ebp - 0x490]
cmp dword [ebp + 0x1c], 8
jb 0x10071068
push dword [ebp + 8]
call ebx
add esp, 4
mov eax, esi
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.100947be
mov esp, ebp
pop ebp
ret 0x1c