Function at 0x47f495
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x519a54]
and dword [ebp - 0xc], 0
push esi
push edi
mov edi, 0x519a54
mov ecx, edi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00401b70
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0040cf77
mov esi, dword [ebp - 4]
push esi
push ebx
call fcn.0047f70d
test eax, eax
jne 0x47f60a
push dword [ebx]
push str.CreateFileByMem_fail:_ws
call fcn.004256af
push 0
push esi
call fcn.0049472d
add esp, 0x10
test eax, eax
jne 0x47f6f9
mov eax, dword [0x519a54]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push str._s_d__x
push eax
call fcn.0041e7b9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 8]
push esi
call fcn.00497e49
test eax, eax
pop ecx
pop ecx
je 0x47f57e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov esi, 0x51b95c
call fcn.0044cc8c
mov esi, 0x4f6638
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e7cc
add esp, 0xc
jmp 0x47f5be
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040153b
jmp 0x47f6f9
push dword [ebp + 8]
mov esi, 0x51b95c
push str.MoveFileEx_Rename_file_succeed__path:_ws
call fcn.0044cc8c
pop ecx
pop ecx
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
push dword [ebp - 4]
push ebx
call fcn.0047f70d
test eax, eax
jne 0x47f5ff
mov esi, 0x4f6638
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e7cc
pop ecx
push dword [eax]
push ebx
call fcn.0047f70d
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
cmp dword [ebp - 8], 0
je 0x47f56e
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e7cc
pop ecx
push 5
push dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [ebp - 4]
call fcn.0047fba1
test eax, eax
je 0x47f6f2
mov eax, dword [0x519a54]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x519a54]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebp - 0x10]
mov dword [ebp + 8], eax
call fcn.0047fc28
lea edi, [ebp + 8]
call fcn.0040208c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0047fcbc
pop ecx
lea edi, [ebp - 8]
call fcn.0040208c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
call fcn.0047fced
test eax, eax
mov esi, dword [ebp - 8]
push str.kisknl64.sys
push esi
je 0x47f6a4
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
je 0x47f6bc
push str.kisknl.sys
push esi
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
jne 0x47f6bc
jmp 0x47f6df
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
je 0x47f6df
push str.kisknl.sys
push esi
call fcn.00493a74
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041e6f7
pop ecx
push dword [eax]
push ebx
call fcn.0047f70d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [esi - 0x10]
call fcn.0040153b
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 4