Function at 0x140092ff0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x50], edx
cmp byte [rcx + 0x6c], 0
je 0x140093039
xor al, al
jmp 0x140093534
lea rdx, [rsp + 0x208]
mov rcx, qword [rcx + 8]
call fcn.140088f40
nop
xor eax, eax
mov qword [rsp + 0x228], rax
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x238], rax
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x250], rax
lea r8, [rsp + 0x208]
cmp qword [rsp + 0x220], 0x10
cmovae r8, qword [rsp + 0x208]
mov r9d, esi
lea rcx, [rsp + 0x228]
call fcn.140098880
nop
xor edi, edi
cmp esi, 0x80000000
je 0x1400931ad
mov qword [rsp + 0x1a0], rdi
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x1d0], rcx
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400931ad
mov rax, qword [rsp + 0x1d0]
cmp qword [rsp + 0x1a0], rax
jge 0x1400931ad
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 + 0x90]
call fcn.1400ac840
nop
lea rdx, [rsp + 0x208]
mov rcx, rax
call fcn.1400a2040
lea rdx, [rsp + 0x1a0]
mov rcx, rax
call fcn.1400917a0
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.1400917a0
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.1400917a0
lea rdx, [rsp + 0x1d8]
mov rcx, rax
call fcn.1400ad0a0
nop
lea r8d, [rdi + 8]
mov rdx, rax
mov rcx, rbx
call fcn.140093560
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d8]
call fcn.140018f70
nop
lea rcx, [rsp + 0x90]
call fcn.1400a9160
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x228]
call fcn.140097fd0
xor eax, eax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x1c8], rax
mov r8d, esi
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x1a8]
call fcn.140093710
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x228]
call fcn.140098a00
mov r8, qword [rbx + 0x40]
mov rax, qword [rsp + 0x1a8]
mov qword [rbx + 0x40], rax
mov qword [rsp + 0x1a8], r8
mov rcx, qword [rbx + 0x48]
mov rax, qword [rsp + 0x1b0]
mov qword [rbx + 0x48], rax
mov qword [rsp + 0x1b0], rcx
mov r9, qword [rbx + 0x50]
mov rax, qword [rsp + 0x1b8]
mov qword [rbx + 0x50], rax
mov qword [rsp + 0x1b8], r9
mov edx, dword [rbx + 0x58]
mov eax, dword [rsp + 0x1c0]
mov dword [rbx + 0x58], eax
mov dword [rsp + 0x1c0], edx
mov rcx, qword [rbx + 0x60]
mov rax, qword [rsp + 0x1c8]
mov qword [rbx + 0x60], rax
mov qword [rsp + 0x1c8], rcx
mov byte [rbx + 0x6c], 1
test r8, r8
je 0x140093299
sub r8, r9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x1a8], rdi
mov rcx, qword [rsp + 0x1c8]
cmp rcx, 0xffffffffffffffff
je 0x1400932b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x1c8], 0xffffffffffffffff
mov rcx, qword [rsp + 0x228]
cmp rcx, 0xffffffffffffffff
je 0x1400932d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x228], 0xffffffffffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x238]
call fcn.140018f70
nop
jmp 0x1400934fe
jmp 0x14009351b
movzx ebx, byte [rbx + 0x6c]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x208]
call fcn.140018f70
movzx eax, bl
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret