Function at 0x42dbf0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4771a5
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x285], 1
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42df26
test al, 0x10
jne 0x42df26
lea eax, [ebp + 8]
call fcn.0040263b
push ebx
push 1
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42dc90
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x294], ebx
jne 0x42dea7
cmp dword [ebp - 0x290], ebx
jne 0x42dea7
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x230]
push str.Try_delete_file
push edx
call fcn.0040ceb0
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.0040263b
mov ecx, dword [edi + 0x8c28]
push eax
push str.INFO
call fcn.00416a80
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.00402601
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push str.icacls__
push ecx
call fcn.0040ceb0
add esp, 0xc
mov ecx, eax
mov eax, str.___reset
lea esi, [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.0040ce90
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00402601
push 0x414
call fcn.00459337
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42dd52
lea eax, [ebp - 0x24c]
call fcn.0040263b
mov edx, eax
call fcn.00414110
mov dword [ebp - 0x298], eax
jmp 0x42dd58
mov dword [ebp - 0x298], ebx
mov ecx, dword [edi + 0x8c30]
mov edx, dword [ecx]
mov edx, dword [edx]
push 0x100
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x298]
push eax
call edx
push 0x414
call fcn.00459337
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42dda3
lea eax, [ebp + 8]
call fcn.0040263b
mov edx, eax
mov eax, esi
call fcn.0040194a
mov dword [ebp - 0x290], eax
jmp 0x42dda9
mov dword [ebp - 0x290], ebx
mov ecx, dword [edi + 0x8c30]
mov eax, dword [ecx]
mov eax, dword [eax]
push 0x100
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp - 0x290]
push edx
call eax
mov ecx, 0x484598
lea eax, [ebp - 0x214]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42ddf9
cmp dx, bx
je 0x42ddf5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42ddf9
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x42ddd3
xor eax, eax
jmp 0x42ddfe
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x42de81
lea eax, [ebp + 8]
call fcn.0040263b
mov edi, eax
lea esi, [ebp - 0x230]
call fcn.004084c0
mov ecx, esi
push ecx
lea edx, [ebp - 0x268]
push 0x486dc0
push edx
mov byte [ebp - 4], 5
call fcn.0040ceb0
add esp, 0xc
mov ecx, eax
mov eax, 0x486d94
lea esi, [ebp - 0x284]
mov byte [ebp - 4], 6
call fcn.0040ce90
lea ecx, [ebp - 0x268]
call fcn.00402601
push 0x10
push 0x486e38
mov eax, esi
call fcn.0040263b
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
mov byte [ebp - 0x285], bl
call fcn.00402601
lea ecx, [ebp - 0x230]
call fcn.00402601
mov eax, dword [ebp - 0x298]
push eax
call fcn.004592db
mov ecx, dword [ebp - 0x290]
add esp, 4
push ecx
call fcn.004592db
add esp, 4
lea ecx, [ebp - 0x24c]
jmp 0x42df21
lea eax, [ebp + 8]
mov byte [ebp - 0x285], bl
call fcn.0040263b
mov edi, eax
lea esi, [ebp - 0x230]
call fcn.004084c0
mov edx, esi
push edx
lea eax, [ebp - 0x268]
push 0x486e48
push eax
mov byte [ebp - 4], 7
call fcn.0040ceb0
add esp, 0xc
mov ecx, eax
mov eax, 0x486d94
lea esi, [ebp - 0x24c]
mov byte [ebp - 4], 8
call fcn.0040ce90
lea ecx, [ebp - 0x268]
call fcn.00402601
push 0x10
push 0x486e38
mov eax, esi
call fcn.0040263b
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
call fcn.00402601
lea ecx, [ebp - 0x230]
call fcn.00402601
lea ecx, [ebp + 8]
call fcn.00402601
cmp byte [ebp - 0x285], bl
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret 0x1c