Function at 0x423f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5249d8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4074
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x404c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4060], eax
mov dword [ebp - 0x405c], ecx
xor ebx, ebx
mov dword [ebp - 0x4050], ebx
lea edx, [ebp - 0x4044]
push edx
call fcn.0041bd70
mov dword [ebp - 4], ebx
mov byte [ebp - 0x4045], bl
mov byte [ebp - 4], 1
mov dword [esi], ebx
call fcn.004290d0
lea edx, [ebx + 1]
mov ecx, eax
call fcn.0047f9f0
mov esi, eax
mov dword [ebp - 0x4054], esi
cmp esi, ebx
je 0x4243dd
push 0x800
push ebx
lea eax, [ebp - 0x101c]
push eax
call fcn.004fd670
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x4064], edi
cmp edi, 0x18
jge 0x424097
push edi
push str.DEFAULT_FONT__d_
lea edx, [ebp - 0x101c]
call fcn.00404380
add esp, 8
lea ebx, [ebp - 0x4050]
lea edx, [ebp - 0x101c]
mov ecx, esi
call fcn.00487c40
test eax, eax
jne 0x424097
push eax
call fcn.004290d0
push eax
mov ecx, dword [ebp - 0x4050]
mov edx, esi
call fcn.004827c0
test al, al
jne 0x4240a4
mov eax, dword [ebp - 0x4050]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
add edi, 1
jmp 0x424036
cmp byte [ebp - 0x4045], 0
je 0x4243e4
push 0x800
push 0
lea ecx, [ebp - 0x181c]
push ecx
call fcn.004fd670
add esp, 0xc
push 0x400
lea edx, [ebp - 0x181c]
push edx
mov ebx, str.facename
lea edx, [ebp - 0x101c]
mov ecx, esi
call fcn.00487fa0
test eax, eax
jne 0x424101
lea ecx, [ebp - 0x181c]
mov edx, dword [ebp - 0x404c]
jmp 0x4240f0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4240f0
lea eax, [ebp - 0x404c]
push eax
mov edx, str.fontsize
lea ecx, [ebp - 0x101c]
mov edi, esi
call fcn.00488010
test eax, eax
jne 0x42412c
mov ecx, dword [ebp - 0x404c]
mov edx, dword [ebp - 0x4060]
mov dword [edx], ecx
mov dword [ebp - 0x404c], 0
push 0x800
push 0
lea eax, [ebp - 0x201c]
push eax
call fcn.004fd670
add esp, 0xc
push str.INSTALL
lea ecx, [ebp - 0x101c]
push ecx
push 0x5352d4
lea edx, [ebp - 0x201c]
call fcn.00404380
add esp, 0xc
lea edx, [ebp - 0x404c]
push edx
mov edx, str.total
lea ecx, [ebp - 0x201c]
call fcn.00488010
test eax, eax
jne 0x4243dd
xor edi, edi
mov dword [ebp - 0x4058], edi
cmp edi, dword [ebp - 0x404c]
jae 0x4243dd
push 0x800
push 0
lea eax, [ebp - 0x181c]
push eax
call fcn.004fd670
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x201c]
push ecx
call fcn.004fd670
add esp, 0xc
push edi
push str.FONT
push str.INSTALL
lea edx, [ebp - 0x101c]
push edx
push str._s__s__s_d
lea edx, [ebp - 0x201c]
call fcn.00404380
add esp, 0x14
push 0
push 0x400
lea ebx, [ebp - 0x181c]
lea edx, [ebp - 0x201c]
mov ecx, esi
call fcn.00487e80
test eax, eax
jne 0x4243cf
push 0x800
push eax
lea eax, [ebp - 0x281c]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x281c]
push ecx
mov edx, ebx
push edx
call fcn.004290d0
mov ecx, eax
call fcn.00480760
test eax, eax
je 0x424263
push 0x3ff
mov eax, ebx
push eax
push 0x400
lea ecx, [ebp - 0x281c]
push ecx
call fcn.004fa71b
add esp, 0x10
push 0x3ff
lea edx, [ebp - 0x281c]
push edx
push 0x400
lea eax, [ebp - 0x381c]
push eax
call fcn.004fa71b
push 0x5c
lea ecx, [ebp - 0x381c]
push ecx
call fcn.004fa6eb
mov edi, eax
push 0x800
push 0
lea edx, [ebp - 0x301c]
push edx
call fcn.004fd670
add esp, 0x24
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.004fd670
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x301c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4242ed
push edi
lea edx, [ebp - 0x301c]
push edx
push str._sFonts_s
lea edx, [ebp - 0x81c]
call fcn.00404380
add esp, 0xc
push 1
push 0
push 0
xor bl, bl
lea edi, [ebp - 0x81c]
lea eax, [ebp - 0x281c]
call fcn.0049bd40
add esp, 0xc
mov ecx, 0x649e50
test eax, eax
jne 0x4243bb
mov eax, edi
push eax
push str.Copy_Font_File_Success___s_
call fcn.004918f0
add esp, 8
mov edx, edi
lea eax, [ebp - 0x4080]
call fcn.00419e00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4080]
push ecx
mov esi, dword [ebp - 0x405c]
call fcn.004165c0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4080]
call fcn.00418f90
mov edx, edi
push edx
call dword [sym.imp.GDI32.dll_AddFontResourceW]
test eax, eax
je 0x42438e
mov eax, edi
push eax
push str.Add_Font_Success___s_
mov ecx, 0x649e50
call fcn.004918f0
mov esi, dword [ebp - 0x4054]
add esp, 8
mov edi, dword [ebp - 0x4058]
add edi, 1
jmp 0x42418c
lea ecx, [ebp - 0x81c]
push ecx
push str.Add_Font_Fail_____s_
mov ecx, 0x649e50
call fcn.004918f0
mov esi, dword [ebp - 0x4054]
add esp, 8
mov edi, dword [ebp - 0x4058]
add edi, 1
jmp 0x42418c
lea edx, [ebp - 0x81c]
push edx
push str.Copy_Font_File_Fail_____s_
call fcn.004918f0
add esp, 8
mov edi, dword [ebp - 0x4058]
add edi, 1
jmp 0x42418c
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4044]
push eax
call fcn.0041be00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 4