Function at 0x455a76
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, 0x4ad161
call fcn.004674a0
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.00468830
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 0x455b19
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 0x455b19
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], 0x4b4eb8
mov dword [ebp + 0x2c], 0x4b4eb0
call fcn.00408f08
push 0x4b21a4
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.00449f71
lea ecx, [ebp]
call fcn.004553ec
cmp esi, 0x2b
je 0x455b60
cmp esi, 0x26
jne 0x455ba3
lea ecx, [ebp]
call fcn.00454bc1
test al, al
je 0x455b88
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp]
call fcn.00455340
xor edi, edi
inc edi
mov dword [ebp - 0x18], edi
cmp dword [eax + 0x18], ebx
je 0x455b8b
mov byte [ebp - 0xe], bl
jmp 0x455b8f
xor edi, edi
inc edi
mov byte [ebp - 0xe], 1
test byte [ebp - 0x18], 1
je 0x455ba6
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x60]
call fcn.00401680
jmp 0x455ba6
xor edi, edi
inc edi
cmp byte [ebp - 0xd], bl
jne 0x455bb0
cmp byte [ebp - 0xe], bl
je 0x455c08
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454ca0
mov eax, esi
sub eax, 5
mov byte [ebp - 4], 1
je 0x455ee9
sub eax, 0xf
je 0x455e9d
sub eax, 6
je 0x455d86
dec eax
dec eax
je 0x455d86
sub eax, 7
je 0x455d86
sub eax, 3
je 0x455ccd
sub eax, 5
je 0x455c1a
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], bl
call fcn.00401680
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp]
push eax
call fcn.00437289
jmp 0x455ff2
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.004554d4
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xc
call fcn.004553ec
lea ecx, [ebp + 0x34]
call fcn.00454bc1
test al, al
je 0x455c59
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x34]
call fcn.00455340
or dword [ebp - 0x18], 4
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x455c5d
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 4
je 0x455c6e
lea ecx, [ebp - 0x28c]
call fcn.00401680
cmp byte [ebp - 0xd], bl
je 0x455cb3
lea eax, [ebp - 0x164]
push 0x26
push eax
call fcn.00455a76
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00454b5c
push eax
lea ecx, [ebp + 0x34]
call fcn.00408f7f
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xc
call fcn.00401680
push str.Common_Files_
lea ecx, [ebp + 0x34]
call fcn.00449f71
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp + 0x34]
push eax
call fcn.00437289
lea ecx, [ebp + 0x34]
call fcn.00401680
jmp 0x455fea
lea eax, [ebp + 0x34]
push ebx
push eax
call fcn.004554d4
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xe
call fcn.004553ec
lea ecx, [ebp + 0x34]
call fcn.00454bc1
test al, al
je 0x455d0c
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp + 0x34]
call fcn.00455340
or dword [ebp - 0x18], 8
mov byte [ebp - 0xd], bl
cmp dword [eax + 0x18], ebx
jne 0x455d10
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 8
je 0x455d21
lea ecx, [ebp - 0x3cc]
call fcn.00401680
cmp byte [ebp - 0xd], bl
je 0x455cb3
lea eax, [ebp - 0xfc]
push ebx
push eax
call fcn.0044a8bd
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xf
call fcn.00408f7f
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xe
call fcn.00401680
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp + 0x34]
call fcn.00455340
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0x10
call fcn.00408f7f
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xe
call fcn.00401680
push str.Program_Files
jmp 0x455cab
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x455dba
lea eax, [ebp - 0x198]
push ebx
push eax
call fcn.0044a8bd
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 7
call fcn.00408f7f
lea ecx, [ebp - 0x198]
jmp 0x455e4e
lea eax, [ebp - 0x1cc]
push 5
push eax
call fcn.00455a76
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 8
call fcn.00408f7f
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 1
call fcn.00401680
cmp dword [ebp + 0x80], ebx
je 0x455e57
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454b5c
mov ecx, eax
call fcn.00455612
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 9
call fcn.00408f7f
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 1
call fcn.00401680
cmp esi, 0x23
jne 0x455e93
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454b5c
mov ecx, eax
call fcn.00455612
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xa
call fcn.00408f7f
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 1
call fcn.00401680
cmp esi, 0x23
jne 0x455e93
push edi
lea eax, [ebp - 0xd]
push eax
push str.All_Users_
lea ecx, [ebp - 0xc8]
call fcn.0041c8de
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xb
call fcn.00454e16
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00401680
push str.Application_Data_
jmp 0x455fd5
lea eax, [ebp + 0x34]
push edi
push eax
call fcn.0044a8bd
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.0041c8de
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0x12
call fcn.00454e16
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.00401680
jmp 0x455cb3
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jbe 0x455f4a
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0044a8bd
pop ecx
pop ecx
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00455340
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 3
call fcn.00408f7f
lea ecx, [ebp - 0x24c]
call fcn.00401680
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00401680
push str.My_Documents_
jmp 0x455fd5
lea eax, [ebp - 0x54]
push 2
push eax
call fcn.00455a76
pop ecx
pop ecx
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00454b5c
mov ecx, eax
call fcn.00455612
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 5
call fcn.00408f7f
lea ecx, [ebp - 0x2cc]
call fcn.00401680
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401680
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp + 0x68]
call fcn.00454b5c
mov ecx, eax
call fcn.00455612
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 6
call fcn.00408f7f
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 1
call fcn.00401680
call esi
cmp al, 5
jae 0x455f40
push str.Personal_
lea ecx, [ebp + 0x68]
call fcn.00449f71
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp + 0x68]
push eax
call fcn.00437289
lea ecx, [ebp + 0x68]
call fcn.00401680
lea ecx, [ebp]
call fcn.00401680
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.00467491
add ebp, 0x2a8
leave
ret