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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ef70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x60], cl
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
push dword [ebp - 0x60]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404d00
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4032b6
cmp dword [ebp - 0x14], 8
jb 0x403259
push dword [ebp - 0x28]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x40328c
mov eax, dword [esi + 0x10]
inc eax
je 0x403297
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x403297
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x2c], 8
jb 0x4032c4
push dword [ebp - 0x40]
call ebx
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call fcn.004028a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4033b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4033b0
cmp byte [ebp - 0x50], 0
lea eax, [ebp - 0x28]
push dword [ebp - 0x4c]
push eax
je 0x40331c
call fcn.00403d90
jmp 0x403323
mov ecx, edi
call fcn.00404020
mov esi, eax
test esi, esi
jne 0x4033b5
push dword [ebp - 0x58]
mov ecx, edi
call fcn.00404130
test eax, eax
jne 0x4033eb
push 0xffffffffffffffff
push dword [edi + 0x10]
mov word [ebp - 0x50], ax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
push dword [ebp - 0x58]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
call fcn.004019d0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00407e80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.00407eb0
cmp dword [ebp - 0x34], 0x10
jb 0x4033a5
push dword [ebp - 0x48]
call ebx
add esp, 4
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4033eb
mov esi, 0x103
cmp dword [ebp - 0x18], 0
je 0x4033eb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR120.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x4033eb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR120.dll__wremove]
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x4033f9
push dword [ebp - 0x28]
call ebx
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret 0x10