Function at 0x1000bfb2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea eax, [ebp - 0x28]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x130]
push edx
push 1
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov edi, dword [sym.imp.SHLWAPI.dll_StrRetToBufW]
lea eax, [ebp - 0x338]
push 0x104
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x130]
push eax
call edi
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [ebp - 0x338]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1000c06e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop esi
jmp 0x1000c1f6
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push 0x60
mov ecx, dword [eax]
push esi
push eax
mov dword [ebp - 0x24], esi
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1000c105
cmp dword [ebp - 0x20], 1
jne 0x1000c105
cmp dword [ebp - 0x24], 0x64
jge 0x1000c105
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x130]
inc dword [ebp - 0x24]
push edx
mov ecx, dword [eax]
push 1
push dword [ebp - 4]
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x338]
push 0x104
push eax
lea eax, [ebp - 0x130]
push dword [ebp - 4]
push eax
call edi
lea eax, [ebp - 0x338]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1000c0f2
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x1000c081
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 1
je 0x1000c05d
lea eax, [ebp - 0x1c]
push eax
push 0x11
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x100197fc
mov ecx, dword [eax]
push esi
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
push 0x60
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1000c1cc
cmp dword [ebp - 0x20], 1
jne 0x1000c1cc
cmp esi, 0x64
jge 0x1000c1cc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x130]
push edx
push 1
push dword [ebp - 4]
mov ecx, dword [eax]
inc esi
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x338]
push 0x104
push eax
lea eax, [ebp - 0x130]
push dword [ebp - 4]
push eax
call edi
lea eax, [ebp - 0x338]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1000c1b9
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x1000c14b
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4