Function at 0x471c70
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.004b7400
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 0x471ca4
sub ecx, edx
sar ecx, 1
je 0x471cc4
cmp word [esp + ecx*2 + 0x36], 0x5c
jne 0x471cc4
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 0x471ce3
sub ecx, edx
sar ecx, 1
je 0x471d09
cmp word [esp + ecx*2 + 0x246], 0x5c
jne 0x471d09
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 0x471d4b
test al, 0x10
je 0x471d4b
lea ecx, [esp + 0x38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x471d26
mov eax, dword [0x4d97d0]
mov dword [ecx], eax
mov eax, dword [0x4d97d4]
mov dword [ecx + 4], eax
mov ax, word [0x4d97d8]
mov word [ecx + 8], ax
lea eax, [esp + 0x248]
push eax
call esi
cmp eax, 0xffffffff
je 0x471d95
test al, 0x10
je 0x471d95
lea ecx, [esp + 0x248]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x471d70
mov eax, dword [0x4d97d0]
mov dword [ecx], eax
mov eax, dword [0x4d97d4]
mov dword [ecx + 4], eax
mov ax, word [0x4d97d8]
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 0x471dc3
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.0049c640
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 [0x4e30fc]
sub eax, dword [0x4e8864]
cmp eax, dword [ecx + 0xd8]
jbe 0x471ea5
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 0x471e9a
mov eax, dword [esp + 0xc]
cmp dword [0x4e7484], eax
jne 0x471e9a
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e8864], eax
test byte [esp + 0x458], 0x10
jne 0x471f98
lea ecx, [esp + 0x484]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471ec0
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esp + 0x10]
jbe 0x471ee0
mov dword [edi], 0x6f
jmp 0x471f97
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 0x471ef0
lea eax, [esp + 0x6a8]
push eax
lea edx, [esp + 0x24c]
lea ecx, [esp + 0x488]
call fcn.00471fc0
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x471f6d
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x8bc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x471f98
cmp byte [ebp + 8], al
je 0x471f8f
lea eax, [esp + 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x471f8f
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x8bc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x471f8b
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 0x471f98
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 0x471e50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret