Function at 0x45546f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x2a4
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push 0x3c0
mov eax, 0x4ac85e
call fcn.00466e90
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.00468220
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 0x455512
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 0x455512
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], 0x4b4e7c
mov dword [ebp + 0x2c], 0x4b4e74
call fcn.004090b3
push 0x4b2194
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0044a3a8
lea ecx, [ebp]
call fcn.00454de5
cmp esi, 0x2b
je 0x455559
cmp esi, 0x26
jne 0x45559c
lea ecx, [ebp]
call fcn.00454624
test al, al
je 0x455581
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp]
call fcn.00454d39
xor edi, edi
inc edi
mov dword [ebp - 0x18], edi
cmp dword [eax + 0x18], ebx
je 0x455584
mov byte [ebp - 0xe], bl
jmp 0x455588
xor edi, edi
inc edi
mov byte [ebp - 0xe], 1
test byte [ebp - 0x18], 1
je 0x45559f
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x60]
call fcn.004016c0
jmp 0x45559f
xor edi, edi
inc edi
cmp byte [ebp - 0xd], bl
jne 0x4555a9
cmp byte [ebp - 0xe], bl
je 0x455601
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x68]
call fcn.00436d86
mov eax, esi
sub eax, 5
mov byte [ebp - 4], 1
je 0x4558e2
sub eax, 0xf
je 0x455896
sub eax, 6
je 0x45577f
dec eax
dec eax
je 0x45577f
sub eax, 7
je 0x45577f
sub eax, 3
je 0x4556c6
sub eax, 5
je 0x455613
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], bl
call fcn.004016c0
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp]
push eax
call fcn.00437291
jmp 0x4559eb
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.00454ecd
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xc
call fcn.00454de5
lea ecx, [ebp + 0x34]
call fcn.00454624
test al, al
je 0x455652
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x34]
call fcn.00454d39
or dword [ebp - 0x18], 4
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x455656
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 4
je 0x455667
lea ecx, [ebp - 0x28c]
call fcn.004016c0
cmp byte [ebp - 0xd], bl
je 0x4556ac
lea eax, [ebp - 0x164]
push 0x26
push eax
call fcn.0045546f
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00454644
push eax
lea ecx, [ebp + 0x34]
call fcn.0040912a
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xc
call fcn.004016c0
push str.Common_Files_
lea ecx, [ebp + 0x34]
call fcn.0044a3a8
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp + 0x34]
push eax
call fcn.00437291
lea ecx, [ebp + 0x34]
call fcn.004016c0
jmp 0x4559e3
lea eax, [ebp + 0x34]
push ebx
push eax
call fcn.00454ecd
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xe
call fcn.00454de5
lea ecx, [ebp + 0x34]
call fcn.00454624
test al, al
je 0x455705
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp + 0x34]
call fcn.00454d39
or dword [ebp - 0x18], 8
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x455709
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 8
je 0x45571a
lea ecx, [ebp - 0x3cc]
call fcn.004016c0
cmp byte [ebp - 0xd], bl
je 0x4556ac
lea eax, [ebp - 0xfc]
push ebx
push eax
call fcn.0044b0c8
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xf
call fcn.0040912a
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xe
call fcn.004016c0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp + 0x34]
call fcn.00454d39
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0x10
call fcn.0040912a
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xe
call fcn.004016c0
push str.Program_Files
jmp 0x4556a4
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x4557b3
lea eax, [ebp - 0x198]
push ebx
push eax
call fcn.0044b0c8
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 7
call fcn.0040912a
lea ecx, [ebp - 0x198]
jmp 0x455847
lea eax, [ebp - 0x1cc]
push 5
push eax
call fcn.0045546f
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 8
call fcn.0040912a
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 1
call fcn.004016c0
cmp dword [ebp + 0x80], ebx
je 0x455850
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454644
mov ecx, eax
call fcn.0045500b
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 9
call fcn.0040912a
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 1
call fcn.004016c0
cmp esi, 0x23
jne 0x45588c
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454644
mov ecx, eax
call fcn.0045500b
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xa
call fcn.0040912a
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 1
call fcn.004016c0
cmp esi, 0x23
jne 0x45588c
push edi
lea eax, [ebp - 0xd]
push eax
push str.All_Users_
lea ecx, [ebp - 0xc8]
call fcn.0041c841
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xb
call fcn.00454897
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.004016c0
push str.Application_Data_
jmp 0x4559ce
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.0044b0c8
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.0041c841
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0x12
call fcn.00454897
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.004016c0
jmp 0x4556ac
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jbe 0x455943
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0044b0c8
pop ecx
pop ecx
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00454d39
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 3
call fcn.0040912a
lea ecx, [ebp - 0x24c]
call fcn.004016c0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.004016c0
push str.My_Documents_
jmp 0x4559ce
lea eax, [ebp - 0x54]
push 2
push eax
call fcn.0045546f
pop ecx
pop ecx
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00454644
mov ecx, eax
call fcn.0045500b
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 5
call fcn.0040912a
lea ecx, [ebp - 0x2cc]
call fcn.004016c0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004016c0
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454644
mov ecx, eax
call fcn.0045500b
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 6
call fcn.0040912a
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 1
call fcn.004016c0
call esi
cmp al, 5
jae 0x455939
push str.Personal_
lea ecx, [ebp + 0x68]
call fcn.0044a3a8
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp + 0x68]
push eax
call fcn.00437291
lea ecx, [ebp + 0x68]
call fcn.004016c0
lea ecx, [ebp]
call fcn.004016c0
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.00466e81
add ebp, 0x2a8
leave
ret