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

Disassembly:
push 0x428
mov eax, 0x4e6ace
call fcn.004b5417
mov dword [ebp - 0x434], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x42c], eax
cmp eax, edi
je 0x496f92
cmp ebx, edi
je 0x496f92
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x424], edi
call fcn.004b47e0
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004b47e0
add esp, 0x18
push ebx
push 0x208
lea eax, [ebp - 0x420]
push eax
call fcn.0043e258
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x496f92
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x496ec0
push ebx
call esi
test eax, eax
jne 0x496ec0
push ebx
lea ecx, [ebp - 0x428]
call fcn.0044bc85
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x428]
call fcn.00445121
push edi
push str.safemon.dll
lea ecx, [ebp - 0x428]
call fcn.0044211b
cmp eax, 0xffffffff
jne 0x496e46
push edi
push str.360udiskguard.dll
lea ecx, [ebp - 0x428]
call fcn.0044211b
cmp eax, 0xffffffff
jne 0x496e46
push edi
push str.360udiskguard64.dll
lea ecx, [ebp - 0x428]
call fcn.0044211b
cmp eax, 0xffffffff
je 0x496e50
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x218]
push eax
push edi
push 0x501174
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call esi
cmp dword [ebp - 0x424], edi
jne 0x496e9f
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x496e9f
push 4
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x496ea9
mov dword [ebp - 0x430], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0040d610
cmp dword [ebp - 0x430], edi
jne 0x496ed6
push edi
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x496f8b
mov ecx, dword [ebp - 0x434]
push ebx
push dword [ebp - 0x42c]
call fcn.004931a4
test eax, eax
jne 0x496f33
lea eax, [ebp - 0x218]
push eax
push edi
push 0x501174
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call esi
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x424], edi
jne 0x496f8b
push ebx
lea ecx, [ebp - 0x424]
call fcn.0044bc85
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x424]
call fcn.00445121
push edi
push str.qhsafemain.exe
lea ecx, [ebp - 0x424]
call fcn.0044211b
cmp eax, 0xffffffff
je 0x496f74
mov dword [0x53fed4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0040d610
mov dword [0x53fed0], esi
jmp 0x496f8e
xor esi, esi
inc esi
mov eax, esi
jmp 0x496f94
xor eax, eax
call fcn.004b549a
ret 8