Function at 0x1400395a0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x838]
sub rsp, 0x910
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov r12, rdx
mov qword [rsp + 0x30], rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x28], r14d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x6f0], xmm0
mov qword [rbp + 0x700], r14
movdqu xmmword [rbp + 0x708], xmm0
mov qword [rbp + 0x718], r14
xor edx, edx
lea r8d, [r14 + 0x70]
lea rcx, [rbp + 0x790]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x50]
lea rcx, [rbp + 0x790]
call fcn.14003be10
nop
lea rdx, [rbp + 0x708]
lea rcx, [rbp + 0x790]
call fcn.14003bf20
mov rbx, qword [rbp + 0x708]
mov rdi, qword [rbp + 0x710]
cmp rbx, rdi
sete sil
test sil, sil
je 0x140039720
cmp byte [rbp + 0x7fc], r14b
jne 0x140039720
lea rdx, str.Shared_memory_does_not_exist
lea rcx, [rbp + 0x90]
call fcn.140057f50
nop
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.1400587b0
nop
mov rdx, rax
lea rcx, [rbp + 0x6f0]
call fcn.14000d4d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.14000e930
nop
lea rcx, [rbp + 0x90]
call fcn.1400546d0
mov rax, qword [rbp + 0x6f0]
mov qword [r12], rax
mov rax, qword [rbp + 0x6f8]
mov qword [r12 + 8], rax
mov rcx, qword [rbp + 0x700]
mov qword [r12 + 0x10], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x6f0], xmm0
mov qword [rbp + 0x700], r14
lea rcx, [rbp + 0x790]
call fcn.14003be90
nop
lea rcx, [rbp + 0x708]
call fcn.14003a610
nop
lea rcx, [rbp + 0x6f0]
call fcn.14000d460
jmp 0x140039c7b
mov qword [rbp + 0x738], r14
lea rdx, [rbp + 0x738]
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea rdx, str.Shared_memory_size:__1__bytes
lea rcx, [rbp + 0x1a0]
call fcn.140057f50
nop
lea rcx, [rbp + 0x738]
mov qword [rsp + 0x60], rcx
lea rcx, [fcn.140005730]
mov qword [rsp + 0x68], rcx
lea rcx, [0x14003ffa0]
mov qword [rsp + 0x70], rcx
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14004d370
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.1400587b0
nop
mov rdx, rax
lea rcx, [rbp + 0x6f0]
call fcn.14000d4d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.14000e930
nop
lea rcx, [rbp + 0x1a0]
call fcn.1400546d0
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 + 0x38], rdx
lea rdx, str.Shared_memory_item_count:__1_
lea rcx, [rbp + 0x2b0]
call fcn.140057f50
nop
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x78], rcx
lea rcx, [fcn.140005730]
mov qword [rbp - 0x80], rcx
lea rcx, [0x140046210]
mov qword [rbp - 0x78], rcx
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.14004d370
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400587b0
nop
mov rdx, rax
lea rcx, [rbp + 0x6f0]
call fcn.14000d4d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.14000e930
nop
lea rcx, [rbp + 0x2b0]
call fcn.1400546d0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14000e930
xor r8d, r8d
lea rdx, [0x140079b89]
lea rcx, [rsp + 0x40]
call fcn.14000ea50
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x6f0]
call fcn.14000d4d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.14000e930
test sil, sil
je 0x1400398fc
lea rdx, str.No_items_found_in_shared_memory
lea rcx, [rbp + 0x3c0]
call fcn.140057f50
nop
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.1400587b0
nop
mov rdx, rax
lea rcx, [rbp + 0x6f0]
call fcn.14000d4d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.14000e930
nop
lea rcx, [rbp + 0x3c0]
call fcn.1400546d0
jmp 0x140039c3e
mov r13d, 1
mov qword [rbp + 0x740], rbx
cmp rbx, rdi
je 0x140039c3e
lea rdi, [fcn.140005730]
lea rsi, [0x14003ff00]
lea r12, [fcn.140005730]
nop word [rax + rax]
xor eax, eax
mov qword [rbp + 0x748], rax
mov dword [rbp + 0x748], r14d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x750], xmm0
mov rdx, rbx
lea rcx, [rbp + 0x748]
call fcn.14003a790
nop
mov dword [rsp + 0x20], r13d
inc r13d
mov dword [rsp + 0x24], r13d
lea rdx, str.Shared_memory_item__1_:
lea rcx, [rbp + 0x4d0]
call fcn.140057f50
nop
lea rcx, [rsp + 0x20]
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rsi
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.14004d370
lea rdx, [rbp + 0x48]
mov rcx, rax
call fcn.1400587b0
nop
mov rdx, rax
lea rcx, [rbp + 0x6f0]
call fcn.14000d4d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x48]
call fcn.14000e930
nop
lea rcx, [rbp + 0x4d0]
call fcn.1400546d0
xor eax, eax
mov qword [rbp + 0x720], rax
mov qword [rbp + 0x728], rax
mov qword [rbp + 0x730], rax
mov r8, qword [rbp + 0x750]
lea rdx, [rbp + 0x720]
call fcn.140039190
nop
mov rsi, qword [rbp + 0x720]
mov qword [rbp + 0x760], rsi
mov r15, qword [rbp + 0x728]
mov qword [rbp + 0x788], r15
cmp rsi, r15
je 0x140039ba6
mov rdi, qword [rbp + 0x6f8]
mov r14, qword [rbp + 0x6f0]
lea r13, [0x14004d3f0]
nop word [rax + rax]
xor eax, eax
mov qword [rbp + 0x778], rax
mov qword [rbp + 0x780], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x768]
call fcn.14000e930
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x768]
call fcn.14000eb30
nop
lea rdx, str._____1_
lea rcx, [rbp + 0x5e0]
call fcn.140057f50
nop
lea rcx, [rbp + 0x768]
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r13
lea rdx, [rbp - 0x58]
mov rcx, rax
call fcn.14004d370
lea rdx, [rbp + 0x68]
mov rcx, rax
call fcn.1400587b0
mov rbx, rax
cmp rax, rdi
jae 0x140039af3
cmp r14, rax
ja 0x140039af3
sub rbx, r14
cmp rdi, qword [rbp + 0x700]
jne 0x140039aea
lea rcx, [rbp + 0x6f0]
call fcn.14000e720
mov rdi, qword [rbp + 0x6f8]
mov r14, qword [rbp + 0x6f0]
and rbx, 0xffffffffffffffe0
add rbx, r14
jmp 0x140039b16
cmp rdi, qword [rbp + 0x700]
jne 0x140039b16
lea rcx, [rbp + 0x6f0]
call fcn.14000e720
mov rdi, qword [rbp + 0x6f8]
mov r14, qword [rbp + 0x6f0]
test rdi, rdi
je 0x140039b3d
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000e930
mov rdx, rbx
mov rcx, rdi
call fcn.14000eee0
add rdi, 0x20
mov qword [rbp + 0x6f8], rdi
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x68]
call fcn.14000e930
nop
lea rcx, [rbp + 0x5e0]
call fcn.1400546d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x768]
call fcn.14000e930
add rsi, 0x20
cmp rsi, r15
jne 0x140039a40
mov qword [rbp + 0x760], rsi
mov r15, qword [rbp + 0x728]
mov rsi, qword [rbp + 0x720]
mov r13d, dword [rsp + 0x24]
xor r14d, r14d
lea rdi, [fcn.140005730]
test rsi, rsi
je 0x140039be4
cmp rsi, r15
je 0x140039bcd
xor r8d, r8d
mov dl, 1
mov rcx, rsi
call fcn.14000e930
add rsi, 0x20
cmp rsi, r15
jne 0x140039bb0
mov rsi, qword [rbp + 0x720]
mov r8, qword [rbp + 0x730]
sub r8, rsi
sar r8, 5
mov rdx, rsi
call fcn.14000f2d0
nop
mov rax, qword [rbp + 0x758]
or ecx, 0xffffffff
lock xadd dword [rax + 8], ecx
lea eax, [rcx - 1]
test eax, eax
jne 0x140039c13
mov rbx, qword [rbp + 0x758]
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 + 0x740]
add rbx, 0x18
mov qword [rbp + 0x740], rbx
cmp rbx, qword [rbp + 0x710]
lea rsi, [0x14003ff00]
jne 0x140039930
mov r12, qword [rsp + 0x30]
mov rax, qword [rbp + 0x6f0]
mov qword [r12], rax
mov rax, qword [rbp + 0x6f8]
mov qword [r12 + 8], rax
mov rax, qword [rbp + 0x700]
mov qword [r12 + 0x10], rax
lea rcx, [rbp + 0x790]
call fcn.14003be90
nop
lea rcx, [rbp + 0x708]
call fcn.14003a610
nop
mov rax, r12
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.140062f80
lea r11, [rsp + 0x910]
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