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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573ef3
mov eax, dword fs:[0]
push eax
mov eax, 0xd570
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd568], ecx
mov dword [ebp - 0xd56c], eax
je 0x42d8a4
inc dword [ecx + 0x138]
cmp dword [ecx + 0x138], 0x3c
jle 0x42d8c4
mov dword [ecx + 0x138], 0x3c
push 1
jmp 0x42d8bf
inc dword [ecx + 0x13c]
cmp dword [ecx + 0x13c], 0x3c
jle 0x42d8c4
mov dword [ecx + 0x13c], 0x3c
push 0
call fcn.0042d600
lea ecx, [ebp - 0x95c]
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_]
mov dword [ebp - 4], 0
mov ecx, dword [0x5e5028]
push 0
push ecx
lea edx, [ebp - 0xd578]
push edx
push 0
push ecx
mov eax, esp
mov dword [ebp - 0xd578], 0x5aba00
lea ecx, [ebp - 0x95c]
mov dword [ebp - 0xd570], esp
mov dword [eax], str.LookedSkinLookedFilmItem.xml
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__]
mov ebx, eax
test ebx, ebx
je 0x42e00c
push 0x3ff
lea eax, [ebp - 0x813]
push 0
push eax
mov byte [ebp - 0x814], 0
call fcn.00549e40
add esp, 0xc
lea edi, [ebp - 0x814]
mov esi, str.ListContainerElement
call fcn.00404fb0
mov ecx, edi
push ecx
lea ecx, [ebp - 0xd570]
call fcn.0040c9f0
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd570]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x42d9a1
mov edi, dword [ebp - 0xd56c]
mov edx, edi
mov ecx, ebx
call fcn.0042ef60
jmp 0x42d9c8
cmp eax, 1
jne 0x42d9c2
mov esi, dword [ebp - 0xd568]
lea ecx, [esi + 0xdc]
push ecx
mov edi, ebx
call fcn.0042f270
mov edi, dword [ebp - 0xd56c]
jmp 0x42d9ce
mov edi, dword [ebp - 0xd56c]
mov esi, dword [ebp - 0xd568]
cmp dword [ebp + 8], 0
push 0
push ebx
je 0x42da30
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x14]
add ecx, 0x4a0
call eax
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0xc]
add ecx, 0x4a0
call eax
mov ecx, dword [esi + 0x24]
sub ecx, 0x97
mov ebx, eax
mov eax, 0x9cc8e161
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x42da95
mov eax, ebx
cdq
idiv ecx
test edx, edx
je 0x42da2b
inc eax
mov ecx, dword [esi + 0x14]
jmp 0x42da87
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x14]
add ecx, 0x4a0
call eax
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0xc]
add ecx, 0x4a0
call eax
mov ecx, dword [esi + 0x24]
sub ecx, 0x97
mov ebx, eax
mov eax, 0x9cc8e161
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x42da95
mov eax, ebx
cdq
idiv ecx
test edx, edx
je 0x42da84
inc eax
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
imul eax, eax, 0xd0
push eax
mov eax, dword [edx + 0x64]
call eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x42dd36
mov ecx, dword [edi + 0x30]
cmp dword [ecx - 0xc], eax
je 0x42e00c
push 0x3ff
push eax
lea edx, [ebp - 0x413]
push edx
mov byte [ebp - 0x414], al
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [edi + 0x30]
push ecx
sub eax, 0x10
mov dword [ebp - 0xd574], esp
mov esi, esp
push eax
call fcn.0040d710
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0xd570]
call fcn.004045e0
add esp, 4
lea esi, [ebp - 0xd564]
mov byte [ebp - 4], 2
call fcn.00403050
mov esi, dword [edi + 0x30]
mov dword [ebp - 0xd564], 0x544547
test esi, esi
jne 0x42db29
xor eax, eax
jmp 0x42db52
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42db3c
xor eax, eax
jmp 0x42db52
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.0040c9b0
lea edx, [ebp - 0xd164]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42db60
mov eax, dword [ebp - 0xd570]
mov ebx, eax
test eax, eax
jne 0x42db7a
xor edi, edi
jmp 0x42dba5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42db8d
xor edi, edi
jmp 0x42dba5
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040c9b0
mov edi, eax
push 0x5a56b0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42dbbc
xor ebx, ebx
jmp 0x42dbd8
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 ebx, eax
push str.1905Cache1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42dbef
xor eax, eax
jmp 0x42dc09
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 edi
push ebx
push eax
lea ecx, [ebp - 0x414]
push ecx
push str._s_s_s_s
lea edx, [ebp - 0x8164]
push 0x2800
push edx
call fcn.005468fa
add esp, 0x1c
lea eax, [ebp - 0x8164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42dfc8
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push str.LookedEalierTile
lea ecx, [ebp - 0xd568]
mov dword [ebp - 0x3164], eax
mov dword [ebp - 0x3160], 0x402
call fcn.0040cf20
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 3
je 0x42dc86
push str.LookedTodayTile
lea ecx, [ebp - 0xd568]
call fcn.0040ced0
mov eax, dword [ebp - 0xd568]
mov ebx, eax
test eax, eax
je 0x42dcbb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42dca5
xor eax, eax
jmp 0x42dcbb
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040c9b0
lea ecx, [ebp - 0x8164]
push ecx
push eax
mov eax, dword [ebp - 0xd56c]
mov ecx, dword [eax]
lea edx, [ebp - 0x814]
push edx
push ecx
push 0x25
lea edx, [ebp - 0x315c]
push str.type_dvideotype_dname_s_wndname_s_saveFile_s
push edx
call fcn.00546876
add esp, 0x1c
mov eax, 0xcc08
lea esi, [ebp - 0xd564]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xd568]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dfe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42dfe6
cmp eax, 1
jne 0x42e00c
mov ecx, dword [esi + 0xf0]
cmp dword [ecx - 0xc], 0
je 0x42e00c
push 0x3ff
lea edx, [ebp - 0x413]
push 0
push edx
mov byte [ebp - 0x414], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [esi + 0xf0]
push ecx
sub esi, 0x10
mov dword [ebp - 0xd574], esp
mov ebx, esp
push esi
call fcn.0040d710
add eax, 0x10
add esp, 4
lea esi, [ebp - 0xd570]
mov dword [ebx], eax
call fcn.004045e0
add esp, 4
lea esi, [ebp - 0xd564]
mov byte [ebp - 4], 4
call fcn.00403050
mov ecx, dword [ebp - 0xd568]
mov esi, dword [ecx + 0xf0]
mov dword [ebp - 0xd564], 0x544547
test esi, esi
jne 0x42ddda
xor eax, eax
jmp 0x42de03
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42dded
xor eax, eax
jmp 0x42de03
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.0040c9b0
lea edx, [ebp - 0xd164]
sub edx, eax
jmp 0x42de10
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42de10
mov eax, dword [ebp - 0xd570]
mov ebx, eax
test eax, eax
jne 0x42de2a
xor edi, edi
jmp 0x42de55
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42de3d
xor edi, edi
jmp 0x42de55
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040c9b0
mov edi, eax
push 0x5a56b0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42de6c
xor ebx, ebx
jmp 0x42de88
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 ebx, eax
push str.1905Cache1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42de9f
xor eax, eax
jmp 0x42deb9
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 edi
push ebx
push eax
lea edx, [ebp - 0x414]
push edx
push str._s_s_s_s
lea eax, [ebp - 0x8164]
push 0x2800
push eax
call fcn.005468fa
add esp, 0x1c
lea ecx, [ebp - 0x8164]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42dfc8
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push str.LookedEalierTile
lea ecx, [ebp - 0xd56c]
mov dword [ebp - 0x3164], eax
mov dword [ebp - 0x3160], 0x402
call fcn.0040cf20
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 5
je 0x42df36
push str.LookedTodayTile
lea ecx, [ebp - 0xd56c]
call fcn.0040ced0
mov eax, dword [ebp - 0xd56c]
mov ebx, eax
test eax, eax
je 0x42df6b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42df55
xor eax, eax
jmp 0x42df6b
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040c9b0
mov ecx, dword [ebp - 0xd568]
lea edx, [ebp - 0x8164]
push edx
mov edx, dword [ecx + 0xdc]
push eax
lea eax, [ebp - 0x814]
push eax
push edx
push 0x25
lea eax, [ebp - 0x315c]
push str.type_dvideotype_dname_s_wndname_s_saveFile_s
push eax
call fcn.00546876
add esp, 0x1c
mov eax, 0xcc08
lea esi, [ebp - 0xd564]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
lea ecx, [ebp - 0xd56c]
call fcn.0040d7a0
jmp 0x42dfe6
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x8164]
push ecx
mov ecx, dword [ebp - 0xd568]
lea edx, [ebp - 0x814]
push edx
push eax
push ecx
call fcn.0042e050
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xd570]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e00c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x95c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CDialogBuilder::destructor_void_]
lea esp, [ebp - 0xd58c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret 0xc