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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57323b
mov eax, dword fs:[0]
push eax
mov eax, 0xd01c
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 ebx, ecx
mov eax, dword [ebx + 0x70]
mov edi, edx
mov dword [ebp - 0xd020], edi
add edi, edi
mov eax, dword [eax + edi*8 + 0xc]
mov dword [ebp - 0xd024], ebx
mov ecx, 0x5a55b8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x440326
test dx, dx
je 0x440322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x440326
add eax, 4
add ecx, 4
test dx, dx
jne 0x440300
xor eax, eax
jmp 0x44032b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x44056f
push 0x3ff
mov byte [ebp - 0x410], al
lea eax, [ebp - 0x40f]
push 0
push eax
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea ecx, [ebp - 0x410]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + edi*8 + 0xc]
push ecx
sub eax, 0x10
mov dword [ebp - 0xd028], esp
mov esi, esp
push eax
call fcn.0040d710
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0xd01c]
call fcn.004045e0
add esp, 4
lea esi, [ebp - 0xd018]
mov dword [ebp - 4], 0
call fcn.00403050
mov edx, dword [ebx + 0x70]
mov dword [ebp - 0xd018], 0x544547
mov edi, dword [edx + edi*8 + 0xc]
test edi, edi
jne 0x4403c1
xor eax, eax
jmp 0x4403ea
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4403d4
xor eax, eax
jmp 0x4403ea
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 - 0xcc18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4403f2
mov eax, dword [ebp - 0xd01c]
mov edi, eax
test eax, eax
jne 0x44040c
xor ebx, ebx
jmp 0x440437
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x44041f
xor ebx, ebx
jmp 0x440437
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 0x44044e
xor edi, edi
jmp 0x44046a
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 0x440481
xor eax, eax
jmp 0x44049b
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 eax, [ebp - 0x410]
push eax
push str._s_s_s_s
lea ecx, [ebp - 0x7c18]
push 0x2800
push ecx
call fcn.005468fa
add esp, 0x1c
lea edx, [ebp - 0x7c18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44052e
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
mov ecx, dword [ebp - 0xd020]
mov dword [ebp - 0x2c18], eax
lea eax, [ebp - 0x7c18]
push eax
push ecx
push 0x1a
lea edx, [ebp - 0x2c10]
push str.type_dindex_d_save_s
push edx
mov dword [ebp - 0x2c14], 0x402
call fcn.00546876
add esp, 0x14
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
jmp 0x440546
mov eax, dword [ebp - 0xd024]
mov ecx, dword [ebp - 0xd020]
push eax
lea edi, [ebp - 0x7c18]
call fcn.004405a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd01c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44056f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0xd038]
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