Function at 0x46d7e0
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 0x46d810
sub ecx, edx
je 0x46d826
cmp byte [esp + ecx + 0x1f], 0x5c
jne 0x46d826
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 0x46d842
sub ecx, edx
je 0x46d85e
cmp byte [esp + ecx + 0x127], 0x5c
jne 0x46d85e
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 0x46d899
test al, 0x10
je 0x46d899
lea ecx, [esp + 0x20]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46d880
mov eax, dword [0x4c03f8]
mov dword [ecx], eax
mov al, byte [0x4c03fc]
mov byte [ecx + 4], al
lea eax, [esp + 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x46d8cd
test al, 0x10
je 0x46d8cd
lea ecx, [esp + 0x128]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46d8b4
mov eax, dword [0x4c03f8]
mov dword [ecx], eax
mov al, byte [0x4c03fc]
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 0x46d8fd
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 + 0x20]
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
push 0x5c
push eax
mov dword [edi], 0
call esi
push 0x5c
lea ebx, [eax + 1]
lea eax, [esp + 0x134]
mov dword [esp + 0x28], ebx
push eax
call esi
push 0x103
lea esi, [eax + 1]
lea eax, [esp + 0x137]
mov dword [esp + 0x20], esi
sub eax, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x36c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
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 [0x4c8024]
sub eax, dword [0x4cce94]
cmp eax, dword [ecx + 0xb8]
jbe 0x46d9bf
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 0x46d9b4
mov eax, dword [esp + 0x14]
cmp dword [0x4cc810], eax
jne 0x46d9b4
mov edx, 1
or ecx, 0xffffffff
call fcn.00401730
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cce94], eax
test byte [esp + 0x460], 0x10
jne 0x46dbb3
lea ecx, [esp + 0x48c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d9d7
sub ecx, edx
cmp ecx, dword [esp + 0x18]
jbe 0x46d9f1
mov dword [edi], 0x6f
jmp 0x46dbb2
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x48c]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x46da00
lea eax, [esp + 0x358]
push 0x2a
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
jne 0x46da43
lea ecx, [esp + 0x358]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x46da31
jmp 0x46db42
lea eax, [esp + 0x5a0]
push eax
lea eax, [esp + 0x7b4]
push eax
push 0
lea eax, [esp + 0x498]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x6c0]
push eax
push 0
lea eax, [esp + 0x378]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
add esp, 0x28
cmp byte [esp + 0x5a0], 0x2e
jne 0x46daac
lea ecx, [esp + 0x5a1]
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x46daa0
cmp byte [esp + 0x250], 0x2e
jne 0x46dacc
lea ecx, [esp + 0x251]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x46dac0
push esi
lea edx, [esp + 0x6ac]
lea ecx, [esp + 0x7b4]
call fcn.0046dbe0
add esp, 4
cmp byte [esp + 0x5a0], 0
jne 0x46daf7
cmp byte [esp + 0x250], 0
je 0x46db42
push 0
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
mov edi, eax
cmp byte [esp + 0x250], 0
jne 0x46db19
mov word [esp + 0x250], 0x2a
lea esi, [edi + 1]
push esi
lea edx, [esp + 0x254]
lea ecx, [esp + 0x5a4]
call fcn.0046dbe0
add esp, 4
cmp byte [esi], 0
mov esi, dword [esp + 0xc]
je 0x46db3f
mov byte [edi], 0x2e
mov edi, dword [ebp + 0x10]
cmp byte [ebp + 0xc], 0
je 0x46db8b
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x46dbb3
cmp byte [ebp + 8], al
je 0x46dbaa
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46dbaa
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x46dba6
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 0x46dbb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
inc ebx
lea eax, [esp + 0x460]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46d967
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