Function at 0x7cf6a161
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x25c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x25c]
push 0x7cf35098
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor esi, esi
lea eax, [ebp - 0x25c]
push esi
push esi
push eax
call fcn.7cf65038
push 0x43
call fcn.7cf5b11e
test eax, eax
jne 0x7cf6a451
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x25c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
test eax, eax
jl 0x7cf6a451
mov eax, dword [ebp - 4]
push esi
lea edx, [ebp - 0x40]
push 0x3c
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x7cf6a448
cmp dword [ebp - 0x40], 0x3c
jne 0x7cf6a448
cmp dword [ebp - 0x38], 0x403
jne 0x7cf6a448
cmp dword [ebp - 0x3c], 0x346e6957
jne 0x7cf6a448
call fcn.7cf6a45a
cmp dword [ebp - 0x34], eax
jne 0x7cf6a448
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jne 0x7cf6a448
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
jne 0x7cf6a448
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x7cf6a448
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jne 0x7cf6a448
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x18]
jne 0x7cf6a448
call dword [sym.imp.SHLWAPI.dll_Ordinal_193]
push 1
pop ecx
cmp dword [ebp - 0x2c], ecx
jne 0x7cf6a267
cmp eax, ecx
jne 0x7cf6a276
cmp dword [ebp - 0x2c], ecx
je 0x7cf6a26b
cmp eax, ecx
je 0x7cf6a276
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x7d04b048]
jbe 0x7cf6a27b
mov dword [ebp + 0x10], esi
jmp 0x7cf6a288
push 8
push 0x14
call dword [sym.imp.COMCTL32.dll_DSA_Create]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], esi
je 0x7cf6a448
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x30]
dec eax
push eax
push dword [ebp + 0x10]
call dword [sym.imp.COMCTL32.dll_DSA_SetItem]
test eax, eax
je 0x7cf6a43f
mov eax, dword [ebp - 4]
push esi
mov edi, eax
mov ebx, dword [eax]
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*4]
shl eax, 2
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
call esi
push eax
push edi
call dword [ebx + 0xc]
xor ebx, ebx
cmp eax, ebx
jl 0x7cf6a43f
cmp dword [ebp - 0x30], ebx
jle 0x7cf6a324
push ebx
push dword [ebp + 0x10]
call esi
mov edi, eax
push 1
lea eax, [ebp - 0x25c]
push 0x104
push eax
push dword [ebp - 4]
call fcn.7cfb1581
test eax, eax
jl 0x7cf6a31b
cmp word [ebp - 0x25c], 0
je 0x7cf6a31b
lea eax, [ebp - 0x25c]
push eax
push 0
call fcn.7cf50d2d
mov dword [edi], eax
jmp 0x7cf6a31e
and dword [edi], 0
inc ebx
cmp ebx, dword [ebp - 0x30]
jl 0x7cf6a2dd
push dword [ebp - 4]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_Read]
call esi
mov edi, eax
test edi, edi
je 0x7cf6a43f
call fcn.7d0426bb
test eax, eax
je 0x7cf6a351
push edi
call fcn.7cf8407a
test ah, 0x20
je 0x7cf6a438
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], eax
jne 0x7cf6a438
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x18], eax
jne 0x7cf6a438
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x7cf6a438
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x7d04cb88]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
test eax, eax
je 0x7cf6a3a2
push eax
call esi
mov eax, dword [0x7d04cb8c]
mov dword [0x7d04cb88], edi
test eax, eax
je 0x7cf6a3b4
push eax
call esi
mov eax, dword [0x7d04cbb8]
mov dword [0x7d04cb8c], ebx
test eax, eax
je 0x7cf6a3ca
push eax
call dword [sym.imp.COMCTL32.dll_DSA_DeleteAllItems]
mov eax, dword [ebp + 0x10]
mov dword [0x7d04cbb8], eax
lea eax, [ebp + 8]
push eax
call fcn.7cf90525
test eax, eax
jl 0x7cf6a3f3
mov eax, dword [ebp + 8]
push 3
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
and dword [0x7d04cba8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x14]
push 1
shr eax, 0xa
sub ecx, eax
mov eax, dword [ebp - 0x10]
sub ecx, dword [0x7d04cba8]
and dword [0x7d04cbbc], 0
mov dword [0x7d04cbac], eax
mov eax, dword [ebp - 0xc]
mov dword [0x7d04cbb0], eax
mov eax, dword [ebp - 8]
mov dword [0x7d04cbb4], eax
mov dword [0x7d04cba8], ecx
pop eax
jmp 0x7cf6a453
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
push dword [ebp + 0x10]
call dword [sym.imp.COMCTL32.dll_DSA_DeleteAllItems]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14