Function at 0x402990
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422298
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42c050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x58], dl
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
mov edx, dword [ebp - 0x58]
push edx
lea edi, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.00404790
mov edi, eax
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x402a5c
cmp dword [ebp - 0x1c], 8
jb 0x402a0d
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp dword [edi + 0x14], 8
jae 0x402a3a
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x30]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x402a41
mov edx, dword [edi]
mov dword [ebp - 0x30], edx
mov dword [edi], ebx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x1c], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x38], 8
jb 0x402a72
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x402a7e
lea eax, [ebp - 0x30]
push ebx
push eax
mov eax, dword [ebp - 0x64]
call fcn.00404e50
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
je 0x402b67
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x402aa3
lea eax, [ebp - 0x30]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402b67
cmp byte [ebp - 0x58], bl
je 0x402aca
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.00403530
jmp 0x402ad9
mov ebx, dword [ebp - 0x60]
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.004037f0
xor ebx, ebx
mov dword [ebp - 0x58], eax
cmp eax, ebx
jne 0x402b6e
mov edi, dword [ebp - 0x5c]
push esi
call fcn.00403940
test eax, eax
jne 0x402ba7
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
lea edi, [eax + 1]
mov word [ebp - 0x64], ax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
push eax
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
call fcn.00401b90
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x54]
mov edx, esi
mov byte [ebp - 4], 2
call fcn.00407f20
push eax
lea edx, [ebp - 0x68]
push edx
push esi
call fcn.00407830
cmp dword [ebp - 0x40], 0x10
jb 0x402b5b
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x402ba7
mov dword [ebp - 0x58], 0x103
cmp dword [ebp - 0x20], ebx
je 0x402ba7
mov eax, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x402b83
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x402ba7
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x402b9d
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x402bba
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d5b4
mov esp, ebp
pop ebp
ret 0xc