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

Disassembly:
push 0xffffffffffffffff
push 0x5a5d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x628100]
push ebx
push ebp
mov ebx, 1
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], eax
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebp
mov eax, dword [esi + 0x2c]
xor ecx, ecx
cmp eax, ebp
mov byte [esp + 0x30], bl
mov dword [esi + 0x44], eax
mov dword [esp + 0x14], ecx
jle 0x4149ca
test ebx, ebx
je 0x4149ca
mov eax, dword [esi + 0x28]
test byte [eax + ebp + 8], 0x10
jne 0x4149b3
lea edi, [esi + 0x24]
push ecx
mov ecx, edi
call fcn.0040de90
mov ecx, eax
call fcn.0040de80
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0058f454
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x48]
mov ecx, dword [esp + 0x14]
push eax
inc edx
push ecx
mov ecx, edi
mov dword [esi + 0x48], edx
call fcn.0040de90
mov ecx, eax
call fcn.0040de80
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0058f454
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00414df0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.0058f818
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.0058f6df
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0058f454
mov ecx, esi
call fcn.00414a60
test eax, eax
jne 0x414884
mov dword [esp + 0x10], eax
xor ebx, ebx
mov ecx, esi
call fcn.00414ad0
mov ecx, esi
call fcn.00414b50
test eax, eax
je 0x41489c
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x4149b3
cmp eax, 0xffffffff
jne 0x4148bf
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x4148fc
test al, 6
je 0x4148d8
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4148d8
mov eax, dword [esi + 0x44]
dec eax
xor ebx, ebx
mov dword [esi + 0x44], eax
jmp 0x4149b3
mov eax, dword [esi + 0x28]
push 0x80
mov eax, dword [eax + ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x414919
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x414919
xor ebx, ebx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Delete_failed
call fcn.0058f74d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x4149b3
mov eax, dword [esi + 0x28]
mov eax, dword [eax + ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov dword [esp + 0x28], esp
mov ecx, esp
jne 0x414974
push str.Delete_failed
call fcn.0058f74d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x414954
xor ebx, ebx
lea edi, [esi + 0x20]
push 0x601dd4
mov ecx, edi
call fcn.0058fabb
mov eax, dword [esi + 0x28]
lea ecx, [eax + ebp + 4]
push ecx
mov ecx, edi
call fcn.0058faf7
jmp 0x4149b3
push str.Delete_successful
call fcn.0058f74d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4149b3
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040de90
mov ecx, eax
call fcn.0040de80
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0058f454
mov ecx, esi
call fcn.00414b80
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x2c]
inc ecx
add ebp, 0x38
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4147d2
mov eax, dword [esi + 0x2c]
xor edi, edi
test eax, eax
jle 0x414a12
xor ebp, ebp
test ebx, ebx
je 0x414a12
mov ecx, dword [esi + 0x28]
test byte [ecx + ebp + 8], 0x10
je 0x414a07
push edi
lea ecx, [esi + 0x24]
call fcn.0040de90
mov ecx, eax
call fcn.0040de80
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0058f454
mov ecx, esi
call fcn.00414cb0
mov eax, dword [esi + 0x2c]
inc edi
add ebp, 0x38
cmp edi, eax
jl 0x4149d5
push 0x601dd4
lea ecx, [esi + 0x20]
call fcn.0058c7c2
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0058f6df
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret