Function at 0x45f812
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5ff25d
call fcn.004db4be
mov edi, ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x248], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x234], ebx
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x45fb0f
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
push eax
push dword [ebp + 0x10]
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x45fb0f
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 0x234]
push edx
push 0x6159e0
push ebx
push dword [ebp - 0x224]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jns 0x45f8ad
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, ebx
jmp 0x45faf9
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
push edx
push dword [ebp + 0x14]
push dword [edi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x45f8e7
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, ebx
jmp 0x45fae5
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x220]
mov esi, dword [ebp + 0xc]
push ebx
push edx
mov dword [ebp - 0x220], ebx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x45fad6
cmp ebx, 0x64
jae 0x45fad4
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x230]
push edx
lea edx, [ebp - 0x220]
mov dword [ebp - 0x230], 0x20000177
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x24]
test dword [ebp - 0x230], 0x100
je 0x45faa2
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004e0bc0
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
mov ecx, dword [ebp - 0x228]
add esp, 0xc
push 0
push 0x104
push eax
call fcn.005c3b9c
test eax, eax
je 0x45faa2
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x228]
push edx
push 0
push 0x618510
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 1
push dword [edi + 4]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x45fa7d
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILCombine]
mov dword [ebp - 0x23c], eax
lea ecx, [edi + 0x168]
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x240]
push eax
call fcn.0046f4e4
mov eax, esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0
push dword [ebp + 8]
inc esi
mov dword [ebp - 0x24c], eax
inc ebx
mov dword [ebp - 0x244], ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [edi + 0x9c], 0
je 0x45fa73
mov ecx, dword [ebp - 0x23c]
push 0
call fcn.005c3b1a
push 0
push eax
push dword [ebp - 0x248]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov ebx, eax
test ebx, ebx
je 0x45fa6d
push dword [ebp - 0x24c]
mov ecx, dword [edi + 0x9c]
push ebx
call fcn.0045cdda
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [ebp - 0x244]
xor eax, eax
mov dword [ebp - 0x23c], eax
jmp 0x45fa83
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 3
test eax, eax
je 0x45fa92
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x45faa2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x220]
and dword [ebp - 0x220], 0
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x45f90e
xor ebx, ebx
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILFree]
sub esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x45faf9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x45fb11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x45fb11
mov esi, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x45fb24
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
call fcn.004db46d
ret 0x14