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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57443d
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
mov eax, dword [ebp + 8]
mov esi, ecx
mov edi, 1
add dword [esi + 0x28], edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 0xd56c], esi
mov dword [ebp - 0xd570], eax
je 0x4201ab
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 - 0xd574]
push edx
push 0
push ecx
mov eax, esp
mov dword [ebp - 0xd574], 0x5a9280
lea ecx, [ebp - 0x95c]
mov dword [ebp - 0xd568], esp
mov dword [eax], str.LoadSkinLoadFilmItem.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 0x420198
add dword [esi + 0x34], edi
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.00549e40
add esp, 0xc
lea edi, [ebp - 0x414]
mov esi, str.ListContainerElement
call fcn.00404fb0
mov ecx, edi
push ecx
lea ecx, [ebp - 0xd568]
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 - 0xd568]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fe7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xd570]
push esi
call fcn.00423710
mov ecx, dword [ebp - 0xd56c]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x14]
add ecx, 0x4a0
push 0
push ebx
call eax
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0xde0], ecx
test esi, esi
je 0x41fed9
mov edx, dword [ebx + 0xdb8]
cmp dword [edx - 0xc], 0
je 0x41fed9
mov esi, 1
push ebx
mov dword [ebx + 0xde0], esi
call fcn.00424010
mov dword [ebx + 0xd2c], esi
mov edi, dword [ebp - 0xd570]
mov eax, dword [edi + 0x2c]
cmp dword [eax - 0xc], 0
je 0x420198
push 0x3ff
lea ecx, [ebp - 0x813]
push 0
push ecx
mov byte [ebp - 0x814], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea edx, [ebp - 0x814]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [edi + 0x2c]
push ecx
sub eax, 0x10
mov dword [ebp - 0xd578], esp
mov esi, esp
push eax
call fcn.0040d710
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0xd568]
call fcn.004045e0
add esp, 4
lea esi, [ebp - 0xd564]
mov byte [ebp - 4], 2
call fcn.00403050
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0xd564], 0x544547
test esi, esi
jne 0x41ff6b
xor eax, eax
jmp 0x41ff94
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41ff7e
xor eax, eax
jmp 0x41ff94
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 esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41ffa0
mov eax, dword [ebp - 0xd568]
mov ebx, eax
test eax, eax
jne 0x41ffba
xor edi, edi
jmp 0x41ffe5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41ffcd
xor edi, edi
jmp 0x41ffe5
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 0x41fffc
xor ebx, ebx
jmp 0x420018
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 0x42002f
xor eax, eax
jmp 0x420049
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 eax, [ebp - 0x814]
push eax
push str._s_s_s_s
lea ecx, [ebp - 0x8164]
push 0x2800
push ecx
call fcn.005468fa
add esp, 0x1c
lea edx, [ebp - 0x8164]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x420159
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push str.DownloadFilmList
lea ecx, [ebp - 0xd56c]
mov dword [ebp - 0x3164], eax
mov dword [ebp - 0x3160], 0x402
call fcn.0040cf20
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd56c]
mov ebx, eax
test eax, eax
je 0x4200e5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4200cf
xor eax, eax
jmp 0x4200e5
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 - 0xd570]
mov ecx, dword [eax]
lea edx, [ebp - 0x414]
push edx
push ecx
push 0x26
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 - 0xd56c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420172
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420172
lea ecx, [ebp - 0x8164]
push ecx
mov ecx, dword [ebp - 0xd56c]
lea edx, [ebp - 0x414]
push edx
call fcn.004201d0
mov byte [ebp - 4], 0
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 0x420198
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