Function at 0x4057f8
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b44e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x15b4
call fcn.00423470
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1594], edi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x15a4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x15b0], edi
mov dword [ebp - 0x1598], eax
mov dword [ebp - 0x15a8], ecx
mov dword [ebp - 0x15ac], ebx
cmp dword [edi], ebx
je 0x405bcf
lea esi, [edi + 4]
mov dword [ebp - 0x1590], esi
cmp byte [esi], bl
je 0x405bcf
test eax, eax
je 0x405bcf
push 0x3e8
push dword [edi]
mov dword [ebp - 0x15a0], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4058a1
xor eax, eax
jmp 0x405bd1
test eax, eax
jne 0x4058af
mov dword [ebp - 0x15a0], 1
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x159c], esi
cmp esi, 0xffffffff
je 0x405bbe
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405bb2
cmp eax, 0x7a1200
jle 0x405972
mov ecx, dword [ebp - 0x1590]
lea edx, [ebp - 0x118]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x405903
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405914
mov ax, word [0x44ca1c]
mov word [edi], ax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1590]
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp - 0x1594]
mov esi, eax
mov dword [ebp - 0x159c], esi
cmp esi, 0xffffffff
je 0x405bbe
lea eax, [ebp - 0x152c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push str.__s_p___s______S___
lea ecx, [ebp - 0x15c4]
call fcn.0040444b
mov edx, dword [ebp - 0x1598]
mov ecx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1534], ebx
mov dword [ebp - 0x1530], 0xf
lea eax, [ecx + 1]
mov byte [ebp - 0x1544], bl
mov dword [ebp - 0x1598], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4059c5
sub ecx, dword [ebp - 0x1598]
push ecx
push edx
lea ecx, [ebp - 0x1544]
call fcn.0040874b
push ebx
push 0x44cd80
lea eax, [ebp - 0x15c4]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1544]
push eax
lea eax, [ebp - 0x158c]
push eax
call fcn.00403f5a
add esp, 0x14
lea ecx, [ebp - 0x1544]
mov byte [ebp - 4], 4
call fcn.004083d4
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x1590], str._d__02d__02d__02d:_02d:_02d._03d___x_:__.4096s_r_n
jne 0x405a2f
mov dword [ebp - 0x1590], str._d__02d__02d__02d:_02d:_02d._03d___x_:__.4096s
cmp dword [ebp - 0x1578], 0x10
lea eax, [ebp - 0x158c]
jb 0x405a44
mov eax, dword [ebp - 0x158c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x151e]
push eax
movzx eax, word [ebp - 0x1520]
push eax
movzx eax, word [ebp - 0x1522]
push eax
movzx eax, word [ebp - 0x1524]
push eax
movzx eax, word [ebp - 0x1526]
push eax
movzx eax, word [ebp - 0x152a]
push eax
movzx eax, word [ebp - 0x152c]
push eax
push dword [ebp - 0x1590]
lea eax, [ebp - 0x151c]
push 0xffffffffffffffff
push 0x1404
push eax
call fcn.0040905a
add esp, 0x34
lea ecx, [ebp - 0x1594]
push ebx
push ecx
push eax
lea eax, [ebp - 0x151c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x15a4]
test ecx, ecx
je 0x405b74
mov eax, dword [ebp - 0x15a8]
test eax, eax
jle 0x405b74
push eax
push ecx
lea ecx, [ebp - 0x1574]
mov dword [ebp - 0x1564], ebx
mov dword [ebp - 0x1560], 0xf
mov byte [ebp - 0x1574], bl
call fcn.0040874b
push ebx
push 0x44cd80
lea eax, [ebp - 0x15c4]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x1574]
push eax
lea eax, [ebp - 0x155c]
push eax
call fcn.00403f5a
add esp, 0x14
lea eax, [ebp - 0x155c]
cmp dword [ebp - 0x1548], 0x10
jb 0x405b32
mov eax, dword [ebp - 0x155c]
push ebx
lea ecx, [ebp - 0x1594]
push ecx
push dword [ebp - 0x154c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x1594]
push eax
push 2
push 0x44cde8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x155c]
call fcn.004083d4
lea ecx, [ebp - 0x1574]
call fcn.004083d4
xor ebx, ebx
lea ecx, [ebp - 0x158c]
inc ebx
call fcn.004083d4
lea ecx, [ebp - 0x15c4]
call fcn.004082ec
lea ecx, [ebp - 0x15b8]
call fcn.00404c2a
jmp 0x405bb2
cmp esi, 0xffffffff
je 0x405bbe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x15a0], 0
je 0x405bcf
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042345f
leave
ret 0x10