Function at 0x46e1a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ed4d2
call fcn.004eadec
sub esp, 0x234
mov eax, dword [0x516ad4]
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 0x46e293
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 0x46e293
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x21c]
push edx
push 0x4f6b9c
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 0x46e238
push dword [ebp - 0x228]
call dword [0x5215d0]
jmp 0x46e27f
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 0x46e2ad
push dword [ebp - 0x228]
call dword [0x5215d0]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x46e27f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x46e293
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x46e2a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x46e4c3
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 0x46e474
mov dword [ebp - 0x230], ebx
push edi
cmp dword [ebp - 0x230], 0x64
jae 0x46e473
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 0x46e443
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.0049eeb8
test eax, eax
je 0x46e443
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
lea edx, [ebp - 0x23c]
push edx
push ebx
push 0x4f6c8c
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 0x46e433
push dword [ebp - 0x220]
push dword [ebp - 0x228]
call dword [0x521580]
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.0047936c
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 0x46e42d
push ebx
push dword [ebp - 0x238]
xor ecx, ecx
inc ecx
call fcn.0049ef1c
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edi, eax
cmp edi, ebx
je 0x46e42d
push dword [ebp - 0x240]
mov eax, dword [esi + 0x90]
push edi
call fcn.00478167
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.00441356
push dword [ebp - 0x220]
call dword [0x5215d0]
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 0x46e2de
pop edi
push dword [ebp - 0x228]
call dword [0x5215d0]
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x46e49a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x46e4ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x46e4c1
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.004eae3c
leave
ret 0x14