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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574d7b
mov eax, dword fs:[0]
push eax
mov eax, 0xd424
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
cmp dword [0x5e5d18], 0
mov esi, ecx
mov dword [ebp - 0xd41c], esi
je 0x41c87a
cmp dword [esi + 0x274], 0
je 0x41c853
mov ecx, dword [esi + 0x274]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax + 0x20]
add ecx, 0x4a0
call edx
mov ecx, dword [esi + 0x27c]
sub ecx, dword [esi + 0x278]
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xd428], ebx
jne 0x41c8a6
lea esp, [ebp - 0xd440]
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
mov ebx, dword [ebp - 0xd428]
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov byte [ebp - 0x410], 0
call fcn.00549e40
add esp, 0xc
lea edi, [ebp - 0x410]
mov esi, str.ListContainerElement
call fcn.00404fb0
test ebx, ebx
jne 0x41c901
mov ecx, dword [0x5e5d18]
test ecx, ecx
je 0x41c972
mov edx, dword [ebp - 0xd41c]
mov eax, dword [edx + 0x278]
mov eax, dword [eax + 0x6c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xbc]
call eax
jmp 0x41c972
mov ecx, dword [ebp - 0xd41c]
imul ebx, ebx, 0xa4
mov edx, dword [ecx + 0x278]
mov edi, dword [ebx + edx + 0x6c]
test edi, edi
je 0x41c958
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41c958
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41c958
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41c95a
xor eax, eax
mov ecx, dword [ebp - 0xd41c]
push eax
lea ebx, [ebp - 0x410]
call fcn.0041c580
mov ebx, dword [ebp - 0xd428]
mov dword [ebp - 0xd42c], 1
test ebx, ebx
je 0x41c98a
mov dword [ebp - 0xd42c], 0
push 0x3ff
lea eax, [ebp - 0x80f]
push 0
push eax
mov byte [ebp - 0x810], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea ecx, [ebp - 0x810]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [ebp - 0xd41c]
mov eax, dword [edx + 0x278]
mov ecx, ebx
imul ecx, ecx, 0xa4
mov esi, dword [eax + ecx + 0x2c]
push ecx
mov dword [ebp - 0xd424], ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0xd420], esp
mov ebx, esp
call edx
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x41ca07
cmp eax, dword [esi - 0x10]
jne 0x41ca07
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41ca3f
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41ce7e
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0054703f
add esp, 0x10
add edi, 0x10
lea esi, [ebp - 0xd430]
mov dword [ebx], edi
call fcn.004045e0
add esp, 4
lea esi, [ebp - 0xd418]
mov dword [ebp - 4], 0
call fcn.00403050
mov ecx, dword [ebp - 0xd41c]
mov edx, dword [ecx + 0x278]
mov eax, dword [ebp - 0xd424]
mov dword [ebp - 0xd418], 0x544547
mov edi, dword [eax + edx + 0x2c]
test edi, edi
je 0x41cac5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cac5
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cac5
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41cac7
xor eax, eax
lea edx, [ebp - 0xd018]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x41cad0
mov eax, dword [ebp - 0xd430]
mov ebx, eax
test eax, eax
jne 0x41caee
mov dword [ebp - 0xd420], eax
jmp 0x41cb33
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cb2b
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cb2b
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41cb2d
xor eax, eax
mov dword [ebp - 0xd420], eax
push 0x5a56b0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cb7a
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cb7a
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push 0x5a56b0
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
mov ebx, eax
jmp 0x41cb7c
xor ebx, ebx
push str.1905Cache1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cbc1
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cbc1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push str.1905Cache1
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41cbc3
xor eax, eax
mov ecx, dword [ebp - 0xd420]
push ecx
push ebx
push eax
lea edx, [ebp - 0x810]
push edx
push str._s_s_s_s
lea eax, [ebp - 0x8018]
push 0x2800
push eax
call fcn.005468fa
add esp, 0x1c
lea ecx, [ebp - 0x8018]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41cd32
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
mov edx, dword [ebp - 0xd41c]
mov ecx, dword [ebp - 0xd424]
mov dword [ebp - 0x3018], eax
mov eax, dword [edx + 0x278]
mov dword [ebp - 0x3014], 0x402
mov edi, dword [ecx + eax + 0x6c]
test edi, edi
jne 0x41cc3e
mov dword [ebp - 0xd420], edi
jmp 0x41cc83
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cc7b
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cc7b
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41cc7d
xor eax, eax
mov dword [ebp - 0xd420], eax
mov edx, dword [ebp - 0xd41c]
mov eax, dword [edx + 0x278]
mov ecx, dword [ebp - 0xd424]
mov edi, dword [ecx + eax + 4]
test edi, edi
je 0x41ccda
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41ccda
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41ccda
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41ccdc
xor eax, eax
mov ecx, dword [ebp - 0xd420]
lea edx, [ebp - 0x8018]
push edx
push ecx
lea edx, [ebp - 0x410]
push edx
push eax
mov eax, dword [ebp - 0xd42c]
push eax
push 0x19
lea ecx, [ebp - 0x3010]
push str.type_disfirst_did_s_name_s_userdata_s_save_s
push ecx
call fcn.00546876
add esp, 0x20
mov eax, 0xcc08
lea esi, [ebp - 0xd418]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
jmp 0x41ce18
mov edx, dword [ebp - 0xd41c]
mov eax, dword [edx + 0x278]
mov ecx, dword [ebp - 0xd424]
mov edi, dword [ecx + eax + 0x6c]
test edi, edi
jne 0x41cd54
mov dword [ebp - 0xd420], edi
jmp 0x41cd99
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cd91
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cd91
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41cd93
xor eax, eax
mov dword [ebp - 0xd420], eax
mov edx, dword [ebp - 0xd41c]
mov eax, dword [edx + 0x278]
mov ecx, dword [ebp - 0xd424]
mov edi, dword [ecx + eax + 4]
test edi, edi
je 0x41cdf0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41cdf0
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x41cdf0
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41cdf2
xor eax, eax
mov edx, dword [ebp - 0xd42c]
mov ebx, dword [ebp - 0xd420]
push edx
lea ecx, [ebp - 0x410]
push ecx
lea edi, [ebp - 0x8018]
mov ecx, eax
mov edx, 0x5e5c04
call fcn.00419c90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd430]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ce41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xd41c]
mov ecx, dword [eax + 0x27c]
sub ecx, dword [eax + 0x278]
mov esi, dword [ebp - 0xd428]
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
mov dword [ebp - 0xd428], esi
cmp esi, ecx
jb 0x41c8a0
jmp 0x41c87a
call fcn.0040d700
int3