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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d505d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x68a140]
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.00437fa0
add esp, 4
test al, al
je 0x45e22d
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 0x45e0c9
test al, 0x10
jne 0x45e0c9
mov al, 1
jmp 0x45e0cb
xor al, al
test al, al
je 0x45e161
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.00452d10
mov byte [ebp - 4], 1
call fcn.0043e2f0
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], 0x62de0c
mov dword [eax + 4], 3
call fcn.0043e2c0
add esp, 0x10
test eax, eax
je 0x45e159
call fcn.0043e2f0
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.0043e2c0
add esp, 0x10
test eax, eax
jne 0x45e24a
lea ecx, [ebp - 0x2c]
call fcn.00428f30
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 0x45e26d
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.00437fa0
add esp, 4
test al, al
mov eax, dword [ebp - 0x38]
je 0x45e1c5
or eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp + 8], 2
jne 0x45e1d1
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 0x45e29c
lea ecx, [ebp + 0x34]
call fcn.00428f30
lea ecx, [ebp + 0x1c]
call fcn.00428f30
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.00599e5b
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.0042b150
push 0x685e44
lea eax, [ebp - 0x6c]
push eax
call fcn.0059b61b
lea eax, [ebp + 0x1c]
push eax
push 0x1b
push str.Dump_file__already_exists
push 5
lea ecx, [ebp - 0x6c]
call fcn.0042f2d0
push 0x685e44
lea eax, [ebp - 0x6c]
push eax
call fcn.0059b61b
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.0045edf0
push 0x685e44
lea eax, [ebp - 0x6c]
push eax
call fcn.0059b61b
lea ecx, [ebp + 0x1c]
call fcn.00422bd0
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.0045eef0
push 0x685e44
lea eax, [ebp - 0x6c]
push eax
call fcn.0059b61b
int3