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

Disassembly:
push 0xcc
mov eax, 0x5eba70
call fcn.00593b07
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 - 0xd4]
mov byte [ebp - 4], 2
call fcn.004c3ef9
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc4], ebx
je 0x4c5e80
push 0x62b0fc
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.0041154e
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b0ac
lea ecx, [ebp - 0xa4]
call fcn.0040b67e
push str.old_360huabao.exe
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.0041154e
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b0ac
lea ecx, [ebp - 0xa4]
call fcn.0040b67e
push str.new_360huabao.exe
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.0041154e
pop ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b0ac
lea ecx, [ebp - 0xa4]
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 0x4c5eaa
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 0x4c5ee4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x967
push str.Update360PicSelf
push str.__s__d___File_miss_new__s
call fcn.0040a649
add esp, 0x10
jmp 0x4c6192
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.00426e0a
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x44]
call fcn.00426e0a
cmp dword [ebp - 0x7c], 0
je 0x4c614a
cmp dword [ebp - 0x64], 0
je 0x4c614a
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.004270e4
test eax, eax
jle 0x4c614a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004302c7
pop ecx
test eax, eax
jne 0x4c5f95
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x977
push str.Update360PicSelf
push str.__s__d___Check_sign___s_Failed
call fcn.0040a649
add esp, 0x10
jmp 0x4c617f
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 0x4c5ff6
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 0x97e
push str.Update360PicSelf
push str.__s__d___Update_Failed_MoveFileEx__s_to__s__Error_Code:_ld
call fcn.0040a649
add esp, 0x18
jmp 0x4c617f
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 0x4c603c
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 0x984
jmp 0x4c5fdf
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], ebx
push eax
push str.sys_enable
mov edx, str.Software360360huabaohuabao
mov ecx, reloc.WS2_32.dll_accept
call fcn.00425cdd
pop ecx
pop ecx
push 0x646ac4
lea ecx, [ebp - 0xa4]
call fcn.0040b0d5
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.004c41a8
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.0040b67e
cmp dword [ebp - 0xa8], 8
lea edi, [ebp - 0xbc]
lea esi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0xbc]
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x98d
mov esi, str.Update360PicSelf
push esi
push str.__s__d___SetSystemScreen__strPicPath___s_strScrPath___s_error__d
call fcn.0040a649
add esp, 0x18
cmp dword [ebp - 0xd8], 1
jne 0x4c613a
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 0x4c613a
cmp dword [ebp - 0xa8], 8
lea ecx, [ebp - 0xbc]
push ebx
cmovae ecx, dword [ebp - 0xbc]
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]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xd8]
push 0x991
push esi
push str.__s__d___SetSystemScreen____enable___d_error__d
call fcn.0040a649
add esp, 0x14
xor ebx, ebx
lea ecx, [ebp - 0xbc]
inc ebx
call fcn.0040b67e
jmp 0x4c617f
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 0x972
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 - 0xd4]
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.00593ab1
ret