Function at 0x45ed20
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d38cd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 3
mov dword [ebp - 4], 0
push ecx
lea ecx, [edx + 3]
call fcn.00437e80
add esp, 4
test al, al
je 0x45eeed
cmp dword [ebp + 0x30], 7
lea eax, [ebp + 0x1c]
cmova eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45ed89
test al, 0x10
jne 0x45ed89
mov al, 1
jmp 0x45ed8b
xor al, al
test al, al
je 0x45ee21
cmp dword [ebp + 0x30], 7
lea eax, [ebp + 0x1c]
push dword [ebp + 0x2c]
cmova eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00452f30
mov byte [ebp - 4], 1
call fcn.0043e320
cmp dword [ebp - 0x18], 7
lea esi, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
cmova esi, dword [ebp - 0x2c]
mov eax, esp
push ecx
push esi
mov dword [eax], 0x62d484
mov dword [eax + 4], 3
call fcn.0043e2f0
add esp, 0x10
test eax, eax
je 0x45ee19
call fcn.0043e320
cmp dword [ebp - 0x18], 7
lea esi, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
cmova esi, dword [ebp - 0x2c]
sub esp, 8
mov eax, esp
push ecx
push esi
mov dword [eax], str.mdmp
mov dword [eax + 4], 4
call fcn.0043e2f0
add esp, 0x10
test eax, eax
jne 0x45ef0a
lea ecx, [ebp - 0x2c]
call fcn.00428f60
cmp dword [ebp + 0x30], 7
lea eax, [ebp + 0x1c]
push 0
cmova eax, dword [ebp + 0x1c]
push 0xa0000000
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x45ef2d
xor edx, edx
xorps xmm0, xmm0
push ecx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], esi
lea ecx, [edx + 0xa]
movq qword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x58], xmm0
call fcn.00437e80
add esp, 4
test al, al
mov eax, dword [ebp - 0x38]
je 0x45ee85
or eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp + 8], 2
jne 0x45ee91
or eax, 4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x28
lea eax, [ebp - 0x58]
push eax
push 0x25
call dword [sym.imp.ntdll.dll_NtSystemDebugControl]
mov edi, eax
push esi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xffffffff
test edi, edi
js 0x45ef5c
lea ecx, [ebp + 0x34]
call fcn.00428f60
lea ecx, [ebp + 0x1c]
call fcn.00428f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
ret
push str.Windows_8.1_or_later_is_required_for_live_kernel_dumping
push 9
lea ecx, [ebp - 0x6c]
call fcn.0042b180
push 0x68501c
lea eax, [ebp - 0x6c]
push eax
call fcn.00599dcb
lea eax, [ebp + 0x1c]
push eax
push 0x1b
push str.Dump_file__already_exists
push 5
lea ecx, [ebp - 0x6c]
call fcn.0042f1f0
push 0x68501c
lea eax, [ebp - 0x6c]
push eax
call fcn.00599dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x33
push str.Dump_file__could_not_be_created__error_code:_
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0045ff40
push 0x68501c
lea eax, [ebp - 0x6c]
push eax
call fcn.00599dcb
lea ecx, [ebp + 0x1c]
call fcn.00422c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x5c]
push eax
push 0x2d
push str.NtSystemDebugControl_failed__status:_:010x
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00460040
push 0x68501c
lea eax, [ebp - 0x6c]
push eax
call fcn.00599dcb
int3