Function at 0x464afe
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c871f
call fcn.004c7e20
sub esp, 0x234
mov eax, dword [0x4ed384]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], ebx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, ebx
jl 0x464bf1
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x228], ebx
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x464bf1
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x21c]
push edx
push 0x4d0b1c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x228]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x464b96
push dword [ebp - 0x228]
call dword [0x4f27e0]
jmp 0x464bdd
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push dword [ebp + 0x14]
push dword [esi + 4]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jge 0x464c0b
push dword [ebp - 0x228]
call dword [0x4f27e0]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x464bdd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x464bf1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x464c04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x464e21
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [ebp - 0x220]
push edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x22c]
push 1
mov dword [ebp - 0x220], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x464dd2
mov dword [ebp - 0x230], ebx
push edi
cmp dword [ebp - 0x230], 0x64
jae 0x464dd1
mov eax, dword [ebp - 0x21c]
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp - 0x220]
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 0x464da1
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call fcn.00492fe8
test eax, eax
je 0x464da1
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
lea edx, [ebp - 0x23c]
push edx
push ebx
push 0x4d0bfc
lea edx, [ebp - 0x220]
push edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push 1
push dword [esi + 4]
push eax
call dword [ecx + 0x28]
cmp eax, ebx
jl 0x464d91
push dword [ebp - 0x220]
push dword [ebp - 0x228]
call dword [0x4f2790]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x234], eax
lea eax, [esi + 0x240]
lea edi, [ebp - 0x23c]
call fcn.0046fc71
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0x10]
inc dword [ebp - 0x230]
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x240], eax
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [esi + 0x90], ebx
je 0x464d8b
push ebx
push dword [ebp - 0x238]
xor ecx, ecx
inc ecx
call fcn.0049304c
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edi, eax
cmp edi, ebx
je 0x464d8b
push dword [ebp - 0x240]
mov eax, dword [esi + 0x90]
push edi
call fcn.0046e96f
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x238], ebx
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 3
call fcn.0043a047
push dword [ebp - 0x220]
call dword [0x4f27e0]
mov eax, dword [ebp - 0x22c]
push ebx
lea edx, [ebp - 0x220]
push edx
push 1
mov dword [ebp - 0x220], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x464c3c
pop edi
push dword [ebp - 0x228]
call dword [0x4f27e0]
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x464df8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x464e0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x464e1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c7b01
leave
ret 0x14