Function at 0x10144010
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
mov eax, dword [0x1032e6c0]
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.101418f0
add esp, 8
test eax, eax
je 0x1014406a
push 0x102bde88
push eax
call sym.Easy.MessageHub.dll_FcStrCmp
add esp, 8
test eax, eax
jne 0x1014406a
call fcn.1012cf80
mov ebx, eax
mov dword [esp + 8], ebx
test ebx, ebx
je 0x1014445a
mov ecx, dword [ebp]
push esi
add ecx, 0xc
push edi
push ecx
call fcn.1013f290
mov esi, eax
add esp, 4
test esi, esi
jne 0x10144098
push str.out_of_memory
push 2
push ebp
call fcn.10141ac0
add esp, 0xc
mov esi, ebx
jmp 0x1014444b
mov al, byte [esi]
test al, al
jne 0x101440bb
push str.empty_cache_directory_name_ignored
push 1
push ebp
call fcn.10141ac0
push esi
call sym.Easy.MessageHub.dll_FcStrFree
add esp, 0x10
mov esi, ebx
jmp 0x1014444b
test ebx, ebx
je 0x1014416c
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x101440c8
mov ebx, esi
sub edi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x101440d6
sub ebx, ecx
lea eax, [ebx + edi]
mov dword [esp + 0x14], eax
add eax, 2
push eax
push dword [esp + 0x14]
call fcn.1026cfa9
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1014411c
push str.out_of_memory
push 2
push ebp
call fcn.10141ac0
push dword [esp + 0x1c]
call sym.Easy.MessageHub.dll_FcStrFree
add esp, 0x10
jmp 0x1014444f
mov byte [eax + edi], 0x5c
inc edi
push ebx
add eax, edi
push esi
push eax
call fcn.10266230
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push esi
mov byte [eax + edi + 1], 0
call sym.Easy.MessageHub.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 0x10144148
sub ecx, edx
jne 0x101443fc
push str.empty_cache_directory_name_ignored
push 1
push ebp
call fcn.10141ac0
add esp, 0xc
jmp 0x1014443c
cmp al, 0x2f
jne 0x1014421f
cmp byte [0x103312a8], 0
je 0x1014421f
mov edi, 0x103312a8
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10144190
mov ebx, esi
sub edi, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x101441a0
sub ebx, ecx
lea eax, [ebx + edi]
mov dword [esp + 0x14], eax
add eax, 2
push eax
call fcn.1026cf9e
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x101441d9
push str.out_of_memory
push 2
push ebp
call fcn.10141ac0
add esp, 0xc
jmp 0x1014444f
mov ecx, 0x103312a8
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x101441e2
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.10266230
mov eax, dword [esp + 0x20]
push esi
mov byte [eax + ebx + 1], 0
call sym.Easy.MessageHub.dll_FcStrFree
add esp, 0x10
mov esi, ebx
jmp 0x10144143
mov ecx, str.WINDOWSTEMPDIR_FONTCONFIG_CACHE
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10144246
test dl, dl
je 0x10144242
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10144246
add eax, 2
add ecx, 2
test dl, dl
jne 0x10144226
xor eax, eax
jmp 0x1014424b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1014430b
push esi
call sym.Easy.MessageHub.dll_FcStrFree
push 0x3e8
call fcn.1026cf9e
mov esi, eax
add esp, 8
test esi, esi
je 0x101443c1
push esi
push 0x320
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x101442f6
cmp eax, 0x320
jg 0x101442f6
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10144290
sub ecx, edx
cmp byte [ecx + esi - 1], 0x5c
je 0x101442b6
lea edi, [esi - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x101442a3
mov ax, word [0x102b0808]
mov word [edi], ax
lea ecx, [esi - 1]
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x101442c0
mov eax, dword [str.fontconfigcache]
mov dword [ecx], eax
mov eax, dword [0x102be3a8]
mov dword [ecx + 4], eax
mov eax, dword [0x102be3ac]
mov dword [ecx + 8], eax
mov eax, dword [0x102be3b0]
mov dword [ecx + 0xc], eax
mov al, byte [0x102be3b4]
mov byte [ecx + 0x10], al
jmp 0x10144143
push str.GetTempPath_failed
push 2
push ebp
call fcn.10141ac0
add esp, 0xc
jmp 0x1014444f
mov ecx, str.LOCAL_APPDATA_FONTCONFIG_CACHE
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10144332
test dl, dl
je 0x1014432e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10144332
add eax, 2
add ecx, 2
test dl, dl
jne 0x10144312
xor eax, eax
jmp 0x10144337
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10144143
mov eax, dword [0x10331ae4]
test eax, eax
je 0x101443ea
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x1c
push 0
call eax
test eax, eax
js 0x101443ea
lea ecx, [esp + 0x1c]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10144370
sub ecx, edx
mov eax, 0x103
sub eax, ecx
push eax
lea eax, [esp + 0x20]
push str._fontconfigcache
push eax
call fcn.1027a3b0
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 0x101443a0
sub ecx, edx
push esi
lea edi, [ecx + 1]
call sym.Easy.MessageHub.dll_FcStrFree
push edi
call fcn.1026cf9e
mov esi, eax
add esp, 8
test esi, esi
jne 0x101443d6
push str.out_of_memory
push 2
push ebp
call fcn.10141ac0
add esp, 0xc
jmp 0x10144458
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10270aa0
add esp, 0xc
jmp 0x10144143
push str.SHGetFolderPathA_failed
push 2
push ebp
call fcn.10141ac0
add esp, 0xc
jmp 0x1014444f
cmp dword [ebp + 0xb28], 0
jne 0x1014443c
push esi
call fcn.10141030
add esp, 4
test eax, eax
je 0x1014441b
call sym.Easy.MessageHub.dll_FcConfigHome
test eax, eax
je 0x1014443c
push esi
push dword [ebp + 0x10]
call fcn.10128a30
add esp, 8
test eax, eax
jne 0x1014443c
push esi
push str.out_of_memory__cannot_add_cache_directory__s
push 2
push ebp
call fcn.10141ac0
add esp, 0x10
mov eax, dword [ebp]
add eax, 0xc
push eax
call fcn.1013f250
add esp, 4
test esi, esi
je 0x10144458
push esi
call sym.Easy.MessageHub.dll_FcStrFree
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
pop ebp
pop ebx
xor ecx, esp
call fcn.1026465b
add esp, 0x118
ret