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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e03da
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x57b750]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0049baac
lea eax, [esp + 0xe4]
call fcn.004740dc
lea eax, [esp + 0x24]
call fcn.004740dc
lea eax, [esp + 0x84]
call fcn.004740dc
push 0x525350
lea ecx, [esp + 0x18]
call fcn.004024df
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 0x4804a8
sub eax, edx
sar eax, 1
je 0x480525
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x14]
call fcn.004024df
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.FONTSSEGOEUI.TTF
mov byte [esp + 0x368], 1
call fcn.004024df
lea ecx, [esp + 0x14]
call fcn.004067db
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480503
call fcn.004729c0
cmp eax, 5
jbe 0x480511
push str.SEGOE_UI
lea ecx, [esp + 0x18]
call fcn.004026bd
mov byte [esp + 0x360], 0
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
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 0x48053c
lea eax, [esp + 0xe4]
lea ebx, [esi + 0x60]
push eax
mov ecx, ebx
call fcn.004022ba
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 0x48056a
lea eax, [esp + 0x24]
lea ecx, [esi + 0x68]
push eax
call fcn.004022ba
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 0x48059d
lea eax, [esp + 0x84]
push eax
lea ecx, [esi + 0x158]
call fcn.004022ba
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.00498dc8
mov edi, eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov ebx, 0x552be4
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.004024df
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00480fdb
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
add ecx, 0xfffffff0
mov dword [esi + 0x110], eax
call fcn.004027b0
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.004024df
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00480fdb
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
add ecx, 0xfffffff0
mov dword [esi + 0x114], eax
call fcn.004027b0
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.004027b0
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.004b96ff
mov esp, ebp
pop ebp
ret