Function at 0x14003de10
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x280
mov qword [rax - 0x210], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x50], edx
cmp byte [rcx + 0x6c], 0
je 0x14003de5f
xor al, al
jmp 0x14003e3d2
lea rdx, [rsp + 0x228]
mov rcx, qword [rcx + 8]
call fcn.140034280
nop
xor eax, eax
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x260], rax
mov qword [rsp + 0x268], rax
mov qword [rsp + 0x270], rax
lea r8, [rsp + 0x228]
cmp qword [rsp + 0x240], 0x10
cmovae r8, qword [rsp + 0x228]
mov r9d, esi
lea rcx, [rsp + 0x248]
call fcn.140043a20
nop
xor edi, edi
cmp esi, 0x80000000
je 0x14003e04b
mov qword [rsp + 0x1c0], rdi
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x220], rcx
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003e04b
mov rax, qword [rsp + 0x220]
cmp qword [rsp + 0x1c0], rax
jge 0x14003e04b
lea rdx, str.Size_of_existing_shared_memory__1____2__bytes__is_less_than_required_size___3__bytes_._Increasing_the_size_to__4__bytes.
lea rcx, [rsp + 0xb0]
call fcn.140057f50
nop
lea rcx, [rsp + 0x228]
mov qword [rsp + 0x70], rcx
lea rcx, [fcn.140005730]
mov qword [rsp + 0x78], rcx
lea rcx, [0x14004d3f0]
mov qword [rsp + 0x80], rcx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14004d370
lea rcx, [rsp + 0x1c0]
mov qword [rsp + 0x70], rcx
lea r14, [fcn.140005730]
mov qword [rsp + 0x78], r14
lea r15, [0x14003ffa0]
mov qword [rsp + 0x80], r15
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14004d370
lea rcx, [rsp + 0x220]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14004d370
lea rcx, [rsp + 0x220]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r15
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14004d370
lea rdx, [rsp + 0x1f8]
mov rcx, rax
call fcn.1400587b0
nop
lea r8d, [rdi + 8]
mov rdx, rax
mov rcx, rbx
call fcn.14003e400
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f8]
call fcn.14000e930
nop
lea rcx, [rsp + 0xb0]
call fcn.1400546d0
mov rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0x248]
call fcn.14003e600
xor eax, eax
mov qword [rsp + 0x1c8], rax
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x1d8], rax
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x1e8], rax
mov r8d, esi
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x1c8]
call fcn.14003e670
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x248]
call fcn.140043ba0
mov r8, qword [rbx + 0x40]
mov rax, qword [rsp + 0x1c8]
mov qword [rbx + 0x40], rax
mov qword [rsp + 0x1c8], r8
mov rcx, qword [rbx + 0x48]
mov rax, qword [rsp + 0x1d0]
mov qword [rbx + 0x48], rax
mov qword [rsp + 0x1d0], rcx
mov r9, qword [rbx + 0x50]
mov rax, qword [rsp + 0x1d8]
mov qword [rbx + 0x50], rax
mov qword [rsp + 0x1d8], r9
mov edx, dword [rbx + 0x58]
mov eax, dword [rsp + 0x1e0]
mov dword [rbx + 0x58], eax
mov dword [rsp + 0x1e0], edx
mov rcx, qword [rbx + 0x60]
mov rax, qword [rsp + 0x1e8]
mov qword [rbx + 0x60], rax
mov qword [rsp + 0x1e8], rcx
mov byte [rbx + 0x6c], 1
test r8, r8
je 0x14003e137
sub r8, r9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x1c8], rdi
mov rcx, qword [rsp + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x14003e14f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x1e8], 0xffffffffffffffff
mov rcx, qword [rsp + 0x248]
cmp rcx, 0xffffffffffffffff
je 0x14003e16f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x248], 0xffffffffffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x258]
call fcn.14000e930
nop
jmp 0x14003e39c
jmp 0x14003e3b9
movzx ebx, byte [rbx + 0x6c]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x228]
call fcn.14000e930
movzx eax, bl
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140062f80
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret