Function at 0x450420
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:
sub esp, 0x9a8
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
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 + 1]
jmp 0x450450
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450450
sub ecx, edx
je 0x450466
cmp byte [esp + ecx + 0x37], 0x5c
jne 0x450466
mov byte [esp + ecx + 0x37], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x144]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x140]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450485
sub ecx, edx
je 0x4504a1
cmp byte [esp + ecx + 0x13f], 0x5c
jne 0x4504a1
mov byte [esp + ecx + 0x13f], al
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x38]
push eax
call esi
cmp eax, 0xffffffff
je 0x4504d9
test al, 0x10
je 0x4504d9
lea ecx, [esp + 0x38]
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4504c0
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x4a2e70]
mov byte [ecx + 4], al
lea eax, [esp + 0x140]
push eax
call esi
cmp eax, 0xffffffff
je 0x45050d
test al, 0x10
je 0x45050d
lea ecx, [esp + 0x140]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4504f4
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x4a2e70]
mov byte [ecx + 4], al
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x450543
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x9c4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a8
ret
mov edi, dword [esp + 0x9c4]
lea eax, [esp + 0x7a8]
push eax
lea eax, [esp + 0x8b4]
push eax
lea eax, [esp + 0x6a8]
mov dword [edi], 0
push eax
lea eax, [esp + 0x5a4]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004873a8
lea eax, [esp + 0x6b4]
push eax
lea eax, [esp + 0x5b0]
push eax
push str._s_s
lea eax, [esp + 0x4b0]
push 0x105
push eax
call fcn.004715d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x4b8]
add ecx, eax
add esp, 0x28
mov dword [esp + 0x14], ecx
mov ecx, 0x104
sub ecx, eax
xor esi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4aa1d8]
sub eax, dword [0x4aefdc]
cmp eax, dword [ecx + 0xb8]
jbe 0x45060d
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x450602
mov edx, 1
or ecx, 0xffffffff
call fcn.00401790
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aefdc], eax
test byte [esp + 0x248], 0x10
jne 0x4506fe
lea ecx, [esp + 0x274]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450625
sub ecx, edx
cmp ecx, dword [esp + 0x18]
jbe 0x45063f
mov dword [edi], 0x6f
jmp 0x4506fd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x274]
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x450650
lea eax, [esp + 0x388]
push eax
lea edx, [esp + 0x144]
lea ecx, [esp + 0x278]
call fcn.00450730
add esp, 4
cmp byte [esp + 0x9c0], 0
je 0x4506d2
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4506fe
cmp byte [esp + 0x9bc], al
je 0x4506f9
lea eax, [esp + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4506f9
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x4506f5
xor eax, eax
cmp byte [esp + 0x9bc], al
sete al
push eax
lea eax, [esp + 0x38c]
push eax
lea eax, [esp + 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4506fe
call ebp
mov dword [edi], eax
inc esi
lea eax, [esp + 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4505c4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x9a8
ret