Function at 0x452c44
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, 0x4a975c
call fcn.004646e0
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.00465a70
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 0x452ce7
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 0x452ce7
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], 0x4b11ac
mov dword [ebp + 0x2c], 0x4b11a4
call fcn.00409238
push 0x4ae53c
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.004480f2
lea ecx, [ebp]
call fcn.004525ba
cmp esi, 0x2b
je 0x452d2e
cmp esi, 0x26
jne 0x452d71
lea ecx, [ebp]
call fcn.00451e51
test al, al
je 0x452d56
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp]
call fcn.0045250e
xor edi, edi
inc edi
mov dword [ebp - 0x18], edi
cmp dword [eax + 0x18], ebx
je 0x452d59
mov byte [ebp - 0xe], bl
jmp 0x452d5d
xor edi, edi
inc edi
mov byte [ebp - 0xe], 1
test byte [ebp - 0x18], 1
je 0x452d74
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x60]
call fcn.004016f0
jmp 0x452d74
xor edi, edi
inc edi
cmp byte [ebp - 0xd], bl
jne 0x452d7e
cmp byte [ebp - 0xe], bl
je 0x452dd6
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 0x4530b7
sub eax, 0xf
je 0x45306b
sub eax, 6
je 0x452f54
dec eax
dec eax
je 0x452f54
sub eax, 7
je 0x452f54
sub eax, 3
je 0x452e9b
sub eax, 5
je 0x452de8
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 0x4531c0
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.004526a2
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xc
call fcn.004525ba
lea ecx, [ebp + 0x34]
call fcn.00451e51
test al, al
je 0x452e27
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x34]
call fcn.0045250e
or dword [ebp - 0x18], 4
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x452e2b
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 4
je 0x452e3c
lea ecx, [ebp - 0x28c]
call fcn.004016f0
cmp byte [ebp - 0xd], bl
je 0x452e81
lea eax, [ebp - 0x164]
push 0x26
push eax
call fcn.00452c44
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00451dec
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 0x4531b8
lea eax, [ebp + 0x34]
push ebx
push eax
call fcn.004526a2
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xe
call fcn.004525ba
lea ecx, [ebp + 0x34]
call fcn.00451e51
test al, al
je 0x452eda
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp + 0x34]
call fcn.0045250e
or dword [ebp - 0x18], 8
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x452ede
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 8
je 0x452eef
lea ecx, [ebp - 0x3cc]
call fcn.004016f0
cmp byte [ebp - 0xd], bl
je 0x452e81
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.0045250e
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 0x452e79
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x452f88
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 0x45301c
lea eax, [ebp - 0x1cc]
push 5
push eax
call fcn.00452c44
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 0x453025
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00451dec
mov ecx, eax
call fcn.004527e0
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 0x453061
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00451dec
mov ecx, eax
call fcn.004527e0
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 0x453061
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.0045206c
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.004016f0
push str.Application_Data_
jmp 0x4531a3
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.0045206c
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.004016f0
jmp 0x452e81
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jbe 0x453118
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.0045250e
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 0x4531a3
lea eax, [ebp - 0x54]
push 2
push eax
call fcn.00452c44
pop ecx
pop ecx
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00451dec
mov ecx, eax
call fcn.004527e0
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.00451dec
mov ecx, eax
call fcn.004527e0
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 0x45310e
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.004646d1
add ebp, 0x2a8
leave
ret