Function at 0x452540
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, 0x12f4
call fcn.004940f0
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 + 0x34]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452570
sub eax, edx
sar eax, 1
je 0x452592
cmp word [esp + eax*2 + 0x2e], 0x5c
lea eax, [esp + eax*2 + 0x2e]
jne 0x452592
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x1308]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x244]
push eax
push 0x104
push ecx
call esi
lea eax, [esp + 0x240]
lea edx, [eax + 2]
jmp 0x4525c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4525c0
sub eax, edx
sar eax, 1
je 0x4525e8
cmp word [esp + eax*2 + 0x23e], 0x5c
lea eax, [esp + eax*2 + 0x23e]
jne 0x4525e8
xor edx, edx
mov word [eax], dx
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [esp + 0x30]
push eax
call esi
cmp eax, 0xffffffff
je 0x45262d
test al, 0x10
je 0x45262d
lea eax, [esp + 0x30]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x452605
mov ecx, dword [0x4a69e4]
mov edx, dword [0x4a69e8]
mov dword [eax], ecx
mov cx, word [0x4a69ec]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea edx, [esp + 0x240]
push edx
call esi
cmp eax, 0xffffffff
je 0x452678
test al, 0x10
je 0x452678
lea eax, [esp + 0x240]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x452650
mov ecx, dword [0x4a69e4]
mov edx, dword [0x4a69e8]
mov dword [eax], ecx
mov cx, word [0x4a69ec]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea edx, [esp + 0x450]
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4526b0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [esp + 0x1314]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12f4
ret
mov edx, dword [esp + 0x1314]
lea eax, [esp + 0xee0]
push eax
lea ecx, [esp + 0x10f4]
push ecx
mov dword [edx], 0
lea edx, [esp + 0xcd8]
push edx
lea eax, [esp + 0xacc]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0048b2f2
lea edx, [esp + 0xce4]
push edx
lea eax, [esp + 0xad8]
push eax
push 0x4a0650
mov esi, 0x105
lea edi, [esp + 0x6c0]
call fcn.0046fd90
mov ebp, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, 0x104
add esp, 0x20
sub edi, eax
lea ebx, [esp + eax*2 + 0x6a0]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4c4a7c]
mov ecx, dword [0x4be40c]
cmp eax, dword [ecx + 0xd4]
jbe 0x45276e
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x452763
push 1
push 0xffffffffffffffff
call fcn.004012b0
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4c4a7c], eax
test byte [esp + 0x450], 0x10
jne 0x452886
lea eax, [esp + 0x47c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452786
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x4527ab
mov eax, dword [esp + 0x1314]
mov dword [eax], 0x6f
jmp 0x452885
lea eax, [esp + 0x47c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x4527c0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4527c0
lea edx, [esp + 0x47c]
push edx
lea ecx, [esp + 0x8b4]
lea edx, [esp + 0x244]
call fcn.004528c0
add esp, 4
cmp byte [esp + 0x1310], 0
je 0x452853
lea eax, [esp + 0x8b0]
push eax
lea ecx, [esp + 0x6a4]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x452886
cmp byte [esp + 0x130c], al
je 0x452846
lea edx, [esp + 0x8b0]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x452846
lea eax, [esp + 0x8b0]
push eax
lea ecx, [esp + 0x6a4]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x452886
call ebp
mov edx, dword [esp + 0x1314]
mov dword [edx], eax
jmp 0x452885
xor eax, eax
cmp byte [esp + 0x130c], al
lea ecx, [esp + 0x8b0]
sete al
lea edx, [esp + 0x6a0]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x452886
call ebp
mov ecx, dword [esp + 0x1314]
mov dword [ecx], eax
inc esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x450]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x452726
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x12f4
ret