Function at 0x4573eb
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4b1d00]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
mov eax, dword [ebp + 0x3b0]
push ebx
mov ebx, dword [ebp + 0x3b4]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], ebx
cmp eax, edi
je 0x457612
cmp ebx, edi
je 0x457612
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push edi
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
call fcn.00464d20
xor eax, eax
push esi
mov word [ebp + 0x19c], ax
lea eax, [ebp + 0x19e]
push edi
push eax
call fcn.00464d20
add esp, 0x18
push ebx
push 0x208
lea eax, [ebp - 0x6c]
push eax
call fcn.00443756
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x457612
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x45756f
push dword [ebp - 0x74]
call esi
test eax, eax
jne 0x45756f
push dword [ebp - 0x74]
lea ecx, [ebp - 0x78]
call fcn.00404be0
lea ecx, [ebp - 0x78]
call fcn.0040a4c0
push edi
push str.safemon.dll
lea ecx, [ebp - 0x78]
call fcn.00443f94
cmp eax, 0xffffffff
jne 0x45750a
push edi
push str.360udiskguard.dll
lea ecx, [ebp - 0x78]
call fcn.00443f94
cmp eax, 0xffffffff
jne 0x45750a
push edi
push str.360udiskguard64.dll
lea ecx, [ebp - 0x78]
call fcn.00443f94
cmp eax, 0xffffffff
je 0x457511
mov dword [ebp - 0x70], 1
lea eax, [ebp + 0x19c]
push eax
push edi
push 0x494f98
lea eax, [ebp - 0x6c]
push eax
call ebx
lea eax, [ebp + 0x19c]
push eax
call esi
cmp dword [ebp - 0x70], edi
jne 0x457558
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x457558
push 4
push edi
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x45755f
mov dword [ebp - 0x80], 1
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
call fcn.004016d0
cmp dword [ebp - 0x80], edi
jne 0x457584
push edi
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x45760d
lea eax, [ebp + 0x19c]
push eax
push edi
push 0x494f98
lea eax, [ebp - 0x6c]
push eax
call ebx
lea eax, [ebp + 0x19c]
push eax
call esi
push edi
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push dword [ebp - 0x74]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x70], edi
jne 0x45760d
push dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
call fcn.00404be0
lea ecx, [ebp - 0x70]
call fcn.0040a4c0
push edi
push str.qhsafemain.exe
lea ecx, [ebp - 0x70]
call fcn.00443f94
cmp eax, 0xffffffff
je 0x4575f8
mov dword [0x4b75d8], 1
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.004016d0
mov dword [0x4b75d4], 1
xor eax, eax
inc eax
jmp 0x457614
xor eax, eax
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464fe1
add ebp, 0x3a8
leave
ret 8