Function at 0x10061400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10061471
push 0x1010158c
call dword [0x101015e0]
mov ecx, ebx
call fcn.10061380
mov ebx, eax
test ebx, ebx
je 0x10061475
mov eax, dword [0x101013ac]
test eax, eax
jne 0x1006145c
push eax
push eax
push eax
push eax
call sym.glib_2.dll_g_hash_table_new_full
add esp, 0x10
mov dword [0x101013ac], eax
jmp 0x10061475
push ebx
push eax
call sym.glib_2.dll_g_hash_table_lookup
mov esi, eax
add esp, 8
test esi, esi
je 0x10061475
jmp 0x100616c6
mov ebx, dword [esp + 0x14]
push 0x1c
call sym.glib_2.dll_g_slice_alloc
mov edi, eax
add esp, 4
or dword [edi + 0x10], 3
test byte [edi + 0x10], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 4
mov dword [edi + 0x14], 1
mov dword [edi + 0x18], 0
je 0x100614da
xor edx, edx
mov ecx, edi
call fcn.10004a40
test byte [edi + 0x10], 1
je 0x100614da
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
imul eax, ecx
add eax, dword [edi]
push ecx
push 0
push eax
call fcn.100a0c22
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x23
xor esi, esi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10061527
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1006151d
push esi
push esi
push esi
lea eax, [esp + 0x24]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov esi, eax
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x10], esi
test esi, esi
je 0x1006153f
push 1
lea eax, [esp + 0x14]
push eax
push edi
call sym.glib_2.dll_AlphaBlend_3
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x2e
xor esi, esi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1006158c
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10061582
push esi
push esi
push esi
lea eax, [esp + 0x24]
push 0xffffffffffffffff
push eax
call sym.glib_2.dll_g_utf16_to_utf8
add esp, 0x14
mov esi, eax
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x10], esi
test esi, esi
je 0x100615a4
push 1
lea eax, [esp + 0x14]
push eax
push edi
call sym.glib_2.dll_AlphaBlend_3
add esp, 0xc
mov ecx, dword [esp + 0x14]
call fcn.10061380
test eax, eax
jne 0x100615b5
xor esi, esi
jmp 0x100615e6
push eax
call sym.glib_2.dll_g_win32_get_package_installation_directory_of_module
add esp, 4
mov dword [esp + 0x10], eax
push 0
push str.share
push eax
call sym.glib_2.dll_g_build_filename
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x100615e6
push eax
call dword [0x100ffd84]
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x100615fe
push 1
lea eax, [esp + 0x14]
push eax
push edi
call sym.glib_2.dll_AlphaBlend_3
add esp, 0xc
mov eax, dword [0x101016fc]
test eax, eax
je 0x10061648
push eax
call sym.glib_2.dll_g_win32_get_package_installation_directory_of_module
add esp, 4
mov esi, eax
push 0
push str.share
push esi
call sym.glib_2.dll_g_build_filename
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x1006163a
push 1
lea eax, [esp + 0x14]
push eax
push edi
call sym.glib_2.dll_AlphaBlend_3
add esp, 0xc
test esi, esi
je 0x10061648
push esi
call dword [0x100ffd84]
add esp, 4
push 0
call sym.glib_2.dll_g_win32_get_package_installation_directory_of_module
add esp, 4
mov esi, eax
push 0
push str.share
push esi
call sym.glib_2.dll_g_build_filename
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x1006167c
push 1
lea eax, [esp + 0x14]
push eax
push edi
call sym.glib_2.dll_AlphaBlend_3
add esp, 0xc
test esi, esi
je 0x1006168a
push esi
call dword [0x100ffd84]
add esp, 4
lea eax, [edi + 0x14]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, 2
test eax, eax
cmovne esi, ecx
mov edx, esi
mov ecx, edi
call fcn.10004380
cmp dword [esp + 0x14], 0
mov esi, eax
je 0x100616d1
test ebx, ebx
je 0x100616c6
push esi
push ebx
push dword [0x101013ac]
call sym.glib_2.dll_g_hash_table_insert
add esp, 0xc
push 0x1010158c
call dword [0x101015e8]
mov ecx, dword [esp + 0x22c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1009967c
mov esp, ebp
pop ebp
ret