Function at 0x4956f0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x674ea2
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x74b738]
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 dword [ebp - 0x27c], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
add ebx, 0xe8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495760
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00441d80
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x495793
push dword [ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.0045cd70
mov ecx, ebx
cmp dword [eax + 0x3c], 0
je 0x4957a9
push 0x12
push str.ludashi_setup.dll
jmp 0x4957b0
push 0x19
push str.ludashiludashisetup.exe
call fcn.00440010
mov esi, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x4957f1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4957f1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4957e6
push esi
call edi
test eax, eax
jne 0x4957f1
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x27c]
lea esi, [eax + 0xec]
add eax, 0x108
push esi
push eax
call fcn.0045cd70
mov ecx, eax
call fcn.00434d80
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x49598a
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x49597f
push 0x2c
push str.f:master_luinst_ui_marketprogresspage.cpp
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], al
call fcn.0042a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
push 3
push 0x6d1880
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
mov byte [ebp - 4], 1
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x57
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0042c590
mov esi, eax
push str.ThunderDownloadUrl_is_empty__use_Aliyun_DownloadUrl
push esi
mov byte [ebp - 4], 2
call fcn.0042c400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.00428ee0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x495921
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495917
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495917
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x49597f
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495975
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495975
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov ecx, dword [ebp - 0x27c]
call fcn.0049c0b0
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x495aff
push 0x2c
push str.f:master_luinst_ui_marketprogresspage.cpp
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.0042a9a0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x248]
push 3
push 0x6d1880
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov byte [ebp - 4], 4
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x5a
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0042c590
mov esi, eax
push str.Decided_download_url_:
push esi
mov byte [ebp - 4], 5
call fcn.0042c400
mov eax, dword [ebp - 0x27c]
mov edx, str._null_
mov ecx, dword [eax + 0xec]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.0043f750
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.00428ee0
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x495aa8
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495a9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495a9e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp edx, 0x10
jb 0x495aff
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495af5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495af5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x495b20
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax + 0xec]
cmp dword [eax - 0xc], 0
je 0x495b20
mov eax, 1
jmp 0x495b22
xor eax, eax
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.00669a1e
mov esp, ebp
pop ebp
ret