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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dd2e3
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x56f710]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x56f710]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004b923c
lea eax, [esp + 0xe4]
call fcn.0045da56
lea eax, [esp + 0x24]
call fcn.0045da56
lea eax, [esp + 0x84]
call fcn.0045da56
push 0x52f250
lea ecx, [esp + 0x18]
call fcn.0040254f
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 0x46c88b
sub eax, edx
sar eax, 1
je 0x46c908
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x14]
call fcn.0040254f
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.FONTSSEGOEUI.TTF
mov byte [esp + 0x368], 1
call fcn.0040254f
lea ecx, [esp + 0x14]
call fcn.00406dfa
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c8e6
call fcn.0045c16c
cmp eax, 5
jbe 0x46c8f4
push str.SEGOE_UI
lea ecx, [esp + 0x18]
call fcn.0040272d
mov byte [esp + 0x360], 0
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00402845
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 0x46c91f
lea eax, [esp + 0xe4]
lea ebx, [esi + 0x60]
push eax
mov ecx, ebx
call fcn.0040232a
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 0x46c94d
lea eax, [esp + 0x24]
lea ecx, [esi + 0x68]
push eax
call fcn.0040232a
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 0x46c980
lea eax, [esp + 0x84]
push eax
lea ecx, [esi + 0x158]
call fcn.0040232a
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.00491572
mov edi, eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov ebx, 0x544e94
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.0040254f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0046d3be
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
add ecx, 0xfffffff0
mov dword [esi + 0x110], eax
call fcn.00402845
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.0040254f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0046d3be
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
add ecx, 0xfffffff0
mov dword [esi + 0x114], eax
call fcn.00402845
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.00402845
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.004b228f
mov esp, ebp
pop ebp
ret