Function at 0x4583c0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12f4
call fcn.004ab360
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 8]
push edi
push eax
lea eax, [esp + 0x34]
mov edi, edx
push eax
push 0x104
push ecx
call esi
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4583f4
sub ecx, edx
sar ecx, 1
je 0x458414
cmp word [esp + ecx*2 + 0x2e], 0x5c
jne 0x458414
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458433
sub ecx, edx
sar ecx, 1
je 0x458459
cmp word [esp + ecx*2 + 0x23e], 0x5c
jne 0x458459
xor eax, eax
mov word [esp + ecx*2 + 0x23e], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x30]
push eax
call esi
cmp eax, 0xffffffff
je 0x45849b
test al, 0x10
je 0x45849b
lea ecx, [esp + 0x30]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x458476
mov eax, dword [str..]
mov dword [ecx], eax
mov eax, dword [0x4d1404]
mov dword [ecx + 4], eax
mov ax, word [0x4d1408]
mov word [ecx + 8], ax
lea eax, [esp + 0x240]
push eax
call esi
cmp eax, 0xffffffff
je 0x4584e5
test al, 0x10
je 0x4584e5
lea ecx, [esp + 0x240]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4584c0
mov eax, dword [str..]
mov dword [ecx], eax
mov eax, dword [0x4d1404]
mov dword [ecx + 4], eax
mov ax, word [0x4d1408]
mov word [ecx + 8], ax
lea eax, [esp + 0x450]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x458513
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0xee0]
push eax
lea eax, [esp + 0x10f4]
push eax
lea eax, [esp + 0xac8]
mov dword [edi], 0
push eax
lea eax, [esp + 0xcdc]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0049ecf4
add esp, 0x14
lea eax, [esp + 0xac0]
push eax
lea eax, [esp + 0xcd4]
push eax
push str._s_s
lea eax, [esp + 0x8bc]
push 0x105
push eax
call fcn.004782d0
lea ecx, [esp + 0x8c4]
add esp, 0x14
lea ecx, [ecx + eax*2]
mov dword [esp + 0xc], ecx
mov ecx, 0x104
sub ecx, eax
xor esi, esi
mov dword [esp + 0x10], ecx
nop
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d89c0]
sub eax, dword [0x4debcc]
cmp eax, dword [ecx + 0xd8]
jbe 0x4585d9
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4585ce
mov edx, 1
or ecx, 0xffffffff
call fcn.004016e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4debcc], eax
test byte [esp + 0x450], 0x10
jne 0x4586c9
lea ecx, [esp + 0x47c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4585f1
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esp + 0x10]
jbe 0x458611
mov dword [edi], 0x6f
jmp 0x4586c8
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x47c]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x458620
lea eax, [esp + 0x6a0]
push eax
lea edx, [esp + 0x244]
lea ecx, [esp + 0x480]
call fcn.004586f0
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x45869d
lea eax, [esp + 0x6a0]
push eax
lea eax, [esp + 0x8b4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4586c9
cmp byte [ebp + 8], al
je 0x4586c0
lea eax, [esp + 0x6a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4586c0
lea eax, [esp + 0x6a0]
push eax
lea eax, [esp + 0x8b4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x4586bc
xor eax, eax
cmp byte [ebp + 8], al
sete al
push eax
lea eax, [esp + 0x6a4]
push eax
lea eax, [esp + 0x8b8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4586c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
inc esi
lea eax, [esp + 0x450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x458590
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret