Function at 0x46e675
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ee3db
call fcn.004ebd20
sub esp, 0x240
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24c], eax
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 0x46e773
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 0x46e773
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x21c]
push edx
push 0x4f7b9c
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 0x46e718
push dword [ebp - 0x228]
call dword [0x5225d0]
jmp 0x46e75f
mov dword [ebp - 0x22c], ebx
lea edx, [ebp - 0x22c]
push edx
push dword [ebp + 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
push dword [esi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jge 0x46e78d
push dword [ebp - 0x228]
call dword [0x5225d0]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x46e75f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x46e773
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x46e786
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x46e9bf
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [ebp - 0x220]
push edx
mov dword [ebp - 0x230], 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 0x46e96d
mov dword [ebp - 0x234], ebx
push edi
cmp dword [ebp - 0x234], 0x64
jae 0x46e96c
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x238]
push edx
lea edx, [ebp - 0x220]
push edx
push 1
mov dword [ebp - 0x238], 0x20000177
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test byte [ebp - 0x237], 1
je 0x46e93c
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.0049f40a
test eax, eax
je 0x46e93c
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
lea edx, [ebp - 0x244]
push edx
push ebx
push 0x4f7c8c
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 0x46e92c
push dword [ebp - 0x220]
push dword [ebp - 0x228]
call dword [0x522580]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
lea eax, [esi + 0x240]
lea edi, [ebp - 0x244]
call fcn.00479d1b
mov eax, dword [ebp - 0x230]
inc dword [ebp - 0x230]
inc dword [ebp - 0x234]
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x248], eax
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [esi + 0x90], ebx
je 0x46e926
push dword [ebp - 0x240]
xor edx, edx
xor ecx, ecx
inc edx
call fcn.0049f46e
push ebx
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edi, eax
cmp edi, ebx
je 0x46e926
push dword [ebp - 0x248]
mov eax, dword [esi + 0x90]
push edi
call fcn.004513f6
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x240], ebx
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 3
call fcn.00440f96
push dword [ebp - 0x220]
call dword [0x5225d0]
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 0x46e7c1
pop edi
push dword [ebp - 0x228]
call dword [0x5225d0]
mov esi, dword [ebp - 0x230]
sub esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x46e996
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x46e9aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x46e9bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 0x14