Function at 0x4025d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424169
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x437008]
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 edx, ebx
lea ecx, [ebp - 0xc8]
call fcn.00409340
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 0xc8]
sete byte [ebp - 0xbd]
or edi, 0xffffffff
test eax, eax
je 0x402640
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x402640
push ecx
call fcn.00410cbd
add esp, 4
cmp byte [ebp - 0xbd], 0
je 0x4026df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x402703
mov edx, ebx
lea ecx, [ebp - 0xc8]
call fcn.00409340
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], eax
test ecx, ecx
je 0x4026a3
lea edx, [ecx - 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
jne 0x4026a3
push edx
call fcn.00410cbd
mov eax, dword [ebp - 0xc4]
add esp, 4
test eax, eax
je 0x402703
mov edx, ebx
lea ecx, [ebp - 0xc4]
call fcn.00409340
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc4]
mov esi, eax
test ecx, ecx
je 0x4026db
add ecx, 0xfffffff4
lock xadd dword [ecx], edi
dec edi
jne 0x4026db
push ecx
call fcn.00410cbd
add esp, 4
test esi, esi
je 0x4026fb
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.00410a2e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.DeleteFile
lea ecx, [ebp - 0x74]
call fcn.00404f60
push esi
lea edx, [ebp - 0x74]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0040c750
add esp, 4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00404eb0
cmp esi, 0x20
je 0x402743
cmp esi, 0x21
jne 0x4027e9
push ecx
mov edx, ebx
lea ecx, [ebp - 0x44]
call fcn.00404610
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00404b50
test al, al
jne 0x4027dd
push str.The_file_is_locked_by_another_process:
lea ecx, [ebp - 0x28]
call fcn.00404d30
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00401550
push 0xa
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00405470
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.004053a0
add esp, 4
lea ecx, [ebp - 0x8c]
push eax
call fcn.00404ce0
lea ecx, [ebp - 0xa4]
call fcn.00401aa0
lea ecx, [ebp - 0xbc]
call fcn.00401aa0
lea ecx, [ebp - 0x5c]
call fcn.00401aa0
lea ecx, [ebp - 0x28]
call fcn.00401aa0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401aa0
push str.Cannot_delete_file__x.
lea ecx, [ebp - 0x5c]
call fcn.00404d30
mov edx, ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.004019e0
mov esi, eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 8
push eax
sub esp, 0x18
lea edx, [ebp - 0x5c]
mov ecx, esp
call fcn.00401550
push esi
mov edx, 0x42c914
lea ecx, [ebp - 0xa4]
call fcn.00405830
add esp, 0x1c
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004016e0
push 0x435ff8
lea eax, [ebp - 0x2c]
push eax
call fcn.00413c3e
int3