Function at 0x47e0e0
Capabilities:
Check for peb beingdebugged flag
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, 0x20ccc
call fcn.004cc6a0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0xcd4]
push edi
push 0
push eax
push 0x8000
push ecx
mov edi, edx
call esi
lea ecx, [esp + 0xcd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e117
sub ecx, edx
sar ecx, 1
je 0x47e13d
cmp word [esp + ecx*2 + 0xcd6], 0x5c
jne 0x47e13d
xor eax, eax
mov word [esp + ecx*2 + 0xcd6], ax
push 0
lea eax, [esp + 0x10cdc]
push eax
push 0x8000
push edi
call esi
lea ecx, [esp + 0x10cd8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e160
sub ecx, edx
sar ecx, 1
je 0x47e186
cmp word [esp + ecx*2 + 0x10cd6], 0x5c
jne 0x47e186
xor eax, eax
mov word [esp + ecx*2 + 0x10cd6], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0xcd8]
push eax
call esi
cmp eax, 0xffffffff
je 0x47e1d5
test al, 0x10
je 0x47e1d5
lea ecx, [esp + 0xcd8]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x47e1b0
mov eax, dword [0x4eecd0]
mov dword [ecx], eax
mov eax, dword [0x4eecd4]
mov dword [ecx + 4], eax
mov ax, word [0x4eecd8]
mov word [ecx + 8], ax
lea eax, [esp + 0x10cd8]
push eax
call esi
cmp eax, 0xffffffff
je 0x47e217
test al, 0x10
je 0x47e217
lea ecx, [esp + 0x10cd8]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x47e1f2
mov eax, dword [0x4eecd0]
mov dword [ecx], eax
mov eax, dword [0x4eecd4]
mov dword [ecx + 4], eax
mov ax, word [0x4eecd8]
mov word [ecx + 8], ax
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0xcdc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x47e24a
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 + 0xcd8]
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push eax
mov dword [edi], 0
call esi
push 0x5c
lea ebx, [eax + 2]
lea eax, [esp + 0x10ce4]
mov dword [esp + 0x2c], ebx
push eax
call esi
mov ecx, ebx
push 0x103
lea esi, [eax + 2]
lea eax, [esp + 0xcec]
mov dword [esp + 0x24], esi
sub ecx, eax
mov eax, 0x7fff
sar ecx, 1
sub eax, ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x264]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
add esp, 0x1c
mov word [esp + 0x456], ax
xor ebx, ebx
mov eax, dword fs:[0x24]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f8174]
sub eax, dword [0x4fd72c]
cmp eax, dword [ecx + 0xd8]
jbe 0x47e319
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x47e30e
mov eax, dword [esp + 0x18]
cmp dword [0x4fcbf0], eax
jne 0x47e30e
mov edx, 1
or ecx, 0xffffffff
call fcn.004018d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fd72c], eax
test byte [esp + 0x458], 0x10
jne 0x47e51d
lea ecx, [esp + 0x484]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e331
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esp + 0x1c]
jbe 0x47e351
mov dword [edi], 0x6f
jmp 0x47e51c
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x484]
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x47e360
lea eax, [esp + 0x250]
push 0x2a
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x47e3a9
lea ecx, [esp + 0x250]
mov edx, esi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x47e394
jmp 0x47e4a3
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0xacc]
push eax
push 0
lea eax, [esp + 0x490]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x8d0]
push eax
push 0
lea eax, [esp + 0x270]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
add esp, 0x28
cmp word [esp + 0x6a8], 0x2e
jne 0x47e40f
lea ecx, [esp + 0x6aa]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx - 4], ax
test ax, ax
jne 0x47e400
cmp word [esp + 0x40], 0x2e
jne 0x47e42f
lea eax, [esp + 0x42]
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax - 4], cx
test cx, cx
jne 0x47e420
push esi
lea edx, [esp + 0x8bc]
lea ecx, [esp + 0xacc]
call fcn.0047e550
add esp, 4
cmp word [esp + 0x6a8], 0
jne 0x47e459
cmp word [esp + 0x40], 0
je 0x47e4a3
push 0
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov edi, eax
cmp word [esp + 0x40], 0
jne 0x47e477
mov dword [esp + 0x40], 0x2a
lea esi, [edi + 2]
push esi
lea edx, [esp + 0x44]
lea ecx, [esp + 0x6ac]
call fcn.0047e550
add esp, 4
cmp word [esi], 0
mov esi, dword [esp + 0x10]
je 0x47e4a0
mov eax, 0x2e
mov word [edi], ax
mov edi, dword [ebp + 0x10]
cmp byte [ebp + 0xc], 0
je 0x47e4f2
lea eax, [esp + 0x10cd8]
push eax
lea eax, [esp + 0xcdc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x47e51d
cmp byte [ebp + 8], al
je 0x47e514
lea eax, [esp + 0x10cd8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x47e514
lea eax, [esp + 0x10cd8]
push eax
lea eax, [esp + 0xcdc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x47e510
movzx eax, byte [ebp + 8]
xor eax, 1
push eax
lea eax, [esp + 0x10cdc]
push eax
lea eax, [esp + 0xce0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47e51d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
inc ebx
lea eax, [esp + 0x458]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47e2c4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret