Function at 0x40ef60
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587cb7
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5f50fc]
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 ebx, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], esi
cmp eax, 0x11
jne 0x40f3b2
lea ecx, [ebp - 0x458]
mov dword [0x5fa1c0], 0
mov dword [0x5fa1c8], 0
call fcn.0043183e
push 0x5c
push dword [ebp - 0x430]
mov dword [ebp - 4], 0
call fcn.005688bd
add esp, 8
add eax, 2
mov ecx, ebx
push dword [edi]
push eax
push dword [esi]
push dword [esi + 8]
call fcn.00412170
mov esi, eax
mov dword [ebp - 0x42c], esi
test esi, esi
jne 0x40f020
lea ecx, [ebp - 0x458]
lea ebx, [eax + 2]
call fcn.004319ea
mov eax, ebx
jmp 0x40f538
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x40f556
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 1
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x40f560
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00568420
add esp, 0xc
cmp dword [esi + 0x20c], 0
je 0x40f10a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00568420
push dword [edi]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b3b9
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056d04f
lea ecx, [ebp - 0x218]
add esp, 0x20
lea eax, [ecx + eax*2]
cmp eax, ecx
je 0x40f0ed
nop dword [eax]
cmp word [eax], 0x5c
je 0x40f0e5
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x40f0d0
jmp 0x40f0ed
mov ecx, 0x5d
mov word [eax], cx
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0056b3b9
add esp, 0xc
lea eax, [ebp - 0x420]
jmp 0x40f110
lea eax, [esi + 0x620]
push eax
lea ecx, [esi + 0x418]
mov dword [ebp - 0x428], eax
push ecx
lea eax, [ebp - 0x424]
mov dword [ebp - 0x434], ecx
push str._s_s
push eax
call fcn.00406e60
add esp, 0x10
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x430]
push eax
call fcn.00406840
mov esi, dword [ebp - 0x424]
lea ecx, [ebp - 0x458]
push 0
push esi
call fcn.00431abd
lea ecx, [ebp - 0x458]
mov edi, eax
call fcn.00431a63
or ecx, 0xffffffff
test edi, edi
mov edi, dword [ebp - 0x430]
je 0x40f2c1
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 0xc38]
sub eax, 0
je 0x40f21d
sub eax, 1
je 0x40f213
sub eax, 1
jne 0x40f2c1
push esi
push 0x104
push 0x5f9fb8
call fcn.0056b3b9
add esp, 0xc
lea eax, [ebp - 0x428]
mov ecx, ebx
push dword [ebp - 0x428]
push dword [ebp - 0x434]
push eax
call fcn.00412660
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.00406840
mov edx, dword [ebp - 0x428]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f1fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x424]
mov dword [0x5fa1c8], 1
jmp 0x40f2c1
mov ebx, 2
jmp 0x40f369
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40f2ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40f2c1
push esi
push 0x104
push 0x5f9fb8
call fcn.0056b3b9
add esp, 0xc
lea eax, [ebp - 0x428]
mov ecx, ebx
push dword [ebp - 0x428]
push dword [ebp - 0x434]
push eax
call fcn.00412660
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.00406840
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.00406710
mov eax, dword [ebp - 0x438]
mov esi, dword [ebp - 0x424]
mov dword [0x5fa1c0], 1
mov dword [eax + 0x14], 1
jmp 0x40f2c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x434]
mov ecx, ebx
call fcn.00410260
mov eax, dword [ebp - 0x42c]
cmp word [eax + 0xa30], 0
lea ecx, [eax + 0xa30]
je 0x40f2fe
push ecx
add eax, 0x828
lea ecx, [ebx + 0xe4a0]
push eax
call fcn.0041c790
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 0xc40]
mov dword [0x5f9fb4], eax
mov eax, dword [ebp - 0x43c]
push esi
add eax, 0x12
push 0x104
push eax
call fcn.0056b3b9
mov eax, dword [ebp - 0x42c]
add esp, 0xc
test byte [ebx + 0x18], 2
mov eax, dword [eax + 0xc4c]
mov dword [0x5fa1c4], eax
je 0x40f361
add ebx, 0x4d8
push edi
mov ecx, ebx
call fcn.0041a6a0
test ebx, ebx
jne 0x40f34e
xor eax, eax
jmp 0x40f351
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
or ecx, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ecx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f387
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40f3a0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x458]
call fcn.004319ea
mov eax, ebx
jmp 0x40f538
cmp eax, 0x13
jne 0x40f536
cmp dword [0x5fa1c8], 0
je 0x40f49a
push dword [edi]
push 0x5f9fb8
call 0x411d20
cmp eax, 3
jne 0x40f490
push 0x20
push 0x5f9fb8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x5f9fb8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40f454
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40f4e7
push 0x5f9fb8
mov dword [esi + 0x14], 1
mov ecx, ebx
push dword [edi]
call fcn.00415d70
mov eax, dword [0x5f9fb4]
cmp eax, 1
je 0x40f4e7
push eax
push 0x5f9fb8
lea ecx, [ebx + 0xe4a0]
call fcn.0041c4e0
jmp 0x40f4e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5f9fb8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5f9fb8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [0x5f9fb4]
cmp eax, 1
je 0x40f4e7
push eax
push 0x5f9fb8
lea ecx, [ebx + 0xe4a0]
call fcn.0041c4e0
jmp 0x40f4e7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40f4e7
cmp dword [0x5fa1c0], 0
je 0x40f4c1
push 0x5f9fb8
push dword [edi]
call fcn.00415d70
mov eax, dword [0x5f9fb4]
cmp eax, 1
je 0x40f4d9
push eax
push 0x5f9fb8
jmp 0x40f4ce
mov eax, dword [0x5f9fb4]
cmp eax, 1
je 0x40f4d9
push eax
push dword [edi]
lea ecx, [ebx + 0xe4a0]
call fcn.0041c4e0
push dword [0x5fa1c4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc dword [esi + 0xc]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
cmp edx, edi
ja 0x40f536
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
imul eax, edx
xor edx, edx
div edi
add eax, dword [esi + 0x18]
mov dword [esi + 0x10], eax
test byte [ebx + 0x18], 2
je 0x40f536
add ebx, 0x4d8
push eax
mov ecx, ebx
call fcn.0041a780
test ebx, ebx
jne 0x40f523
xor eax, eax
jmp 0x40f526
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
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.005663a7
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
int3