Function at 0x47b990
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 0x47b9c0
sub ecx, edx
je 0x47b9d6
cmp byte [esp + ecx + 0x1f], 0x5c
jne 0x47b9d6
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 0x47b9f2
sub ecx, edx
je 0x47ba0e
cmp byte [esp + ecx + 0x127], 0x5c
jne 0x47ba0e
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 0x47ba49
test al, 0x10
je 0x47ba49
lea ecx, [esp + 0x20]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x47ba30
mov eax, dword [0x4ceca0]
mov dword [ecx], eax
mov al, byte [0x4ceca4]
mov byte [ecx + 4], al
lea eax, [esp + 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x47ba7d
test al, 0x10
je 0x47ba7d
lea ecx, [esp + 0x128]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x47ba64
mov eax, dword [0x4ceca0]
mov dword [ecx], eax
mov al, byte [0x4ceca4]
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 0x47baad
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 [0x4d70f4]
sub eax, dword [0x4dc0ec]
cmp eax, dword [ecx + 0xb8]
jbe 0x47bb6f
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 0x47bb64
mov eax, dword [esp + 0x14]
cmp dword [0x4dba60], eax
jne 0x47bb64
mov edx, 1
or ecx, 0xffffffff
call fcn.00401870
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dc0ec], eax
test byte [esp + 0x460], 0x10
jne 0x47bd63
lea ecx, [esp + 0x48c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47bb87
sub ecx, edx
cmp ecx, dword [esp + 0x18]
jbe 0x47bba1
mov dword [edi], 0x6f
jmp 0x47bd62
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 0x47bbb0
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 0x47bbf3
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 0x47bbe1
jmp 0x47bcf2
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 0x47bc5c
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 0x47bc50
cmp byte [esp + 0x250], 0x2e
jne 0x47bc7c
lea ecx, [esp + 0x251]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 2], al
test al, al
jne 0x47bc70
push esi
lea edx, [esp + 0x6ac]
lea ecx, [esp + 0x7b4]
call fcn.0047bd90
add esp, 4
cmp byte [esp + 0x5a0], 0
jne 0x47bca7
cmp byte [esp + 0x250], 0
je 0x47bcf2
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 0x47bcc9
mov word [esp + 0x250], 0x2a
lea esi, [edi + 1]
push esi
lea edx, [esp + 0x254]
lea ecx, [esp + 0x5a4]
call fcn.0047bd90
add esp, 4
cmp byte [esi], 0
mov esi, dword [esp + 0xc]
je 0x47bcef
mov byte [edi], 0x2e
mov edi, dword [ebp + 0x10]
cmp byte [ebp + 0xc], 0
je 0x47bd3b
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x47bd63
cmp byte [ebp + 8], al
je 0x47bd5a
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x47bd5a
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x47bd56
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 0x47bd63
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 0x47bb17
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