Function at 0x419422
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x47af06
call fcn.0045e17e
mov ebx, ecx
mov esi, 0x49cc5c
xor edi, edi
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.00422d95
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00417f93
mov eax, dword [ebx]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00417da6
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00418bf8
cmp eax, edi
jne 0x4195ab
push edi
push dword [ebp - 0x10]
call fcn.0045f054
pop ecx
pop ecx
test eax, eax
jne 0x419670
push esi
lea ecx, [ebp + 8]
call fcn.00422d95
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str._s_d__x
push eax
call fcn.00418e04
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0045efa2
pop ecx
pop ecx
test eax, eax
je 0x419508
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x49d440
call fcn.0042ee96
mov edi, 0x47f5d8
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417e93
add esp, 0x18
mov byte [ebp - 4], 2
jmp 0x419551
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0041788d
jmp 0x419670
push dword [ebp + 8]
push str.MoveFileEx_Rename_file_succeed__path:_ws
push 0x49d440
call fcn.0042ee96
add esp, 0xc
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00418bf8
cmp eax, edi
jne 0x41959c
mov edi, 0x47f5d8
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417e93
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, ebx
call fcn.00418bf8
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
call fcn.0041788d
cmp dword [ebp - 0x14], 0
je 0x4194f8
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00417e93
mov eax, dword [eax]
add esp, 0xc
push 5
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0041788d
lea eax, [ebp - 0x10]
push eax
call fcn.00418fb2
pop ecx
test eax, eax
je 0x419669
push esi
lea ecx, [ebp - 0x14]
call fcn.00422d95
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00422d95
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.0041917e
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00417ef7
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.0041788d
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00419248
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00417ef7
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.0041788d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418d2b
add esp, 0xc
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00418bf8
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0041788d
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
mov eax, dword [ebp - 0x18]
call fcn.0045e256
ret 4