Function at 0x10023380
Capabilities:
Get common file path

Disassembly:
sub esp, 0xbc8
mov eax, dword [0x1005c0e4]
xor eax, esp
mov dword [esp + 0xbc4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xbd8]
lea eax, [esp + 0x14]
push esi
mov esi, dword [esp + 0xbe0]
push edi
mov edi, dword [esp + 0xbdc]
push 0x3e8
push 0
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
call fcn.10025170
xor eax, eax
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x10023489
push 0x10051490
push esi
call sym.fontconfig.dll_FcStrCmp
add esp, 8
test eax, eax
jne 0x1002341b
call fcn.10008840
mov dword [esp + 0x10], eax
test eax, eax
je 0x10023414
call fcn.10008770
mov ebx, eax
test ebx, ebx
jne 0x10023489
mov eax, dword [esp + 0x10]
push eax
call sym.fontconfig.dll_FcStrFree
add esp, 4
xor eax, eax
jmp 0x100238e4
push str.default
push esi
call sym.fontconfig.dll_FcStrCmp
add esp, 8
test eax, eax
je 0x10023489
push 0x1005149c
push esi
call sym.fontconfig.dll_FcStrCmp
add esp, 8
test eax, eax
je 0x10023489
push str.relative
push esi
call sym.fontconfig.dll_FcStrCmp
add esp, 8
test eax, eax
jne 0x10023489
push dword [edi + 0xc]
call fcn.1001d470
mov esi, eax
add esp, 4
test esi, esi
je 0x10023414
push esi
call sym.fontconfig.dll_FcStrDirname
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
test edx, edx
jne 0x10023485
push esi
call fcn.100274d2
add esp, 4
xor eax, eax
jmp 0x100238e4
mov esi, dword [esp + 0x18]
mov ecx, str.CUSTOMFONTDIR
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100234b0
test dl, dl
je 0x100234ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100234b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10023490
xor eax, eax
jmp 0x100234b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002356a
push 0x3d4
lea eax, [esp + 0x408]
push eax
lea ebp, [esp + 0x24]
push 0
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100234f5
push str.GetModuleFileName_failed
push 2
push edi
call fcn.1001ea60
add esp, 0xc
xor eax, eax
jmp 0x100238e4
lea eax, [esp + 0x404]
push 0x5c
push eax
call fcn.100253fb
add esp, 8
test eax, eax
je 0x10023510
xor ecx, ecx
mov word [eax], cx
push 0
push 0
push 0x3e8
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x418]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10023414
lea ecx, [esp + 0x1c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10023542
mov eax, dword [str._fonts]
mov dword [ecx], eax
mov ax, word [0x10043924]
mov word [ecx + 4], ax
mov al, byte [0x10043926]
mov byte [ecx + 6], al
jmp 0x10023845
mov ecx, str.APPSHAREFONTDIR
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10023591
test dl, dl
je 0x1002358d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10023591
add eax, 2
add ecx, 2
test dl, dl
jne 0x10023571
xor eax, eax
jmp 0x10023596
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002363e
push 0x3d4
lea eax, [esp + 0x408]
push eax
lea ebp, [esp + 0x24]
push 0
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100234de
lea eax, [esp + 0x404]
push 0x5c
push eax
call fcn.100253fb
add esp, 8
test eax, eax
je 0x100235de
xor ecx, ecx
mov word [eax], cx
push 0
push 0
push 0x3e8
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x418]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10023414
lea ecx, [esp + 0x1c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10023610
mov eax, dword [str..._share_fonts]
mov dword [ecx], eax
mov eax, dword [0x100514ec]
mov dword [ecx + 4], eax
mov eax, dword [0x100514f0]
mov dword [ecx + 8], eax
mov eax, dword [0x100514f4]
mov dword [ecx + 0xc], eax
jmp 0x10023845
mov ecx, str.WINDOWSUSERFONTDIR
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10023665
test dl, dl
je 0x10023661
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10023665
add eax, 2
add ecx, 2
test dl, dl
jne 0x10023645
xor eax, eax
jmp 0x1002366a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100236fa
lea eax, [esp + 0x404]
push eax
push 0
push 0
push 0x1c
lea ebp, [esp + 0x2c]
push 0
mov dword [esp + 0x28], ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x100236ab
push str.SHGetFolderPath_failed
push 2
push edi
call fcn.1001ea60
add esp, 0xc
xor eax, eax
jmp 0x100238e4
push 0
push 0
push 0x104
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x418]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10023414
lea edi, [esp + 0x1c]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100236e0
mov ecx, 6
mov esi, str.MicrosoftWindowsFonts
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x10023845
mov ecx, str.WINDOWSFONTDIR
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10023721
test dl, dl
je 0x1002371d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10023721
add eax, 2
add ecx, 2
test dl, dl
jne 0x10023701
xor eax, eax
jmp 0x10023726
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100237f4
push 0x3d4
lea eax, [esp + 0x408]
lea ebp, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x100237dd
cmp eax, 0x3d4
ja 0x100237dd
push 0
push 0
push 0x3e8
mov ecx, ebp
push ecx
push eax
lea eax, [esp + 0x418]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10023414
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023790
sub ecx, edx
cmp byte [esp + ecx + 0x1b], 0x5c
je 0x100237b8
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100237a5
mov ax, word [0x1004390c]
mov word [edi], ax
lea ecx, [esp + 0x1c]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100237c0
mov eax, dword [str.fonts]
mov dword [ecx], eax
mov ax, word [0x10051578]
mov word [ecx + 4], ax
jmp 0x10023845
push str.GetSystemWindowsDirectory_failed
push 2
push edi
call fcn.1001ea60
add esp, 0xc
xor eax, eax
jmp 0x100238e4
test esi, esi
jne 0x10023845
push ebp
call fcn.1001d040
add esp, 4
test eax, eax
jne 0x10023845
cmp byte [ebp], 0x7e
je 0x10023845
mov eax, dword [edi]
xor ecx, ecx
mov edx, dword [eax + 4]
mov eax, 0x10050f58
cmp dword [eax], edx
je 0x1002382a
add eax, 0x14
inc ecx
cmp eax, str.warning
jl 0x10023817
xor eax, eax
jmp 0x10023834
lea eax, [ecx + ecx*4]
lea eax, [eax*4 + 0x10050f48]
push eax
push str.Use_of_ambiguous_path_in___s__element._please_add_prefix_cwd__if_current_behavior_is_desired.
push 1
push edi
call fcn.1001ea60
add esp, 0x10
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10023867
push 0
push ebp
push esi
call fcn.1001c0e0
mov ebp, eax
push esi
mov dword [esp + 0x20], ebp
call sym.fontconfig.dll_FcStrFree
add esp, 0x10
jmp 0x10023876
push ebp
call fcn.10035e05
add esp, 4
mov dword [esp + 0x10], eax
mov ebp, eax
test ebx, ebx
jne 0x10023883
call sym.fontconfig.dll_FcStrSetCreate
mov ebx, eax
jmp 0x100238be
xor edi, edi
cmp dword [ebx + 4], edi
jle 0x100238be
mov ebp, dword [esp + 0x14]
nop
mov eax, dword [ebx + 0xc]
push 0
push ebp
push dword [eax + edi*4]
call fcn.1001c0e0
mov ecx, dword [ebx + 0xc]
mov esi, eax
push dword [ecx + edi*4]
call sym.fontconfig.dll_FcStrFree
mov ecx, dword [ebx + 0xc]
add esp, 0x10
mov dword [ecx + edi*4], esi
inc edi
cmp edi, dword [ebx + 4]
jl 0x10023890
mov ebp, dword [esp + 0x10]
push 0
push ebp
push ebx
call fcn.1001db60
add esp, 0xc
test eax, eax
jne 0x100238d9
push ebx
call sym.fontconfig.dll_FcStrSetDestroy
add esp, 4
xor ebx, ebx
push ebp
call sym.fontconfig.dll_FcStrFree
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xbd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10023cd9
add esp, 0xbc8
ret