Function at 0x10060cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x10
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call edi
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10060d52
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x10060d4a
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x218], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x218]
mov dword [ecx], eax
lea eax, [ebp - 0x214]
push eax
push 5
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call edi
test eax, eax
jne 0x10060dbd
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x10060db5
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x218], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x10060e6b
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x100cbf2c
mov dword [ebp - 0x220], 0
call eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10060e6b
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
mov ecx, dword [0x101013c8]
add esp, 0x14
mov dword [ecx + 8], eax
test eax, eax
jne 0x10060e61
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
push 0x10
push 0
call edi
test eax, eax
jne 0x10060e57
lea ecx, [ebp - 0x218]
call fcn.1005feb0
mov ecx, eax
mov eax, dword [0x101013c8]
mov dword [eax + 8], ecx
push dword [ebp - 0x220]
call esi
jmp 0x10060ed7
mov eax, dword [0x101013c8]
xor ecx, ecx
mov dword [eax + 8], ecx
push dword [ebp - 0x220]
call esi
jmp 0x10060ed7
lea eax, [ebp - 0x214]
push eax
push 0x10
push 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call edi
test eax, eax
jne 0x10060ec8
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x10060ec0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x218], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x218]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x214]
push eax
push 0xd
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call edi
test eax, eax
jne 0x10060f34
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x10060f2c
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x218], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x218]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x214]
push eax
push 0x27
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call edi
test eax, eax
jne 0x10060fa0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x10060f98
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x218], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x218]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1006104e
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x100c6cf4
mov dword [ebp - 0x220], 0
call eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1006104e
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
mov ecx, dword [0x101013c8]
add esp, 0x14
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x10061044
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push 0x2e
push 0
call edi
test eax, eax
jne 0x1006103a
lea ecx, [ebp - 0x21c]
call fcn.1005feb0
mov ecx, eax
mov eax, dword [0x101013c8]
mov dword [eax + 0x14], ecx
push dword [ebp - 0x220]
call esi
jmp 0x100610ba
mov eax, dword [0x101013c8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
push dword [ebp - 0x220]
call esi
jmp 0x100610ba
lea eax, [ebp - 0x214]
push eax
push 0x2e
push 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0
call edi
test eax, eax
jne 0x100610ab
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x100610a3
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x21c], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x214]
push eax
push 0x15
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0
call edi
test eax, eax
jne 0x10061117
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x1006110f
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x21c], eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 0x18], eax
lea eax, [ebp - 0x214]
push eax
push 0xe
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], 0
call edi
test eax, eax
jne 0x10061191
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1006116f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x214]
call esi
mov ecx, dword [0x101013c8]
pop edi
pop esi
mov dword [ecx + 0x1c], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009967c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101013c8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax + 0x1c], ebx
xor ecx, ebp
pop ebx
call fcn.1009967c
mov esp, ebp
pop ebp
ret