Function at 0x461cdf
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4c2e25
call fcn.004c2540
sub esp, 0x234
mov eax, dword [0x4e7384]
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 0x461dd2
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 0x461dd2
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x21c]
push edx
push 0x4cbb0c
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 0x461d77
push dword [ebp - 0x228]
call dword [0x4eaf48]
jmp 0x461dbe
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 0x461dec
push dword [ebp - 0x228]
call dword [0x4eaf48]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x461dbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x461dd2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x461de5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x462002
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 0x461fb3
mov dword [ebp - 0x230], ebx
push edi
cmp dword [ebp - 0x230], 0x64
jae 0x461fb2
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 0x461f82
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.0049058c
test eax, eax
je 0x461f82
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
lea edx, [ebp - 0x23c]
push edx
push ebx
push 0x4cbbec
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 0x461f72
push dword [ebp - 0x220]
push dword [ebp - 0x228]
call dword [0x4eaef8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x234], eax
lea eax, [esi + 0x234]
lea edi, [ebp - 0x23c]
call fcn.0046ca3b
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 0x461f6c
push ebx
push dword [ebp - 0x238]
xor ecx, ecx
inc ecx
call fcn.004905f0
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edi, eax
cmp edi, ebx
je 0x461f6c
push dword [ebp - 0x240]
mov eax, dword [esi + 0x90]
push edi
call fcn.00447098
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.00439816
push dword [ebp - 0x220]
call dword [0x4eaf48]
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 0x461e1d
pop edi
push dword [ebp - 0x228]
call dword [0x4eaf48]
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x461fd9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x461fed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x462000
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.004c2215
leave
ret 0x14