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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5743b8
mov eax, dword fs:[0]
push eax
mov eax, 0xd064
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x2c]
push str.load_title_film_name
mov ecx, ebx
mov dword [ebp - 0xd024], esi
mov dword [ebp - 0xd020], ebx
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edi, eax
test edi, edi
je 0x4227af
call fcn.004457a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422514
push 0x80004005
call fcn.0040d6e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xd028], eax
push 0xffffff
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CLabelUI::SetTextColor_unsigned_long_int_]
mov eax, dword [esi + 0x298]
add esi, 0x298
push eax
lea ecx, [edi + 0xa50]
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__]
push esi
lea ecx, [ebp - 0xd01c]
push 0x5a9770
push ecx
call fcn.0041bb90
add esp, 0xc
push eax
lea ecx, [ebp - 0xd028]
mov byte [ebp - 4], 1
call fcn.0040d610
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd01c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42259e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov ebx, dword [ebp - 0xd028]
mov eax, dword [edx + 0x2c]
push ebx
mov ecx, edi
call eax
lea ecx, [ebp - 0xd040]
push ecx
push 0
push 0
mov dword [ebp - 0xd040], 0
call dword [sym.imp.gdiplus.dll_GdipCreateStringFormat]
mov dword [ebp - 0xd03c], eax
mov edx, dword [ebp - 0xd040]
push 1
push edx
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatTrimming]
test eax, eax
je 0x4225e8
mov dword [ebp - 0xd03c], eax
fld dword [0x5b04b0]
push ecx
lea esi, [ebp - 0xd038]
fstp dword [esp]
call fcn.004231e0
lea eax, [ebp - 0xd030]
xor esi, esi
push eax
push esi
mov dword [ebp - 0xd030], esi
call dword [sym.imp.gdiplus.dll_GdipCreatePath]
mov dword [ebp - 0xd02c], eax
mov dword [ebp - 0xd048], esi
mov dword [ebp - 0xd044], esi
lea ecx, [ebp - 0xd048]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xd038]
push ecx
push edx
call dword [sym.imp.gdiplus.dll_GdipGetFamily]
cmp eax, esi
je 0x42264d
mov dword [ebp - 0xd044], eax
mov dword [ebp - 0xd034], eax
mov ecx, dword [ebp - 0xd038]
lea eax, [ebp - 0xd01c]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipGetFontSize]
cmp eax, esi
je 0x42266b
mov dword [ebp - 0xd034], eax
mov eax, dword [ebp - 0xd038]
fld dword [ebp - 0xd01c]
lea edx, [ebp - 0xd04c]
fstp dword [ebp - 0xd050]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipGetFontStyle]
cmp eax, esi
je 0x422695
mov dword [ebp - 0xd034], eax
fldz
mov ecx, dword [ebp - 0xd040]
mov eax, dword [ebp - 0xd04c]
fst dword [ebp - 0xd070]
push ecx
fst dword [ebp - 0xd06c]
fst dword [ebp - 0xd068]
lea edx, [ebp - 0xd070]
push edx
fstp dword [ebp - 0xd064]
fld dword [ebp - 0xd050]
mov edx, dword [ebp - 0xd030]
push ecx
fstp dword [esp]
mov ecx, dword [ebp - 0xd048]
push eax
push ecx
push 0xffffffffffffffff
push ebx
push edx
call dword [sym.imp.gdiplus.dll_GdipAddPathString]
cmp eax, esi
je 0x4226ef
mov dword [ebp - 0xd02c], eax
fldz
mov ecx, dword [ebp - 0xd030]
push esi
fst dword [ebp - 0xd054]
push esi
fst dword [ebp - 0xd058]
lea eax, [ebp - 0xd060]
fst dword [ebp - 0xd05c]
push eax
fstp dword [ebp - 0xd060]
push ecx
call dword [sym.imp.gdiplus.dll_GdipGetPathWorldBounds]
cmp eax, esi
je 0x422729
mov dword [ebp - 0xd02c], eax
fld dword [ebp - 0xd058]
call fcn.0054bcc0
mov edx, dword [edi]
mov ecx, edi
cmp eax, 0x181
jle 0x422746
push 0x181
jmp 0x422747
push eax
mov eax, dword [edx + 0x5c]
call eax
mov ecx, dword [ebp - 0xd048]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteFontFamily]
mov edx, dword [ebp - 0xd030]
push edx
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
mov eax, dword [ebp - 0xd038]
push eax
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov ecx, dword [ebp - 0xd040]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4227a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0xd020]
mov esi, dword [ebp - 0xd024]
mov edi, dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push str.load_notice_film_name
mov ecx, ebx
call edi
test eax, eax
je 0x4227d2
mov ecx, dword [esi + 0x298]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
push str.loaded_notice_text
mov ecx, ebx
call edi
mov dword [ebp - 0xd020], eax
test eax, eax
je 0x422825
lea ebx, [esi + 0x274]
mov edi, 0x5e9800
call fcn.00420e50
mov ecx, dword [ebp - 0xd020]
mov edx, dword [ecx]
test eax, eax
mov eax, dword [edx + 0xcc]
je 0x422817
push 0
call eax
mov dword [esi + 0x31c], 0
jmp 0x422825
push 1
call eax
mov dword [esi + 0x31c], 1
mov ecx, dword [esi + 0x2a0]
cmp dword [ecx - 0xc], 0
je 0x422ae5
push 0x3ff
lea edx, [ebp - 0x40f]
push 0
push edx
mov byte [ebp - 0x410], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [esi + 0x2a0]
push ecx
sub esi, 0x10
mov dword [ebp - 0xd04c], esp
mov edi, esp
push esi
call fcn.0040d710
add eax, 0x10
add esp, 4
lea esi, [ebp - 0xd01c]
mov dword [edi], eax
call fcn.004045e0
add esp, 4
lea esi, [ebp - 0xd018]
mov dword [ebp - 4], 6
call fcn.00403050
mov ecx, dword [ebp - 0xd024]
mov esi, dword [ecx + 0x2a0]
mov dword [ebp - 0xd018], 0x544547
test esi, esi
jne 0x4228c3
xor eax, eax
jmp 0x4228ec
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4228d6
xor eax, eax
jmp 0x4228ec
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c9b0
lea edx, [ebp - 0xcc18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4228f4
mov eax, dword [ebp - 0xd01c]
mov edi, eax
test eax, eax
jne 0x42290e
xor ebx, ebx
jmp 0x422939
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422921
xor ebx, ebx
jmp 0x422939
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c9b0
mov ebx, eax
push 0x5a56b0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422950
xor edi, edi
jmp 0x42296c
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push 0x5a56b0
push eax
call fcn.0040c9b0
mov edi, eax
push str.1905Cache1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422983
xor eax, eax
jmp 0x42299d
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push str.1905Cache1
push eax
call fcn.0040c9b0
push ebx
push edi
push eax
lea edx, [ebp - 0x410]
push edx
push str._s_s_s_s
lea eax, [ebp - 0x7c18]
push 0x2800
push eax
call fcn.005468fa
add esp, 0x1c
lea ecx, [ebp - 0x7c18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x422aaa
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push 0x5a9954
lea ecx, [ebp - 0xd028]
mov dword [ebp - 0x2c18], eax
mov dword [ebp - 0x2c14], 0x402
call fcn.0040cf20
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xd028]
mov edi, eax
test eax, eax
je 0x422a39
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x422a23
xor eax, eax
jmp 0x422a39
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c9b0
lea edx, [ebp - 0x7c18]
push edx
push eax
mov eax, dword [ebp - 0xd024]
mov ecx, dword [eax + 0x274]
push ecx
push 0x27
lea edx, [ebp - 0x2c10]
push str.type_dvideotype_dwndname_s_saveFile_s
push edx
call fcn.00546876
add esp, 0x18
mov eax, 0xcc08
lea esi, [ebp - 0xd018]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xd028]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422abc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x422abc
lea ecx, [ebp - 0x7c18]
push ecx
mov ecx, dword [ebp - 0xd024]
call fcn.00423030
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd01c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422ae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0xd080]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret