Function at 0x4c45a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x54f0ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x5ab980]
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x138], ebp
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x144]
lea ecx, [esp + 0x10]
push esi
mov byte [esp + 0x13c], 1
call fcn.00512a1d
lea ecx, [esp + 0x10]
call fcn.00512e18
lea ecx, [esp + 0x14]
call fcn.0051286f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [edi + 0x34]
call fcn.00511d05
test eax, eax
je 0x4c4654
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], ebp
je 0x4c4654
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.005128e4
xor eax, eax
jmp 0x4c490f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [esi]
push str.Start_Menu
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c468a
mov eax, 0xb
lea edx, [esp + 0x18]
push edx
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x4c4852
mov edx, dword [esi]
push str.SendTo
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c46a5
mov eax, 9
jmp 0x4c4678
mov eax, dword [esi]
push str.Recent
push eax
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c46c0
mov eax, 8
jmp 0x4c4678
mov ecx, dword [esi]
push str.Programs
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c46db
mov eax, 2
jmp 0x4c4678
mov edx, dword [esi]
push str.Personal
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c46f6
mov eax, 5
jmp 0x4c4678
mov eax, dword [esi]
push str.Fonts
push eax
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c4714
mov eax, 0x14
jmp 0x4c4678
mov ecx, dword [esi]
push str.Favorites
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c4732
mov eax, 6
jmp 0x4c4678
mov edx, dword [esi]
push str.Desktop
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c4750
mov eax, 0x10
jmp 0x4c4678
mov eax, dword [esi]
push str.Cookies
push eax
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c476e
mov eax, 0x21
jmp 0x4c4678
mov ecx, dword [esi]
push str.Quick_Launch
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebp
jne 0x4c484c
mov eax, dword [0x5ab980]
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
push str.appdata
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 3
call fcn.00512952
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x144], 4
call fcn.004c3e00
test eax, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 3
setg bl
call fcn.005128e4
test bl, bl
pop ebx
je 0x4c482a
lea ecx, [esp + 0x20]
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 5
call fcn.00512a1d
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 3
call fcn.005128e4
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
mov ecx, edi
call fcn.004c3fe0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 1
call fcn.005128e4
mov dword [esp + 0x18], ebp
jmp 0x4c48b5
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4c48b5
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4c48a6
lea edx, [esp + 0x28]
lea ecx, [esp + 0xc]
push edx
call fcn.00512952
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
mov ecx, edi
mov byte [esp + 0x144], 6
call fcn.004c3fe0
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 1
call fcn.005128e4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x138], 0
cmp eax, ebp
lea ecx, [esp + 0x14]
jne 0x4c48f1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x4c490f
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.005128e4
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x130
ret 8