Function at 0x460d64
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c02a4
call fcn.004bf97c
sub esp, 0x12c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, ebx
jl 0x460e1e
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x460e1e
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x10]
push edx
push 0x4c8aec
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x460dd5
push dword [ebp - 0x1c]
call dword [0x4e5974]
jmp 0x460e0d
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push dword [ebp + 0x14]
push dword [esi + 4]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jge 0x460e35
push dword [ebp - 0x1c]
call dword [0x4e5974]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x460e0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x460e1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x460e2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x460fdf
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
push 1
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x460f9c
mov dword [ebp - 0x24], ebx
push edi
cmp dword [ebp - 0x24], 0x64
jae 0x460f9b
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
mov dword [ebp + 0x14], 0x20000177
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test byte [ebp + 0x15], 1
je 0x460f77
mov edx, dword [ebp - 0x10]
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x138], bl
lea edi, [ebp - 0x137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x14]
call fcn.0048e2bf
test eax, eax
je 0x460f77
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea edx, [ebp - 0x30]
push edx
push ebx
push 0x4c8bcc
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push dword [esi + 4]
push eax
call dword [ecx + 0x28]
cmp eax, ebx
jl 0x460f6a
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [0x4e5924]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x234]
lea edi, [ebp - 0x30]
call fcn.0046b831
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0x10]
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x138]
push ecx
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_AppendMenuA]
cmp dword [esi + 0x90], ebx
je 0x460f67
push ebx
push dword [ebp - 0x2c]
xor eax, eax
inc eax
call fcn.0048e323
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edi, eax
cmp edi, ebx
je 0x460f67
push dword [ebp - 0x34]
mov eax, dword [esi + 0x90]
push edi
call fcn.0046a5e7
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.0043841e
push dword [ebp - 0x14]
call dword [0x4e5974]
mov eax, dword [ebp - 0x20]
push ebx
lea edx, [ebp - 0x14]
push edx
push 1
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x460e5a
pop edi
push dword [ebp - 0x1c]
call dword [0x4e5974]
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x460fbc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x460fcd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x460fdd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14