Function at 0x452c35
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x2a4
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push 0x3c0
mov eax, 0x4a974c
call fcn.004646d0
mov eax, dword [ebp + 0x2b0]
mov dword [ebp - 0x14], eax
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp + 0x9c], ax
lea eax, [ebp + 0x9e]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00465a60
mov esi, dword [ebp + 0x2b4]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
mov byte [ebp - 0xd], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x452cd8
lea eax, [ebp + 0x9c]
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 0xd], bl
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x452cd8
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x9c]
push eax
lea ecx, [ebp]
mov byte [ebp - 0xe], bl
mov dword [ebp], 0x4b114c
mov dword [ebp + 0x2c], 0x4b1144
call fcn.00409238
push 0x4ae4fc
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.004480f2
lea ecx, [ebp]
call fcn.004525ab
cmp esi, 0x2b
je 0x452d1f
cmp esi, 0x26
jne 0x452d62
lea ecx, [ebp]
call fcn.00451e42
test al, al
je 0x452d47
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp]
call fcn.004524ff
xor edi, edi
inc edi
mov dword [ebp - 0x18], edi
cmp dword [eax + 0x18], ebx
je 0x452d4a
mov byte [ebp - 0xe], bl
jmp 0x452d4e
xor edi, edi
inc edi
mov byte [ebp - 0xe], 1
test byte [ebp - 0x18], 1
je 0x452d65
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x60]
call fcn.004016f0
jmp 0x452d65
xor edi, edi
inc edi
cmp byte [ebp - 0xd], bl
jne 0x452d6f
cmp byte [ebp - 0xe], bl
je 0x452dc7
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x68]
call fcn.00436d3f
mov eax, esi
sub eax, 5
mov byte [ebp - 4], 1
je 0x4530a8
sub eax, 0xf
je 0x45305c
sub eax, 6
je 0x452f45
dec eax
dec eax
je 0x452f45
sub eax, 7
je 0x452f45
sub eax, 3
je 0x452e8c
sub eax, 5
je 0x452dd9
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], bl
call fcn.004016f0
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp]
push eax
call fcn.00437208
jmp 0x4531b1
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.00452693
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xc
call fcn.004525ab
lea ecx, [ebp + 0x34]
call fcn.00451e42
test al, al
je 0x452e18
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x34]
call fcn.004524ff
or dword [ebp - 0x18], 4
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x452e1c
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 4
je 0x452e2d
lea ecx, [ebp - 0x28c]
call fcn.004016f0
cmp byte [ebp - 0xd], bl
je 0x452e72
lea eax, [ebp - 0x164]
push 0x26
push eax
call fcn.00452c35
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00451ddd
push eax
lea ecx, [ebp + 0x34]
call fcn.004091a5
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xc
call fcn.004016f0
push str.Common_Files_
lea ecx, [ebp + 0x34]
call fcn.004480f2
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp + 0x34]
push eax
call fcn.00437208
lea ecx, [ebp + 0x34]
call fcn.004016f0
jmp 0x4531a9
lea eax, [ebp + 0x34]
push ebx
push eax
call fcn.00452693
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xe
call fcn.004525ab
lea ecx, [ebp + 0x34]
call fcn.00451e42
test al, al
je 0x452ecb
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp + 0x34]
call fcn.004524ff
or dword [ebp - 0x18], 8
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x452ecf
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 8
je 0x452ee0
lea ecx, [ebp - 0x3cc]
call fcn.004016f0
cmp byte [ebp - 0xd], bl
je 0x452e72
lea eax, [ebp - 0xfc]
push ebx
push eax
call fcn.004488c4
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xf
call fcn.004091a5
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xe
call fcn.004016f0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp + 0x34]
call fcn.004524ff
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0x10
call fcn.004091a5
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xe
call fcn.004016f0
push str.Program_Files
jmp 0x452e6a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x452f79
lea eax, [ebp - 0x198]
push ebx
push eax
call fcn.004488c4
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 7
call fcn.004091a5
lea ecx, [ebp - 0x198]
jmp 0x45300d
lea eax, [ebp - 0x1cc]
push 5
push eax
call fcn.00452c35
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 8
call fcn.004091a5
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 1
call fcn.004016f0
cmp dword [ebp + 0x80], ebx
je 0x453016
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00451ddd
mov ecx, eax
call fcn.004527d1
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 9
call fcn.004091a5
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 1
call fcn.004016f0
cmp esi, 0x23
jne 0x453052
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00451ddd
mov ecx, eax
call fcn.004527d1
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xa
call fcn.004091a5
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 1
call fcn.004016f0
cmp esi, 0x23
jne 0x453052
push edi
lea eax, [ebp - 0xd]
push eax
push str.All_Users_
lea ecx, [ebp - 0xc8]
call fcn.0041c8cd
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xb
call fcn.0045205d
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.004016f0
push str.Application_Data_
jmp 0x453194
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.004488c4
pop ecx
pop ecx
push edi
lea eax, [ebp - 0xd]
push eax
push str.Fonts
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.0041c8cd
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0x12
call fcn.0045205d
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.004016f0
jmp 0x452e72
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jbe 0x453109
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.004488c4
pop ecx
pop ecx
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004524ff
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 3
call fcn.004091a5
lea ecx, [ebp - 0x24c]
call fcn.004016f0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.004016f0
push str.My_Documents_
jmp 0x453194
lea eax, [ebp - 0x54]
push 2
push eax
call fcn.00452c35
pop ecx
pop ecx
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00451ddd
mov ecx, eax
call fcn.004527d1
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 5
call fcn.004091a5
lea ecx, [ebp - 0x2cc]
call fcn.004016f0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004016f0
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00451ddd
mov ecx, eax
call fcn.004527d1
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 6
call fcn.004091a5
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 1
call fcn.004016f0
call esi
cmp al, 5
jae 0x4530ff
push str.Personal_
lea ecx, [ebp + 0x68]
call fcn.004480f2
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp + 0x68]
push eax
call fcn.00437208
lea ecx, [ebp + 0x68]
call fcn.004016f0
lea ecx, [ebp]
call fcn.004016f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x2a8
leave
ret