Function at 0x494ba2
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51058f
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5ff740]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x5ff740]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004e56c3
lea eax, [esp + 0xe4]
call fcn.00484281
lea eax, [esp + 0x24]
call fcn.00484281
lea eax, [esp + 0x84]
call fcn.00484281
push 0x5b1400
lea ecx, [esp + 0x18]
call fcn.0040253b
and dword [esp + 0x360], 0
push 0x104
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x144]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x494c3d
sub eax, edx
sar eax, 1
je 0x494cba
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x14]
call fcn.0040253b
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.FONTSSEGOEUI.TTF
mov byte [esp + 0x368], 1
call fcn.0040253b
lea ecx, [esp + 0x14]
call fcn.00406dee
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x494c98
call fcn.0047876d
cmp eax, 5
jbe 0x494ca6
push str.SEGOE_UI
lea ecx, [esp + 0x18]
call fcn.00402719
mov byte [esp + 0x360], 0
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff5
pop edi
lea edx, [esp + 0x100]
mov dword [esp + 0xe4], edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x494cd1
lea eax, [esp + 0xe4]
lea ebx, [esi + 0x60]
push eax
mov ecx, ebx
call fcn.00402335
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], edi
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
test dx, dx
jne 0x494cff
lea eax, [esp + 0x24]
lea ecx, [esi + 0x68]
push eax
call fcn.00402335
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xa0]
mov dword [esp + 0x84], 0xfffffff2
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x494d32
lea eax, [esp + 0x84]
push eax
lea ecx, [esi + 0x158]
call fcn.00402335
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call edi
push 5
mov dword [esi + 0x58], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004bdb08
mov edi, eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov ebx, 0x5c8fd4
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.0040253b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00495770
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
add ecx, 0xfffffff0
mov dword [esi + 0x110], eax
call fcn.0040285b
mov edx, dword [edi]
lea eax, [esi + 0x68]
push eax
mov ecx, edi
call dword [edx + 0x28]
push ebx
lea ecx, [esp + 0x14]
call fcn.0040253b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00495770
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
add ecx, 0xfffffff0
mov dword [esi + 0x114], eax
call fcn.0040285b
push dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
push dword [edi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.004de422
mov esp, ebp
pop ebp
ret