Function at 0x4684e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0057d110
mov edx, dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc88
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0x76d020
mov dword [ebp - 0x1c], edx
call edx
mov eax, dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 8
mov dword [esp], 0x76d020
mov dword [ebp - 0x10], eax
call eax
mov ecx, dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x76d020
mov dword [ebp - 0x18], ecx
call ecx
mov ebx, eax
sub esp, 0x1c
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.Couldnt_create_test_file._n
setne al
mov dword [esp], eax
call fcn.0045bef0
mov edi, dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [esp], ebx
mov dword [esp + 0x14], str.named_file_map
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
call edi
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc8b
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], str.mapping_should_work__I_named_it__n
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc8d
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
sub esp, 4
mov dword [esp + 4], str.cant_close_mapping_handle_n
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [ebp - 0x14], edi
call edi
sub esp, 0x18
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc92
xor eax, eax
test edi, edi
setne al
mov dword [esp + 4], str.We_should_still_be_able_to_map__n
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc93
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.cant_close_mapping_handle_n
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc94
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.cant_close_file_handle_n
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc97
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0x76d020
mov edx, dword [ebp - 0x1c]
call edx
sub esp, 8
mov dword [esp], 0x76d020
mov ecx, dword [ebp - 0x10]
call ecx
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x76d020
mov ecx, dword [ebp - 0x18]
call ecx
mov ebx, eax
sub esp, 0x1c
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.Couldnt_create_test_file._n
setne al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0045bef0
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
call eax
mov ecx, dword [edi + 0x34]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc9c
xor eax, eax
mov dword [esp + 4], str.mapped_zero_size_file_n
mov edx, dword [ebp - 0x1c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov ecx, dword [ebp - 0x18]
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xc9d
xor eax, eax
cmp ecx, 0x3ee
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x59a93d
call fcn.0045bef0
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10000
mov dword [esp + 0xc], 0x8000000
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
call eax
mov edi, dword [edi + 0x34]
sub esp, 0x18
mov dword [ebp - 0x14], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xca2
xor eax, eax
mov dword [esp + 4], str.mapping_should_fail_n
mov edx, dword [ebp - 0x14]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
cmp edi, 8
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xca3
sete al
cmp edi, 0x57
sete dl
mov dword [esp + 8], edi
or eax, edx
mov dword [esp + 4], 0x59a93d
movzx eax, al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xca7
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.cant_close_file_handle_n
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0xca8
mov dword [esp], 0x76d020
mov ecx, dword [ebp - 0x10]
call ecx
sub esp, 4
mov dword [esp + 4], str.DeleteFile_failed_after_map_n
mov dword [esp], eax
call fcn.0045bef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret