Function at 0x415c10
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x604990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x69cfe8]
push ebx
push ebp
mov ebx, 1
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebp
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x30], bl
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x2c]
cmp eax, ebp
jle 0x415e72
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x415e72
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
test byte [ecx + eax + 8], 0x10
jne 0x415e5b
lea edi, [esi + 0x24]
push ebp
mov ecx, edi
call fcn.0040eb60
mov ecx, eax
call fcn.0040eb50
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005eb756
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x1c]
inc edx
push eax
push ebp
mov ecx, edi
mov dword [esi + 0x48], edx
call fcn.0040eb60
mov ecx, eax
call fcn.0040eb50
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.005eb756
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00416320
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.005ebb1a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005eb9e1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005eb756
mov ecx, esi
call fcn.00415f90
test eax, eax
jne 0x415d15
mov dword [esp + 0x14], eax
xor ebx, ebx
mov ecx, esi
call fcn.00416000
mov ecx, esi
call fcn.00416080
test eax, eax
je 0x415d2d
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x415e5b
cmp eax, 0xffffffff
jne 0x415d5b
xor ebx, ebx
push ecx
mov dword [esp + 0x18], ebx
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x415da3
test al, 6
je 0x415d74
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x415d74
mov eax, dword [esi + 0x44]
dec eax
xor ebx, ebx
mov dword [esi + 0x44], eax
jmp 0x415e5b
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
push 0x80
mov eax, dword [ecx + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x415db9
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x415db9
push ecx
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Delete_failed
call fcn.005eba4f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x415e5b
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x415e1c
mov dword [esp + 0x28], esp
push str.Delete_failed
call fcn.005eba4f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], 0
test eax, eax
jne 0x415df8
xor ebx, ebx
lea edi, [esi + 0x20]
push 0x673e38
mov ecx, edi
call fcn.005ebdbd
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 4]
mov ecx, edi
push edx
call fcn.005ebdf9
jmp 0x415e5b
mov dword [esp + 0x28], esp
push str.Delete_successful
call fcn.005eba4f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415e5b
push ebp
mov ecx, edi
call fcn.0040eb60
mov ecx, eax
call fcn.0040eb50
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005eb756
mov ecx, esi
call fcn.004160b0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x2c]
inc ebp
add ecx, 0x38
cmp ebp, eax
mov dword [esp + 0x10], ecx
jl 0x415c63
mov eax, dword [esi + 0x2c]
xor edi, edi
cmp eax, edi
jle 0x415f44
mov dword [esp + 0x10], edi
test ebx, ebx
je 0x415f44
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x10]
test byte [ecx + edx + 8], 0x10
je 0x415f2d
mov eax, dword [esi + 0x48]
lea ebp, [esi + 0x24]
inc eax
mov ecx, ebp
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x1c]
push eax
push edi
call fcn.0040eb60
mov ecx, eax
call fcn.0040eb50
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.005eb756
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00416320
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x38], 3
call fcn.005eb756
mov ecx, esi
call fcn.00415f90
test eax, eax
jne 0x415efc
mov dword [esp + 0x14], eax
xor ebx, ebx
jmp 0x415f1f
push edi
mov ecx, ebp
call fcn.0040eb60
mov ecx, eax
call fcn.0040eb50
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005eb756
mov ecx, esi
call fcn.004161e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005eb9e1
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x2c]
inc edi
add ecx, 0x38
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x415e83
push 0x673e38
lea ecx, [esi + 0x20]
call fcn.005e809b
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.005eb9e1
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret