Function at 0x46a2f5
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4bb186
call fcn.004b89d0
sub esp, 0x10
mov eax, dword [0x4ed5f0]
and dword [ebp - 0x18], 0
push esi
push edi
mov edi, 0x4ed5f0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00427868
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00427564
mov esi, dword [ebp - 0x10]
push esi
push ebx
call fcn.0046a5b5
test eax, eax
jne 0x46a480
push eax
push esi
call fcn.00489568
test eax, eax
pop ecx
pop ecx
jne 0x46a597
mov eax, dword [0x4ed5f0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_d__x
lea eax, [ebp + 8]
call fcn.0042781d
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 8]
push esi
call fcn.0048cafa
test eax, eax
pop ecx
pop ecx
je 0x46a3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov esi, 0x4ef368
call fcn.0047a4ba
mov esi, 0x4c91ac
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040db81
add esp, 0x10
mov byte [ebp - 4], 2
jmp 0x46a429
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040dae8
jmp 0x46a597
push dword [ebp + 8]
mov esi, 0x4ef368
push str.MoveFileEx_Rename_file_succeed__path:_ws
call fcn.0047a4ba
pop ecx
pop ecx
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x10]
push ebx
call fcn.0046a5b5
test eax, eax
jne 0x46a471
mov esi, 0x4c91ac
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040db81
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
push ebx
call fcn.0046a5b5
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040dae8
cmp dword [ebp - 0x14], 0
je 0x46a3d3
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040db81
mov eax, dword [eax]
pop ecx
pop ecx
push 5
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040dae8
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040dae8
lea ecx, [ebp - 0x10]
call fcn.0046aa4c
test eax, eax
je 0x46a590
mov eax, dword [0x4ed5f0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
mov eax, dword [0x4ed5f0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0046aaf0
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00427953
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040dae8
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0046ab88
pop ecx
pop ecx
lea edi, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00427953
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040da8c
pop ecx
pop ecx
mov byte [ebp - 4], 8
push dword [eax]
push ebx
call fcn.0046a5b5
mov esi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040dae8
test esi, esi
mov edi, dword [ebp + 8]
je 0x46a57d
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.004278fb
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0040da8c
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push eax
mov byte [ebp - 4], 0xb
call fcn.0046abe1
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040dae8
lea eax, [edi - 0x10]
call fcn.0040dae8
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4