Function at 0x472f30
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:
mov eax, 0x12fc
call fcn.004b9d80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x38]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472f60
sub eax, edx
sar eax, 1
je 0x472f82
cmp word [esp + eax*2 + 0x36], 0x5c
lea eax, [esp + eax*2 + 0x36]
jne 0x472f82
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x1310]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24c]
push eax
push 0x104
push ecx
call esi
lea eax, [esp + 0x248]
lea edx, [eax + 2]
jmp 0x472fb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472fb0
sub eax, edx
sar eax, 1
je 0x472fd8
cmp word [esp + eax*2 + 0x246], 0x5c
lea eax, [esp + eax*2 + 0x246]
jne 0x472fd8
xor edx, edx
mov word [eax], dx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
je 0x47301d
test al, 0x10
je 0x47301d
lea eax, [esp + 0x38]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x472ff5
mov ecx, dword [0x4db518]
mov edx, dword [0x4db51c]
mov dword [eax], ecx
mov cx, word [0x4db520]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea edx, [esp + 0x248]
push edx
call esi
cmp eax, 0xffffffff
je 0x473068
test al, 0x10
je 0x473068
lea eax, [esp + 0x248]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x473040
mov ecx, dword [0x4db518]
mov edx, dword [0x4db51c]
mov dword [eax], ecx
mov cx, word [0x4db520]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea edx, [esp + 0x458]
push edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x4730a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x131c]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12fc
ret
mov edx, dword [esp + 0x131c]
lea eax, [esp + 0xee8]
push eax
lea ecx, [esp + 0x10fc]
push ecx
mov dword [edx], 0
lea edx, [esp + 0xce0]
push edx
lea eax, [esp + 0xad4]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll__wsplitpath]
lea edx, [esp + 0xcec]
push edx
lea eax, [esp + 0xae0]
push eax
push str._s_s
mov esi, 0x105
lea edi, [esp + 0x8d8]
call fcn.0049e5c0
mov ecx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x104
add esp, 0x20
sub edi, eax
lea ebx, [esp + eax*2 + 0x8b8]
xor esi, esi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eace4]
mov edx, dword [0x4e4b24]
cmp eax, dword [edx + 0xd8]
jbe 0x473176
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 0x47316b
mov ecx, dword [esp + 0x10]
cmp dword [0x4ea158], ecx
jne 0x47316b
push 1
push 0xffffffffffffffff
call fcn.00401510
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4eace4], eax
test byte [esp + 0x458], 0x10
jne 0x473288
lea eax, [esp + 0x484]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473190
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x4731b5
mov edx, dword [esp + 0x131c]
mov dword [edx], 0x6f
jmp 0x473287
lea eax, [esp + 0x484]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4731c2
lea edx, [esp + 0x484]
push edx
lea ecx, [esp + 0x6ac]
lea edx, [esp + 0x24c]
call fcn.004732c0
add esp, 4
cmp byte [esp + 0x1318], 0
je 0x473255
lea eax, [esp + 0x6a8]
push eax
lea ecx, [esp + 0x8bc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x473288
cmp byte [esp + 0x1314], al
je 0x473248
lea edx, [esp + 0x6a8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x473248
lea eax, [esp + 0x6a8]
push eax
lea ecx, [esp + 0x8bc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x473288
call ebp
mov edx, dword [esp + 0x131c]
mov dword [edx], eax
jmp 0x473287
xor eax, eax
cmp byte [esp + 0x1314], al
lea ecx, [esp + 0x6a8]
sete al
lea edx, [esp + 0x8b8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x473288
call ebp
mov ecx, dword [esp + 0x131c]
mov dword [ecx], eax
inc esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x458]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x473122
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x12fc
ret