Function at 0x44aeee
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4bf490]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push edi
mov edi, ecx
push edi
mov ecx, str.ProgramFiles64Folder
call fcn.004404b0
pop ecx
test al, al
je 0x44af5d
push edi
lea eax, [ebp - 0x80]
push eax
call fcn.00416651
push 0x4a7e70
lea eax, [ebp - 0x80]
call fcn.0044b369
test eax, eax
je 0x44af55
lea eax, [ebp - 0x80]
call fcn.00406165
mov eax, edi
call fcn.0043e5d0
lea ecx, [ebp - 0x80]
call fcn.004071b8
mov al, 1
jmp 0x44b175
lea ecx, [ebp - 0x80]
call fcn.004071b8
push ebx
push esi
push str.SystemFolder
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x75], 1
call fcn.0040f504
push dword [eax]
push edi
call fcn.0042e31c
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x7c]
inc bl
call fcn.004071b8
test bl, bl
je 0x44afa1
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x44afdd
push str.WindowsFolder
lea eax, [ebp - 0x7c]
push eax
call fcn.0040f504
push dword [eax]
push edi
call fcn.0042e31c
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x7c]
inc bl
call fcn.004071b8
test bl, bl
je 0x44aff6
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, eax
push 0x5c
pop ecx
mov word [ebp + eax + 0x198], cx
xor ecx, ecx
mov word [ebp + eax + 0x19a], cx
jmp 0x44b069
push str.WindowsVolume
lea eax, [ebp - 0x7c]
push eax
call fcn.0040f504
push dword [eax]
push edi
call fcn.0042e31c
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x7c]
inc bl
call fcn.004071b8
test bl, bl
je 0x44b03d
push 0x104
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp + 0x19e], ax
jmp 0x44b069
push edi
mov ecx, str.TempFolder
call fcn.004404b0
pop ecx
test al, al
je 0x44b07b
lea eax, [ebp + 0x198]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov word [ebp + eax*2 + 0x198], cx
lea eax, [ebp + 0x198]
push eax
push edi
call fcn.004073e1
jmp 0x44b170
push edi
mov ecx, str.SETUPEXEDIR
call fcn.004404b0
pop ecx
test al, al
je 0x44b0d6
mov eax, dword [0x4c2598]
cmp dword [eax - 0xc], 0
mov esi, 0x4c2598
jne 0x44b0ca
push 0x105
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x44b0b6
cmp word [ebp + eax*2 - 0x74], 0x5c
je 0x44b0b9
dec eax
jne 0x44b0ae
xor ecx, ecx
mov word [ebp + eax*2 - 0x72], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004073e1
mov eax, esi
call fcn.00406165
jmp 0x44b170
xor esi, esi
mov ecx, dword [esi*4 + 0x4c10f0]
push edi
call fcn.004404b0
pop ecx
test al, al
jne 0x44b0f0
inc esi
cmp esi, 0xd
jb 0x44b0d8
cmp esi, 0xd
jae 0x44b16c
lea eax, [ebp - 0x7c]
push eax
lea esi, [esi*4 + 0x4a7e3c]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x44b126
push dword [esi]
mov ebx, edi
call fcn.0044b18b
pop ecx
test al, al
jne 0x44b170
call fcn.0044b256
mov byte [ebp - 0x75], al
jmp 0x44b170
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
and dword [ebp - 0x80], 0
mov esi, eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x80]
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test esi, esi
je 0x44b16c
lea eax, [ebp + 0x198]
push eax
push edi
call fcn.004073e1
mov eax, edi
call fcn.0043e5d0
jmp 0x44b170
mov byte [ebp - 0x75], 0
mov al, byte [ebp - 0x75]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00476b4b
add ebp, 0x3a4
leave
ret