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

Disassembly:
push 0xcc
mov eax, 0x5e9c3a
call fcn.00592017
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.004c27c2
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc4], ebx
je 0x4c43b8
push 0x629104
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.0041154b
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b0ac
lea ecx, [ebp - 0xa4]
call fcn.0040b67b
push str.old_360huabao.exe
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.0041154b
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b0ac
lea ecx, [ebp - 0xa4]
call fcn.0040b67b
push str.new_360huabao.exe
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.0041154b
pop ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b0ac
lea ecx, [ebp - 0xa4]
call fcn.0040b67b
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 0x4c43e2
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 0x4c441c
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x913
push str.Update360PicSelf
push str.__s__d___File_miss_new__s
call fcn.0040a649
add esp, 0x10
jmp 0x4c46ca
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.00426e07
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x44]
call fcn.00426e07
cmp dword [ebp - 0x7c], 0
je 0x4c4682
cmp dword [ebp - 0x64], 0
je 0x4c4682
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.004270e1
test eax, eax
jle 0x4c4682
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004302c4
pop ecx
test eax, eax
jne 0x4c44cd
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x923
push str.Update360PicSelf
push str.__s__d___Check_sign___s_Failed
call fcn.0040a649
add esp, 0x10
jmp 0x4c46b7
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 0x4c452e
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 0x92a
push str.Update360PicSelf
push str.__s__d___Update_Failed_MoveFileEx__s_to__s__Error_Code:_ld
call fcn.0040a649
add esp, 0x18
jmp 0x4c46b7
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 0x4c4574
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 0x930
jmp 0x4c4517
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.00425cda
pop ecx
pop ecx
push 0x6448d4
lea ecx, [ebp - 0xa4]
call fcn.0040b0d5
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.004c2a71
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.0040b67b
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 0x939
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 0x4c4672
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 0x4c4672
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 0x93d
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.0040b67b
jmp 0x4c46b7
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 0x91e
push str.Update360PicSelf
push str.__s__d___CmpVer_old__s_:_new__s
call fcn.0040a649
add esp, 0x14
lea ecx, [ebp - 0x74]
call fcn.0040b67b
lea ecx, [ebp - 0x8c]
call fcn.0040b67b
lea ecx, [ebp - 0xd4]
call fcn.0040b67b
lea ecx, [ebp - 0x44]
call fcn.0040b67b
lea ecx, [ebp - 0x5c]
call fcn.0040b67b
lea ecx, [ebp - 0x2c]
call fcn.0040b67b
mov eax, ebx
call fcn.00591fc1
ret