Function at 0x14008e520
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x828]
sub rsp, 0x900
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
mov rsi, rdx
mov qword [rsp + 0x30], rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x24], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x6e0], xmm0
mov qword [rbp + 0x6f0], r15
movdqu xmmword [rbp + 0x6f8], xmm0
mov qword [rbp + 0x708], r15
xor edx, edx
lea r8d, [r15 + 0x70]
lea rcx, [rbp + 0x780]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x50]
lea rcx, [rbp + 0x780]
call fcn.140090ec0
nop
lea rdx, [rbp + 0x6f8]
lea rcx, [rbp + 0x780]
call fcn.140090fd0
mov rbx, qword [rbp + 0x6f8]
mov rdi, qword [rbp + 0x700]
cmp rbx, rdi
sete r14b
test r14b, r14b
je 0x14008e69d
cmp byte [rbp + 0x7ec], r15b
jne 0x14008e69d
lea rdx, str.Shared_memory_does_not_exist
lea rcx, [rbp + 0x80]
call fcn.1400ac840
nop
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.1400ad0a0
nop
mov rdx, rax
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x40]
call fcn.140018f70
nop
lea rcx, [rbp + 0x80]
call fcn.1400a9160
mov rax, qword [rbp + 0x6e0]
mov qword [rsi], rax
mov rax, qword [rbp + 0x6e8]
mov qword [rsi + 8], rax
mov rcx, qword [rbp + 0x6f0]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x6e0], xmm0
mov qword [rbp + 0x6f0], r15
lea rcx, [rbp + 0x780]
call fcn.140090f40
nop
lea rcx, [rbp + 0x6f8]
call fcn.14008f580
nop
lea rcx, [rbp + 0x6e0]
call fcn.140017b30
jmp 0x14008eb48
mov qword [rbp + 0x728], r15
lea rdx, [rbp + 0x728]
mov rcx, qword [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea rdx, str.Shared_memory_size:__1__bytes
lea rcx, [rbp + 0x190]
call fcn.1400ac840
nop
lea rcx, [rbp + 0x728]
mov qword [rsp + 0x58], rcx
lea rcx, [fcn.14000ff90]
mov qword [rsp + 0x60], rcx
lea rcx, [0x140094fc0]
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400a1fb0
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.1400ad0a0
nop
mov rdx, rax
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.140018f70
nop
lea rcx, [rbp + 0x190]
call fcn.1400a9160
mov rcx, rdi
sub rcx, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x28], rdx
lea rdx, str.Shared_memory_item_count:__1_
lea rcx, [rbp + 0x2a0]
call fcn.1400ac840
nop
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x70], rcx
lea rcx, [fcn.14000ff90]
mov qword [rsp + 0x78], rcx
lea rcx, [0x14009af40]
mov qword [rbp - 0x80], rcx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400a1fb0
lea rdx, [rbp]
mov rcx, rax
call fcn.1400ad0a0
nop
mov rdx, rax
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp]
call fcn.140018f70
nop
lea rcx, [rbp + 0x2a0]
call fcn.1400a9160
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140018f70
xor r8d, r8d
lea rdx, [0x1400fa4c1]
lea rcx, [rsp + 0x38]
call fcn.140019090
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140018f70
test r14b, r14b
je 0x14008e87a
lea rdx, str.No_items_found_in_shared_memory
lea rcx, [rbp + 0x3b0]
call fcn.1400ac840
nop
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.1400ad0a0
nop
mov rdx, rax
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.140018f70
nop
lea rcx, [rbp + 0x3b0]
call fcn.1400a9160
jmp 0x14008eb0e
mov r14d, 1
mov qword [rbp + 0x730], rbx
cmp rbx, rdi
je 0x14008eb0e
lea rsi, [fcn.14000ff90]
lea rdi, [0x140094f20]
lea r12, [fcn.14000ff90]
lea r13, [0x1400a2030]
nop dword [rax]
xor eax, eax
mov qword [rbp + 0x738], rax
mov dword [rbp + 0x738], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x740], xmm0
mov rdx, rbx
lea rcx, [rbp + 0x738]
call fcn.14008f700
nop
mov dword [rsp + 0x20], r14d
inc r14d
lea rdx, str.Shared_memory_item__1_:
lea rcx, [rbp + 0x4c0]
call fcn.1400ac840
nop
lea rcx, [rsp + 0x20]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.1400a1fb0
lea rdx, [rbp + 0x40]
mov rcx, rax
call fcn.1400ad0a0
nop
mov rdx, rax
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.140018f70
nop
lea rcx, [rbp + 0x4c0]
call fcn.1400a9160
xor eax, eax
mov qword [rbp + 0x710], rax
mov qword [rbp + 0x718], rax
mov qword [rbp + 0x720], rax
mov r8, qword [rbp + 0x740]
lea rdx, [rbp + 0x710]
call fcn.14008e110
nop
mov rbx, qword [rbp + 0x710]
mov qword [rbp + 0x750], rbx
mov rdi, qword [rbp + 0x718]
mov qword [rbp + 0x778], rdi
cmp rbx, rdi
je 0x14008ea75
nop dword [rax]
mov qword [rbp + 0x768], r15
mov qword [rbp + 0x770], r15
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x758]
call fcn.140018f70
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x758]
call fcn.140019170
nop
lea rdx, str._____1_
lea rcx, [rbp + 0x5d0]
call fcn.1400ac840
nop
lea rcx, [rbp + 0x758]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r13
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1400a1fb0
lea rdx, [rbp + 0x60]
mov rcx, rax
call fcn.1400ad0a0
nop
mov rdx, rax
lea rcx, [rbp + 0x6e0]
call fcn.140017ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.140018f70
nop
lea rcx, [rbp + 0x5d0]
call fcn.1400a9160
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x758]
call fcn.140018f70
add rbx, 0x20
cmp rbx, rdi
jne 0x14008e9a0
mov qword [rbp + 0x750], rbx
mov rdi, qword [rbp + 0x718]
mov rbx, qword [rbp + 0x710]
test rbx, rbx
je 0x14008eab4
cmp rbx, rdi
je 0x14008ea9d
nop
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140018f70
add rbx, 0x20
cmp rbx, rdi
jne 0x14008ea80
mov rbx, qword [rbp + 0x710]
mov r8, qword [rbp + 0x720]
sub r8, rbx
sar r8, 5
mov rdx, rbx
call fcn.140019900
nop
mov rax, qword [rbp + 0x748]
or ecx, 0xffffffff
lock xadd dword [rax + 8], ecx
lea eax, [rcx - 1]
test eax, eax
jne 0x14008eae3
mov rbx, qword [rbp + 0x748]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rbx, qword [rbp + 0x730]
add rbx, 0x18
mov qword [rbp + 0x730], rbx
cmp rbx, qword [rbp + 0x700]
lea rdi, [0x140094f20]
jne 0x14008e8b0
mov rsi, qword [rsp + 0x30]
mov rax, qword [rbp + 0x6e0]
mov qword [rsi], rax
mov rax, qword [rbp + 0x6e8]
mov qword [rsi + 8], rax
mov rax, qword [rbp + 0x6f0]
mov qword [rsi + 0x10], rax
lea rcx, [rbp + 0x780]
call fcn.140090f40
nop
lea rcx, [rbp + 0x6f8]
call fcn.14008f580
nop
mov rax, rsi
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0x900]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret