Function at 0x40d0d5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push esi
push 0x45cd10
call fcn.0040d34a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, al
pop ecx
pop ecx
call edi
test bl, bl
jne 0x40d33e
xor ebx, ebx
cmp eax, 5
jne 0x40d32f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40d11a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 5
mov dword [ebp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x6c]
cmp eax, 0xffffffff
jne 0x40d13b
xor al, al
jmp 0x40d342
test al, 1
je 0x40d32f
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x40d150
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40d238
push ebx
call fcn.00411ac3
mov ecx, eax
call fcn.00411cf3
test al, al
je 0x40d21e
push esi
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.004044a1
push 1
lea ecx, [ebp - 0x60]
call fcn.00403356
lea eax, [ebp - 0x60]
push str.Discarded_R_O_attribute_from__
push eax
call fcn.00402686
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00402640
mov eax, dword [ebp + 0x64]
add esp, 0x10
cmp eax, 0x10
jb 0x40d1e6
mov ecx, dword [ebp + 0x50]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x40d1dd
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004043d5
mov eax, dword [ebp + 0x68]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.00429c4c
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push str.__file
push eax
call fcn.00402686
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
push str.FileUtils::deleteFile
push 0x290
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_FileUtils.cpp
push ebx
call fcn.00411ac3
mov ecx, eax
call fcn.0040717d
lea ecx, [ebp - 0x60]
call fcn.004040c1
push esi
push 0x45cd10
call fcn.0040d34a
pop ecx
pop ecx
test al, al
jne 0x40d33e
jmp 0x40d32f
push 2
call fcn.00411ac3
mov ecx, eax
call fcn.00411cf3
test al, al
je 0x40d327
push str.System_error
call edi
push eax
push dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x38], ebx
push esi
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
call fcn.004044a1
push 1
lea ecx, [ebp - 0x60]
call fcn.00403356
lea eax, [ebp - 0x60]
push str.Failed_to_discard_R_O_attribute_from__
push eax
call fcn.00402686
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00402640
mov eax, dword [ebp + 0x4c]
add esp, 0x10
cmp eax, 0x10
jb 0x40d2cd
mov ecx, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x40d2c4
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.004043d5
mov eax, dword [ebp + 0x6c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.00429c4c
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push str.__file._File_will_not_be_deleted
push eax
call fcn.00402686
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x5c]
call fcn.004180bb
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push eax
push str.FileUtils::deleteFile
push 0x296
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_FileUtils.cpp
push 2
call fcn.00411ac3
mov ecx, eax
call fcn.0040600c
lea eax, [ebp + 0x60]
mov dword [ebp + 0x5c], vtable.std::exception.0
push eax
call fcn.0042cc8d
pop ecx
lea ecx, [ebp - 0x60]
call fcn.004040c1
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
push eax
call fcn.0040d6ef
add esp, 4
test al, al
je 0x40d340
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret