Function at 0x46d4f0
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 0x46d520
sub ecx, edx
je 0x46d536
cmp byte [esp + ecx + 0x1f], 0x5c
jne 0x46d536
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 0x46d552
sub ecx, edx
je 0x46d56e
cmp byte [esp + ecx + 0x127], 0x5c
jne 0x46d56e
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 0x46d5a9
test al, 0x10
je 0x46d5a9
lea ecx, [esp + 0x20]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46d590
mov eax, dword [0x4dfcf0]
mov dword [ecx], eax
mov al, byte [0x4dfcf4]
mov byte [ecx + 4], al
lea eax, [esp + 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x46d5dd
test al, 0x10
je 0x46d5dd
lea ecx, [esp + 0x128]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46d5c4
mov eax, dword [0x4dfcf0]
mov dword [ecx], eax
mov al, byte [0x4dfcf4]
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 0x46d60d
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.004be03b
push 0x5c
lea ebx, [eax + 1]
lea eax, [esp + 0x134]
mov dword [esp + 0x28], ebx
push eax
call fcn.004be03b
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.004ba990
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 [0x4e88cc]
sub eax, dword [0x4ede7c]
cmp eax, dword [ecx + 0xb8]
jbe 0x46d6ce
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 0x46d6c3
mov eax, dword [esp + 0x14]
cmp dword [0x4ed7f8], eax
jne 0x46d6c3
mov edx, 1
or ecx, 0xffffffff
call fcn.00401730
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ede7c], eax
test byte [esp + 0x460], 0x10
jne 0x46d8b7
lea ecx, [esp + 0x48c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d6e6
sub ecx, edx
cmp ecx, dword [esp + 0x18]
jbe 0x46d700
mov dword [esi], 0x6f
jmp 0x46d8b6
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 0x46d710
lea eax, [esp + 0x358]
push 0x2a
push eax
call fcn.004b87b6
add esp, 8
test eax, eax
jne 0x46d752
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 0x46d740
jmp 0x46d846
lea eax, [esp + 0x5a0]
push eax
lea eax, [esp + 0x7b4]
push eax
push 0
lea eax, [esp + 0x498]
push 0
push eax
call fcn.004bf710
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x6c0]
push eax
push 0
lea eax, [esp + 0x378]
push 0
push eax
call fcn.004bf710
add esp, 0x28
cmp byte [esp + 0x5a0], 0x2e
jne 0x46d7b4
lea ecx, [esp + 0x5a1]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x46d7a8
cmp byte [esp + 0x250], 0x2e
jne 0x46d7d1
lea ecx, [esp + 0x251]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x46d7c5
push edi
lea edx, [esp + 0x6ac]
lea ecx, [esp + 0x7b4]
call fcn.0046d8f0
add esp, 4
cmp byte [esp + 0x5a0], 0
jne 0x46d7fc
cmp byte [esp + 0x250], 0
je 0x46d846
push 0
push edi
call fcn.004b87b6
add esp, 8
mov edi, eax
cmp byte [esp + 0x250], 0
jne 0x46d81d
mov word [esp + 0x250], 0x2a
lea esi, [edi + 1]
push esi
lea edx, [esp + 0x254]
lea ecx, [esp + 0x5a4]
call fcn.0046d8f0
add esp, 4
cmp byte [esi], 0
mov esi, dword [ebp + 0x10]
je 0x46d842
mov byte [edi], 0x2e
mov edi, dword [esp + 0xc]
cmp byte [ebp + 0xc], 0
je 0x46d88f
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x46d8b7
cmp byte [ebp + 8], al
je 0x46d8ae
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46d8ae
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x46d8aa
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 0x46d8b7
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 0x46d676
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