Function at 0x100c78d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
mov ebp, dword [esp + 0x124]
xor ebx, ebx
push str.prefix
push ebp
mov dword [esp + 0x10], ebx
call fcn.100c51b0
add esp, 8
test eax, eax
je 0x100c792a
push 0x1023d110
push eax
call sym.project.dll_FcStrCmp
add esp, 8
test eax, eax
jne 0x100c792a
call fcn.100b0850
mov ebx, eax
mov dword [esp + 8], ebx
test ebx, ebx
je 0x100c7d1a
mov ecx, dword [ebp]
push esi
add ecx, 0xc
push edi
push ecx
call fcn.100c2b50
mov esi, eax
add esp, 4
test esi, esi
jne 0x100c7958
push str.out_of_memory
push 2
push ebp
call fcn.100c5380
add esp, 0xc
mov esi, ebx
jmp 0x100c7d0b
mov al, byte [esi]
test al, al
jne 0x100c797b
push str.empty_cache_directory_name_ignored
push 1
push ebp
call fcn.100c5380
push esi
call sym.project.dll_FcStrFree
add esp, 0x10
mov esi, ebx
jmp 0x100c7d0b
test ebx, ebx
je 0x100c7a2c
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100c7988
mov ebx, esi
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100c7996
sub ebx, ecx
lea eax, [ebx + edi]
mov dword [esp + 0x14], eax
add eax, 2
push eax
push dword [esp + 0x14]
call fcn.101f5511
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100c79dc
push str.out_of_memory
push 2
push ebp
call fcn.100c5380
push dword [esp + 0x1c]
call sym.project.dll_FcStrFree
add esp, 0x10
jmp 0x100c7d0f
mov byte [eax + edi], 0x5c
inc edi
push ebx
add eax, edi
push esi
push eax
call fcn.101ecd90
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push esi
mov byte [eax + edi + 1], 0
call sym.project.dll_FcStrFree
add esp, 0x10
mov esi, edi
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c7a08
sub ecx, edx
jne 0x100c7cbc
push str.empty_cache_directory_name_ignored
push 1
push ebp
call fcn.100c5380
add esp, 0xc
jmp 0x100c7cfc
cmp al, 0x2f
jne 0x100c7adf
cmp byte [0x102e64e8], 0
je 0x100c7adf
mov edi, 0x102e64e8
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x100c7a50
mov ebx, esi
sub edi, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100c7a60
sub ebx, ecx
lea eax, [ebx + edi]
mov dword [esp + 0x14], eax
add eax, 2
push eax
call fcn.101fe13d
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100c7a99
push str.out_of_memory
push 2
push ebp
call fcn.100c5380
add esp, 0xc
jmp 0x100c7d0f
mov ecx, 0x102e64e8
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100c7aa2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, eax
push esi
mov byte [edi + eax], 0x5c
lea eax, [ebx + 1]
add eax, edi
push eax
call fcn.101ecd90
mov eax, dword [esp + 0x20]
push esi
mov byte [eax + ebx + 1], 0
call sym.project.dll_FcStrFree
add esp, 0x10
mov esi, ebx
jmp 0x100c7a03
mov ecx, str.WINDOWSTEMPDIR_FONTCONFIG_CACHE
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c7b06
test dl, dl
je 0x100c7b02
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c7b06
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c7ae6
xor eax, eax
jmp 0x100c7b0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100c7bcb
push esi
call sym.project.dll_FcStrFree
push 0x3e8
call fcn.101fe13d
mov esi, eax
add esp, 8
test esi, esi
je 0x100c7c81
push esi
push 0x320
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x100c7bb6
cmp eax, 0x320
jg 0x100c7bb6
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c7b50
sub ecx, edx
cmp byte [ecx + esi - 1], 0x5c
je 0x100c7b76
lea edi, [esi - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100c7b63
mov ax, word [0x1022fab0]
mov word [edi], ax
lea ecx, [esi - 1]
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100c7b80
mov eax, dword [str.fontconfigcache]
mov dword [ecx], eax
mov eax, dword [0x1023d630]
mov dword [ecx + 4], eax
mov eax, dword [0x1023d634]
mov dword [ecx + 8], eax
mov eax, dword [0x1023d638]
mov dword [ecx + 0xc], eax
mov al, byte [0x1023d63c]
mov byte [ecx + 0x10], al
jmp 0x100c7a03
push str.GetTempPath_failed
push 2
push ebp
call fcn.100c5380
add esp, 0xc
jmp 0x100c7d0f
mov ecx, str.LOCAL_APPDATA_FONTCONFIG_CACHE
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c7bf2
test dl, dl
je 0x100c7bee
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c7bf2
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c7bd2
xor eax, eax
jmp 0x100c7bf7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100c7a03
mov eax, dword [0x102e6d24]
test eax, eax
je 0x100c7caa
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x1c
push 0
call eax
test eax, eax
js 0x100c7caa
lea ecx, [esp + 0x1c]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c7c30
sub ecx, edx
mov eax, 0x103
sub eax, ecx
push eax
lea eax, [esp + 0x20]
push str._fontconfigcache
push eax
call fcn.10202870
lea ecx, [esp + 0x28]
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c7c60
sub ecx, edx
push esi
lea edi, [ecx + 1]
call sym.project.dll_FcStrFree
push edi
call fcn.101fe13d
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c7c96
push str.out_of_memory
push 2
push ebp
call fcn.100c5380
add esp, 0xc
jmp 0x100c7d18
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.101fe450
add esp, 0xc
jmp 0x100c7a03
push str.SHGetFolderPathA_failed
push 2
push ebp
call fcn.100c5380
add esp, 0xc
jmp 0x100c7d0f
cmp dword [ebp + 0xb28], 0
jne 0x100c7cfc
push esi
call fcn.100c48f0
add esp, 4
test eax, eax
je 0x100c7cdb
call sym.project.dll_FcConfigHome
test eax, eax
je 0x100c7cfc
push esi
push dword [ebp + 0x10]
call fcn.100ac2f0
add esp, 8
test eax, eax
jne 0x100c7cfc
push esi
push str.out_of_memory__cannot_add_cache_directory__s
push 2
push ebp
call fcn.100c5380
add esp, 0x10
mov eax, dword [ebp]
add eax, 0xc
push eax
call fcn.100c2b10
add esp, 4
test esi, esi
je 0x100c7d18
push esi
call sym.project.dll_FcStrFree
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
pop ebp
pop ebx
xor ecx, esp
call fcn.101eafcd
add esp, 0x118
ret