Function at 0x451900
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 0x451930
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451930
sub ecx, edx
je 0x451946
cmp byte [esp + ecx + 0x37], 0x5c
jne 0x451946
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 0x451965
sub ecx, edx
je 0x451981
cmp byte [esp + ecx + 0x13f], 0x5c
jne 0x451981
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 0x4519b9
test al, 0x10
je 0x4519b9
lea ecx, [esp + 0x38]
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4519a0
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x4a5184]
mov byte [ecx + 4], al
lea eax, [esp + 0x140]
push eax
call esi
cmp eax, 0xffffffff
je 0x4519ed
test al, 0x10
je 0x4519ed
lea ecx, [esp + 0x140]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4519d4
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x4a5184]
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 0x451a23
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.00488888
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.00472ab0
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 [0x4ac1d8]
sub eax, dword [0x4b0fcc]
cmp eax, dword [ecx + 0xb8]
jbe 0x451aed
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 0x451ae2
mov edx, 1
or ecx, 0xffffffff
call fcn.004027d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b0fcc], eax
test byte [esp + 0x248], 0x10
jne 0x451bde
lea ecx, [esp + 0x274]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451b05
sub ecx, edx
cmp ecx, dword [esp + 0x18]
jbe 0x451b1f
mov dword [edi], 0x6f
jmp 0x451bdd
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 0x451b30
lea eax, [esp + 0x388]
push eax
lea edx, [esp + 0x144]
lea ecx, [esp + 0x278]
call fcn.00451c10
add esp, 4
cmp byte [esp + 0x9c0], 0
je 0x451bb2
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x451bde
cmp byte [esp + 0x9bc], al
je 0x451bd9
lea eax, [esp + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x451bd9
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x451bd5
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 0x451bde
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 0x451aa4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x9a8
ret