Function at 0x1400e5430
Capabilities:
Delete file
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb08]
sub rsp, 0xc08
mov rax, qword [0x1401ce8a8]
xor rax, rsp
mov qword [rbp + 0xaf0], rax
mov esi, r9d
mov dword [rsp + 0x58], r9d
mov r13, r8
mov r15, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x28]
xor r14d, r14d
test rcx, rcx
je 0x1400e5484
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi + 0x28], r14
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400e5497
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], r14
mov rcx, qword [rdi + 0x18]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400e54ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], r14
cmp byte [rdi + 0x10], r14b
je 0x1400e555a
mov rcx, r15
call fcn.1400e8850
mov ebx, eax
test eax, 0xfffffffd
jne 0x1400e555a
mov qword [rsp + 0x70], r14
lea rax, str.bad_drive_type__d_for_shmem_file__s
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], 4
lea r14, str.Shmem
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
mov ecx, ebx
call fcn.1400e87d0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400e8c30
mov rcx, rax
mov rdx, r15
call fcn.1400e8c30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
mov eax, 2
jmp 0x1400e5ab3
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r15 + rbx], r14b
jne 0x1400e5561
cmp rbx, 0x30b
jbe 0x1400e55ed
mov qword [rsp + 0x70], r14
lea rax, str.path_too_long_for_shmem_file__s
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], 4
lea r14, str.Shmem
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400e8c30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
mov eax, 3
jmp 0x1400e5ab3
mov byte [rsp + 0x40], r14b
test sil, 4
jne 0x1400e55fd
mov r12, qword [rdi]
jmp 0x1400e5600
mov r12, r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x1b0]
call fcn.14012aeb0
mov eax, dword [str..lock]
mov dword [rbp + rbx + 0x1b0], eax
movzx eax, word [0x140179f68]
mov word [rbp + rbx + 0x1b4], ax
mov ebx, dword [rdi + 8]
mov rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call fcn.1400e8990
mov dword [rsp + 0x28], 0x30c
lea rax, [rbp + 0x4d0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x1b0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r14, str.Shmem
test eax, eax
jg 0x1400e5716
xor edi, edi
mov qword [rsp + 0x70], rdi
lea rax, str.MultiByteToWideChar___failed._file_name__s__error__d
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x68], 3
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x70]
call fcn.1400e8c30
mov rcx, rax
mov edx, ebx
call fcn.1400e8b10
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
lea esi, [rdi + 1]
jmp 0x1400e589d
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400e57c0
nop word [rax + rax]
mov eax, 0x64
test ebx, ebx
je 0x1400e5896
mov ecx, ebx
cmp ebx, eax
cmova ecx, eax
sub ebx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e5760
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400e8990
mov qword [rsp + 0x50], 0xffffffffffffffff
movzx eax, byte [rdi + 0x11]
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x40]
mov r8, r12
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400e5be0
mov esi, eax
test eax, eax
je 0x1400e5924
cmp eax, 7
je 0x1400e5aa6
xor ecx, ecx
mov qword [rsp + 0x70], rcx
lea rax, str.failed_to_bind_shared_memory_file__s:__s
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x68], 4
lea r14, str.Shmem
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
mov ecx, esi
call fcn.1400e6e10
mov rbx, rax
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400e8c30
mov rcx, rax
mov rdx, rbx
call fcn.1400e8c30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
jmp 0x1400e5aa6
mov esi, 4
xor edi, edi
mov qword [rsp + 0x70], rdi
lea rax, str.failed_to_open_lock_file__s:__s
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x68], 4
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
mov ecx, esi
call fcn.1400e6e10
mov rbx, rax
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x70]
call fcn.1400e8c30
mov rcx, rax
mov rdx, rbx
call fcn.1400e8c30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
jmp 0x1400e5aa6
mov rbx, qword [rsp + 0x50]
cmp byte [rsp + 0x40], 0
je 0x1400e593a
mov rax, r12
mov qword [rsp + 0x48], rax
jmp 0x1400e5959
cmp rbx, 0xffffffffffffffff
je 0x1400e5954
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rsp + 0x48], rax
jmp 0x1400e5959
mov rax, qword [rsp + 0x48]
xor esi, esi
mov r12d, esi
lea r14, str.Shmem
cmp rbx, 0xffffffffffffffff
je 0x1400e5a04
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
jne 0x1400e5ad6
mov qword [rsp + 0x70], rsi
lea rax, str.CreateFileMappingA___failed_with_error__d
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x68], 4
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400e8b10
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
mov qword [rsp + 0x70], rsi
lea rax, str.failed_to_map_shmem_file__s
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x68], 4
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400e8c30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
mov esi, 1
mov qword [rdi + 0x18], 0xffffffffffffffff
xor eax, eax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
test r12, r12
je 0x1400e5a96
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, 0xffffffffffffffff
je 0x1400e5aa6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x60]
call fcn.1400e89d0
nop
mov eax, esi
mov rcx, qword [rbp + 0xaf0]
xor rcx, rsp
call fcn.140128f20
add rsp, 0xc08
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1400e5b6f
mov qword [rsp + 0x70], rax
lea rax, str.MapViewOfFile___failed_with_error__d
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0x200
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x68], 4
mov qword [rbp - 0x60], r14
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x70]
call fcn.1400e9b00
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400e8b10
nop
lea rcx, [rsp + 0x70]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x70]
call fcn.1400e8d90
nop
jmp 0x1400e5a04
mov r14, qword [rsp + 0x48]
cmp byte [rsp + 0x40], 0
je 0x1400e5bbc
test byte [rsp + 0x58], 2
je 0x1400e5b8f
mov r8, r14
xor edx, edx
mov rcx, rsi
call fcn.14012b560
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rsi
test byte [r13], 1
je 0x1400e5ba8
mov r13, qword [r13]
and r13, 0xfffffffffffffffe
mov rax, qword [r13]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, r13
call qword [rax + 8]
xor esi, esi
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], r12
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], r14
jmp 0x1400e5aa6