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

Disassembly:
mov eax, 0x4dd8a4
call fcn.004aef44
sub esp, 0x1c
push ebx
push esi
push edi
push 1
pop eax
mov esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x51f03c]
mov dword [ebp - 0x24], eax
xor edi, edi
push 0x523a30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.004c5f18
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov dword [ebp - 0x18], edi
jle 0x445ed9
xor ebx, ebx
cmp dword [ebp - 0x10], edi
je 0x445ed9
mov eax, dword [esi + 0x28]
test byte [ebx + eax + 8], 0x10
jne 0x445ec7
push dword [ebp - 0x18]
lea ecx, [esi + 0x24]
call fcn.0040d862
mov ecx, eax
call fcn.0040b679
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push dword [esi + 0x1c]
inc dword [esi + 0x48]
lea ecx, [esi + 0x24]
push dword [ebp - 0x18]
call fcn.0040d862
mov ecx, eax
call fcn.0040b679
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00446290
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004c5fe3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004c5eaa
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.00445fd4
cmp eax, edi
jne 0x445d85
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov ecx, esi
call fcn.00446021
mov ecx, esi
call fcn.00446084
test eax, eax
je 0x445d9d
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x28]
push dword [ebx + eax + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp dword [ebp - 0x10], edi
je 0x445ec7
cmp eax, 0xffffffff
jne 0x445dda
push ecx
mov dword [ebp - 0x14], edi
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Delete_failed
mov dword [ebp - 0x10], edi
call fcn.004c5f18
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x445ec7
test al, 6
je 0x445de9
cmp dword [esi + 0x10], edi
jne 0x445de9
dec dword [esi + 0x44]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], edi
je 0x445ec7
mov eax, dword [esi + 0x28]
push 0x80
mov eax, dword [ebx + eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x445e2b
cmp dword [esi + 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x445e2b
push ecx
mov dword [ebp - 0x10], edi
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Delete_failed
call fcn.004c5f18
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x10], edi
je 0x445ec7
mov eax, dword [esi + 0x28]
push dword [ebx + eax + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x445e89
mov dword [ebp - 0x28], esp
push str.Delete_failed
call fcn.004c5f18
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x445e67
mov dword [ebp - 0x10], edi
lea edi, [esi + 0x20]
push 0x510868
mov ecx, edi
call fcn.004c6286
mov eax, dword [esi + 0x28]
mov ecx, edi
lea eax, [ebx + eax + 4]
push eax
call fcn.004c62c2
xor edi, edi
jmp 0x445ec7
mov dword [ebp - 0x28], esp
push str.Delete_successful
call fcn.004c5f18
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], edi
je 0x445ec7
push dword [ebp - 0x18]
lea ecx, [esi + 0x24]
call fcn.0040d862
mov ecx, eax
call fcn.0040b679
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.004460ae
inc dword [ebp - 0x18]
add ebx, 0x38
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x2c]
jl 0x445ce1
xor ebx, ebx
cmp dword [esi + 0x2c], edi
jle 0x445f9d
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x10], edi
je 0x445f9d
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 0x18]
test byte [eax + ecx + 8], 0x10
je 0x445f8f
push dword [esi + 0x1c]
inc dword [esi + 0x48]
lea edi, [esi + 0x24]
push ebx
mov ecx, edi
call fcn.0040d862
mov ecx, eax
call fcn.0040b679
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00446290
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004c5fe3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004c5eaa
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.00445fd4
test eax, eax
jne 0x445f6b
and dword [ebp - 0x14], eax
and dword [ebp - 0x10], eax
jmp 0x445f8d
push ebx
mov ecx, edi
call fcn.0040d862
mov ecx, eax
call fcn.0040b679
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.004461a4
xor edi, edi
add dword [ebp - 0x18], 0x38
inc ebx
cmp ebx, dword [esi + 0x2c]
jl 0x445ee7
push 0x510868
lea ecx, [esi + 0x20]
call fcn.004c2d2e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret