Function at 0x4cd8e1
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0xfc
mov eax, 0x5f489e
call fcn.0059bbd7
push 7
xor ebx, ebx
xor eax, eax
pop edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edi
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.004cb6c0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xdc], ebx
je 0x4cd9b8
push 0x63424c
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0xbc]
call fcn.00411559
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b0ac
lea ecx, [ebp - 0xbc]
call fcn.0040b67e
push str.old_360huabao.exe
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0xbc]
call fcn.00411559
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b0ac
lea ecx, [ebp - 0xbc]
call fcn.0040b67e
push str.new_360huabao.exe
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0xbc]
call fcn.00411559
pop ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b0ac
lea ecx, [ebp - 0xbc]
call fcn.0040b67e
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x4cd9e2
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x4cda1c
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x9ca
push str.Update360PicSelf
push str.__s__d___File_miss_new__s
call fcn.0040a649
add esp, 0x10
jmp 0x4cde19
xor eax, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], edi
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], edi
mov word [ebp - 0x74], ax
lea edx, [ebp - 0x8c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004272ec
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x44]
call fcn.004272ec
cmp dword [ebp - 0x7c], 0
je 0x4cddd1
cmp dword [ebp - 0x64], 0
je 0x4cddd1
cmp dword [ebp - 0x78], 8
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x74]
cmovae edx, dword [ebp - 0x8c]
cmp dword [ebp - 0x60], 8
cmovae ecx, dword [ebp - 0x74]
call fcn.004275c6
test eax, eax
jle 0x4cddd1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004352fd
pop ecx
test eax, eax
jne 0x4cdacd
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x9da
push str.Update360PicSelf
push str.__s__d___Check_sign___s_Failed
call fcn.0040a649
add esp, 0x10
jmp 0x4cde06
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x18], 8
push 1
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call esi
test eax, eax
jne 0x4cdb2e
cmp dword [ebp - 0x48], 8
lea edi, [ebp - 0x5c]
lea esi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x5c]
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x9e1
push str.Update360PicSelf
push str.__s__d___Update_Failed_MoveFileEx__s_to__s__Error_Code:_ld
call fcn.0040a649
add esp, 0x18
jmp 0x4cde06
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push 1
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x4cdb74
cmp dword [ebp - 0x18], 8
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x44]
cmovae edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
cmovae esi, dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x9e7
jmp 0x4cdb17
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], ebx
push eax
push str.sys_enable
mov edx, str.Software360360huabaohuabao
mov ecx, reloc.WS2_32.dll_accept
call fcn.004261bf
pop ecx
pop ecx
push 0x650a54
lea ecx, [ebp - 0xbc]
call fcn.0040b0d5
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.004cb96f
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 8
call fcn.0040b67e
cmp dword [ebp - 0xc0], 8
lea edi, [ebp - 0xd4]
lea esi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0xd4]
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x9f0
push str.Update360PicSelf
push str.__s__d___SetSystemScreen__strPicPath___s_strScrPath___s_error__d
call fcn.0040a649
add esp, 0x18
cmp dword [ebp - 0x108], 1
jne 0x4cddc1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cddc1
cmp dword [ebp - 0xc0], 8
lea ecx, [ebp - 0xd4]
push ebx
cmovae ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
test edi, edi
je 0x4cdda1
push str.Update360PicSelf
lea ecx, [ebp - 0xa4]
call fcn.0040b0d5
push 0x646898
mov byte [ebp - 4], 9
call fcn.005c2f90
pop ecx
push eax
push 0x646898
lea ecx, [ebp - 0xa4]
call fcn.0040b220
mov edx, 0x9f8
lea ecx, [ebp - 0x104]
call fcn.00420ed4
mov byte [ebp - 4], 0xa
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4cdcb9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0040b220
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 9
call fcn.0040b67e
push 0x646898
call fcn.005c2f90
pop ecx
push eax
push 0x646898
lea ecx, [ebp - 0xa4]
call fcn.0040b220
push ebx
call fcn.005c35ca
pop ecx
push edx
push eax
lea ecx, [ebp - 0x104]
call fcn.0041094b
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4cdd17
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0040b220
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 9
call fcn.0040b67e
mov ebx, str._3_copyerror
push ebx
call fcn.005c2f90
pop ecx
push eax
push ebx
lea ecx, [ebp - 0xa4]
call fcn.0040b220
mov edx, edi
lea ecx, [ebp - 0x104]
call fcn.0045bbd2
mov byte [ebp - 4], 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4cdd69
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0040b220
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 9
call fcn.0040b67e
lea ecx, [ebp - 0xa4]
call fcn.004cc061
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.0040b67e
call esi
push eax
push dword [ebp - 0x108]
push 0x9ff
push str.Update360PicSelf
push str.__s__d___SetSystemScreen____enable___d_error__d
call fcn.0040a649
add esp, 0x14
xor ebx, ebx
lea ecx, [ebp - 0xd4]
inc ebx
call fcn.0040b67e
jmp 0x4cde06
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x78], 8
push ecx
cmovae eax, dword [ebp - 0x8c]
push eax
push 0x9d5
push str.Update360PicSelf
push str.__s__d___CmpVer_old__s_:_new__s
call fcn.0040a649
add esp, 0x14
lea ecx, [ebp - 0x74]
call fcn.0040b67e
lea ecx, [ebp - 0x8c]
call fcn.0040b67e
lea ecx, [ebp - 0xec]
call fcn.0040b67e
lea ecx, [ebp - 0x44]
call fcn.0040b67e
lea ecx, [ebp - 0x5c]
call fcn.0040b67e
lea ecx, [ebp - 0x2c]
call fcn.0040b67e
mov eax, ebx
call fcn.0059bb81
ret