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

Disassembly:
push 0x428
mov eax, 0x4e6927
call fcn.004b5257
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 0x496ebc
cmp ebx, edi
je 0x496ebc
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.004b4620
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004b4620
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 0x496ebc
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x496dea
push ebx
call esi
test eax, eax
jne 0x496dea
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 0x496d70
push edi
push str.360udiskguard.dll
lea ecx, [ebp - 0x428]
call fcn.0044211b
cmp eax, 0xffffffff
jne 0x496d70
push edi
push str.360udiskguard64.dll
lea ecx, [ebp - 0x428]
call fcn.0044211b
cmp eax, 0xffffffff
je 0x496d7a
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 0x496dc9
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x496dc9
push 4
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x496dd3
mov dword [ebp - 0x430], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0040d610
cmp dword [ebp - 0x430], edi
jne 0x496e00
push edi
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x496eb5
mov ecx, dword [ebp - 0x434]
push ebx
push dword [ebp - 0x42c]
call fcn.004931a4
test eax, eax
jne 0x496e5d
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 0x496eb5
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 0x496e9e
mov dword [0x53fed4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0040d610
mov dword [0x53fed0], esi
jmp 0x496eb8
xor esi, esi
inc esi
mov eax, esi
jmp 0x496ebe
xor eax, eax
call fcn.004b52da
ret 8