Function at 0x40937a
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x485858
call fcn.00457967
mov eax, dword [0x4a8884]
and dword [ebp - 0x18], 0
mov edi, 0x4a8884
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.00401d29
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00407e51
mov esi, dword [ebp - 0x10]
mov eax, esi
mov ecx, ebx
call fcn.004095e6
test eax, eax
jne 0x409506
push eax
push esi
call fcn.00454888
test eax, eax
pop ecx
pop ecx
jne 0x4095d0
mov eax, dword [0x4a8884]
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.0040a818
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 8]
push esi
call fcn.004541ac
test eax, eax
pop ecx
pop ecx
je 0x409467
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov esi, 0x4aa264
call fcn.00430060
mov esi, 0x48b63c
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040798e
add esp, 0x10
mov byte [ebp - 4], 2
jmp 0x4094ae
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040257a
jmp 0x4095d0
push dword [ebp + 8]
mov esi, 0x4aa264
push str.MoveFileEx_Rename_file_succeed__path:_ws
call fcn.00430060
pop ecx
pop ecx
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [ebp - 0x10]
mov ecx, ebx
call fcn.004095e6
test eax, eax
jne 0x4094f7
mov esi, 0x48b63c
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040798e
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, ebx
call fcn.004095e6
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040257a
cmp dword [ebp - 0x14], 0
je 0x409457
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040798e
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.0040257a
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040257a
lea ecx, [ebp - 0x10]
call fcn.004098b6
test eax, eax
je 0x4095c9
mov eax, dword [0x4a8884]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [0x4a8884]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00409950
lea edi, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00401bbe
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040257a
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004099ff
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401bbe
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.00409b0e
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, ebx
call fcn.004095e6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040257a
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, dword [ebp - 0x18]
call fcn.00457a3f
ret 4