Function at 0x459280
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x482890
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
xor ebp, ebp
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x459339
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4592ed
test al, 1
je 0x4592ed
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x459339
call esi
push eax
push edi
push str._ERROR_ModuleMoveFile___DeleteFile___File_s___d__n
call fcn.00401010
add esp, 0xc
call esi
push eax
push edi
push str.ERROR_ModuleMoveFile___DeleteFile___File_s___d__n
push 2
call fcn.00448d80
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
test eax, eax
setne bl
test bl, bl
je 0x4594a1
mov edi, dword [esp + 0x30]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x45938e
call esi
push eax
push str._ERROR_ModuleMoveFile___CreateFile_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_ModuleMoveFile___CreateFile_____d__n
push 2
call fcn.00448d80
add esp, 0xc
mov dword [esp + 0x14], ebp
xor bl, bl
jmp 0x4594a5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4593c7
call esi
push eax
push str._ERROR_ModuleMoveFile___GetFileSize_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_ModuleMoveFile___GetFileSize_____d__n
push 2
call fcn.00448d80
add esp, 0xc
xor bl, bl
jmp 0x4594a1
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x459406
call esi
push eax
push str._ERROR_ModuleMoveFile___GlobalAllocPtr_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_ModuleMoveFile___GlobalAllocPtr_____d__n
push 2
call fcn.00448d80
add esp, 0xc
xor bl, bl
jmp 0x4594a1
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test bl, bl
jne 0x459443
call esi
push eax
push str._ERROR_ModuleMoveFile___ReadFile_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_ModuleMoveFile___ReadFile_____d__n
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x4594a1
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push ebp
call fcn.00458d90
test eax, eax
setne bl
test bl, bl
jne 0x459482
call esi
push eax
push str._ERROR_ModuleMoveFile___CreateAndWriteFile_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_ModuleMoveFile___CreateAndWriteFile_____d__n
push 2
call fcn.00448d80
add esp, 0xc
jmp 0x4594a1
mov edi, dword [esp + 0x34]
push edi
push str.____ModuleMoveFile___Module_moved_File_s_n
call fcn.00401010
push edi
push str.ModuleMoveFile___Module_moved_File_s_n
push 0
call fcn.00448d80
add esp, 0x14
mov edi, dword [esp + 0x30]
test ebp, ebp
je 0x4594c7
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebp, ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4594de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
test bl, bl
je 0x459518
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x459518
call esi
push eax
push edi
push str._ERROR_ModuleMoveFile:_DeleteFile___TempFile_s___d__n
call fcn.00401010
add esp, 0xc
call esi
push eax
push edi
push str.ERROR_ModuleMoveFile:_DeleteFile___TempFile_s___d__n
push 2
call fcn.00448d80
add esp, 0x10
jmp 0x4594a5
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459539
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8