Function at 0x471490
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, 0x12fc
call fcn.004b7170
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 8]
push edi
push eax
lea eax, [esp + 0x3c]
mov edi, edx
push eax
push 0x104
push ecx
call esi
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4714c4
sub ecx, edx
sar ecx, 1
je 0x4714e4
cmp word [esp + ecx*2 + 0x36], 0x5c
jne 0x4714e4
xor eax, eax
mov word [esp + ecx*2 + 0x36], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24c]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x248]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471503
sub ecx, edx
sar ecx, 1
je 0x471529
cmp word [esp + ecx*2 + 0x246], 0x5c
jne 0x471529
xor eax, eax
mov word [esp + ecx*2 + 0x246], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
je 0x47156b
test al, 0x10
je 0x47156b
lea ecx, [esp + 0x38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x471546
mov eax, dword [0x4d8810]
mov dword [ecx], eax
mov eax, dword [0x4d8814]
mov dword [ecx + 4], eax
mov ax, word [0x4d8818]
mov word [ecx + 8], ax
lea eax, [esp + 0x248]
push eax
call esi
cmp eax, 0xffffffff
je 0x4715b5
test al, 0x10
je 0x4715b5
lea ecx, [esp + 0x248]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x471590
mov eax, dword [0x4d8810]
mov dword [ecx], eax
mov eax, dword [0x4d8814]
mov dword [ecx + 4], eax
mov ax, word [0x4d8818]
mov word [ecx + 8], ax
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4715e3
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 + 0xee8]
push eax
lea eax, [esp + 0x10fc]
push eax
lea eax, [esp + 0xad0]
mov dword [edi], 0
push eax
lea eax, [esp + 0xce4]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
add esp, 0x14
lea eax, [esp + 0xac8]
push eax
lea eax, [esp + 0xcdc]
push eax
push str._s_s
lea eax, [esp + 0x8c4]
push 0x105
push eax
call fcn.0049c210
lea ecx, [esp + 0x8cc]
add esp, 0x14
lea ecx, [ecx + eax*2]
mov dword [esp + 0x14], ecx
mov ecx, 0x104
sub ecx, eax
mov eax, dword fs:[0x24]
mov dword [esp + 0x10], ecx
xor esi, esi
mov dword [esp + 0xc], eax
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e211c]
sub eax, dword [0x4e786c]
cmp eax, dword [ecx + 0xd8]
jbe 0x4716c5
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4716ba
mov eax, dword [esp + 0xc]
cmp dword [0x4e6ce0], eax
jne 0x4716ba
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e786c], eax
test byte [esp + 0x458], 0x10
jne 0x4717b8
lea ecx, [esp + 0x484]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4716e0
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esp + 0x10]
jbe 0x471700
mov dword [edi], 0x6f
jmp 0x4717b7
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x484]
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x471710
lea eax, [esp + 0x6a8]
push eax
lea edx, [esp + 0x24c]
lea ecx, [esp + 0x488]
call fcn.004717e0
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x47178d
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x8bc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4717b8
cmp byte [ebp + 8], al
je 0x4717af
lea eax, [esp + 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4717af
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x8bc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x4717ab
movzx eax, byte [ebp + 8]
xor eax, 1
push eax
lea eax, [esp + 0x6ac]
push eax
lea eax, [esp + 0x8c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4717b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
inc esi
lea eax, [esp + 0x458]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x471670
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret