Function at 0x14004e244
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, rcx
or edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x48]
xor edi, edi
test rcx, rcx
je 0x14004e28e
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov qword [rbx + 0x48], rdi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea rsi, [rbx + 0x18]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
or r14, 0xffffffffffffffff
mov qword [rbx], r14
mov qword [rbx + 8], r14
cmp byte [rbx + 0x50], dil
jne 0x14004e3af
call qword [sym.imp.MFC42u.dll_Ordinal_1463]
nop dword [rax + rax]
lea rdx, [0x14008a8c0]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0x168]
call qword [sym.imp.msvcrt.dll__wtempnam]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14004e31e
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop dword [rax + rax]
xor eax, eax
jmp 0x14004e478
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x10000100
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx], rax
cmp rax, r14
je 0x14004e307
mov edx, dword [rbx + 0x2c]
mov rcx, rax
shl rdx, 0xb
call fcn.14004e49c
mov rcx, qword [rbx]
test eax, eax
je 0x14004e3b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov qword [rbx], r14
jmp 0x14004e307
mov rcx, r14
mov eax, dword [rbx + 0x2c]
xor edx, edx
mov r9d, dword [rbx + 0x3c]
mov r8d, 0x8000004
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
mov dword [rbx + 0x24], edi
mov dword [rbx + 0x30], edi
mov dword [rbx + 0x54], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
jne 0x14004e3fc
cmp byte [rbx + 0x50], dil
jne 0x14004e3a7
mov rcx, qword [rbx]
jmp 0x14004e38c
mov eax, dword [rbx + 0x2c]
xor r9d, r9d
shl rax, 0xb
xor r8d, r8d
mov edx, 0xf001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x14004e461
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp byte [rbx + 0x50], dil
jne 0x14004e466
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov qword [rbx], r14
jmp 0x14004e466
mov edi, 1
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret