Function at 0x46fbe0
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
sub esp, 0x8ac
lea eax, [esp + 0x14]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push edi
push 0
push eax
push 0x104
push ecx
mov edi, edx
call esi
lea ecx, [esp + 0x20]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fc10
sub ecx, edx
je 0x46fc26
cmp byte [esp + ecx + 0x1f], 0x5c
jne 0x46fc26
mov byte [esp + ecx + 0x1f], al
push 0
lea eax, [esp + 0x12c]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x128]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fc42
sub ecx, edx
je 0x46fc5e
cmp byte [esp + ecx + 0x127], 0x5c
jne 0x46fc5e
mov byte [esp + ecx + 0x127], al
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x20]
push eax
call esi
cmp eax, 0xffffffff
je 0x46fc99
test al, 0x10
je 0x46fc99
lea ecx, [esp + 0x20]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46fc80
mov eax, dword [0x4db3d8]
mov dword [ecx], eax
mov al, byte [0x4db3dc]
mov byte [ecx + 4], al
lea eax, [esp + 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x46fccd
test al, 0x10
je 0x46fccd
lea ecx, [esp + 0x128]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46fcb4
mov eax, dword [0x4db3d8]
mov dword [ecx], eax
mov al, byte [0x4db3dc]
mov byte [ecx + 4], al
lea eax, [esp + 0x460]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x46fcfd
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 esi, dword [ebp + 0x10]
lea eax, [esp + 0x20]
push 0x5c
push eax
mov dword [esi], 0
call fcn.004b4423
push 0x5c
lea ebx, [eax + 1]
lea eax, [esp + 0x134]
mov dword [esp + 0x28], ebx
push eax
call fcn.004b4423
push 0x103
lea edi, [eax + 1]
lea eax, [esp + 0x137]
mov dword [esp + 0x20], edi
sub eax, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x36c]
push edi
push eax
call fcn.004b9880
mov eax, dword fs:[0x24]
add esp, 0x1c
mov byte [esp + 0x45b], 0
xor ebx, ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e498c]
sub eax, dword [0x4ea0c4]
cmp eax, dword [ecx + 0xb8]
jbe 0x46fdbe
push 0
push 0
push 0
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x46fdb3
mov eax, dword [esp + 0x14]
cmp dword [0x4e9a38], eax
jne 0x46fdb3
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ea0c4], eax
test byte [esp + 0x460], 0x10
jne 0x46ffa7
lea ecx, [esp + 0x48c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fdd6
sub ecx, edx
cmp ecx, dword [esp + 0x18]
jbe 0x46fdf0
mov dword [esi], 0x6f
jmp 0x46ffa6
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x48c]
mov eax, ecx
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x46fe00
lea eax, [esp + 0x358]
push 0x2a
push eax
call fcn.004b7be9
add esp, 8
test eax, eax
jne 0x46fe42
lea ecx, [esp + 0x358]
mov edx, edi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x46fe30
jmp 0x46ff36
lea eax, [esp + 0x5a0]
push eax
lea eax, [esp + 0x7b4]
push eax
push 0
lea eax, [esp + 0x498]
push 0
push eax
call fcn.004bb101
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x6c0]
push eax
push 0
lea eax, [esp + 0x378]
push 0
push eax
call fcn.004bb101
add esp, 0x28
cmp byte [esp + 0x5a0], 0x2e
jne 0x46fea4
lea ecx, [esp + 0x5a1]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x46fe98
cmp byte [esp + 0x250], 0x2e
jne 0x46fec1
lea ecx, [esp + 0x251]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x46feb5
push edi
lea edx, [esp + 0x6ac]
lea ecx, [esp + 0x7b4]
call fcn.0046ffe0
add esp, 4
cmp byte [esp + 0x5a0], 0
jne 0x46feec
cmp byte [esp + 0x250], 0
je 0x46ff36
push 0
push edi
call fcn.004b7be9
add esp, 8
mov edi, eax
cmp byte [esp + 0x250], 0
jne 0x46ff0d
mov word [esp + 0x250], 0x2a
lea esi, [edi + 1]
push esi
lea edx, [esp + 0x254]
lea ecx, [esp + 0x5a4]
call fcn.0046ffe0
add esp, 4
cmp byte [esi], 0
mov esi, dword [ebp + 0x10]
je 0x46ff32
mov byte [edi], 0x2e
mov edi, dword [esp + 0xc]
cmp byte [ebp + 0xc], 0
je 0x46ff7f
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x46ffa7
cmp byte [ebp + 8], al
je 0x46ff9e
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46ff9e
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x46ff9a
movzx eax, byte [ebp + 8]
xor eax, 1
push eax
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x46ffa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
inc ebx
lea eax, [esp + 0x460]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46fd66
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret