Function at 0x45fc29
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5ff2dd
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 0x45ff26
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 0x45ff26
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 0x45fcc4
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, ebx
jmp 0x45ff10
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 0x45fcfe
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, ebx
jmp 0x45fefc
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 0x45feed
cmp ebx, 0x64
jae 0x45feeb
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 0x45feb9
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 0x45feb9
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 0x45fe94
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.0046f38c
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 0x45fe8a
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 0x45fe84
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 0x45fe9a
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 3
test eax, eax
je 0x45fea9
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x45feb9
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 0x45fd25
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 0x45ff10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x45ff28
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x45ff28
mov esi, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x45ff3b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
call fcn.004db46d
ret 0x14