Function at 0x140158a20
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x148], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x58]
call fcn.14001bf70
nop
cmp qword [rbx + 0x10], 0
jne 0x140158a81
mov r8d, 0x2e
lea rdx, str.HShareMemLogServer_Heanughor_Mozart_ShuangWang
lea rcx, [rsp + 0x58]
call fcn.140004c40
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.14001c140
nop
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140158dc0
nop
lea rcx, [rbp - 0x28]
call fcn.14001d440
lea eax, [rsi - 0x32]
cmp eax, 0x9fffce
ja 0x140158d3f
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
movzx eax, byte [rdi + 0xb]
test al, al
je 0x140158ae6
mov r8d, 7
lea rdx, [0x1402d5500]
lea rcx, [rbp - 0x48]
call fcn.140004c40
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x38]
call fcn.140158620
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r8, qword [rsp + 0x38]
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rcx, rax
mov qword [rdi + 0x970], rax
test rax, rax
jne 0x140158b2f
lea ebx, [rax - 1]
jmp 0x140158cb6
cmp byte [rdi + 0xa04], 0
jne 0x140158b5f
mov eax, esi
shl eax, 4
add eax, 4
cdqe
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x978], rax
mov rax, qword [rdi + 0x978]
xor ebx, ebx
test rax, rax
jne 0x140158bbb
mov byte [rdi + 0xa04], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rdi + 0x970]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x978], rax
test rax, rax
jne 0x140158bbb
mov rcx, qword [rdi + 0x970]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x970], rbx
mov ebx, 0xfffffffe
jmp 0x140158cb6
lea r8, str._Mutex
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.1401586d0
nop
lea rcx, [rdi + 0x980]
mov r8d, 0x3e8
lea rdx, [rbp - 0x68]
call fcn.1400590c0
lea r8, str._Event
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1401586d0
nop
lea rcx, [rdi + 0x9b0]
xor r8d, r8d
lea rdx, [rsp + 0x78]
call fcn.1400578d0
mov dword [rdi + 0x9fc], esi
mov byte [rdi + 9], 1
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140158c58
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140158c53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140158da4
call fcn.140283144
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140158ca5
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140158ca0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140158daa
call fcn.140283144
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140158cf3
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140158cee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140158db0
call fcn.140283144
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140158d44
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140158d38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140158db6
call fcn.140283144
jmp 0x140158d44
mov ebx, 0xffffff16
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140158d7d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140158d78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140158d9e
call fcn.140283144
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret
call fcn.140287d84
nop
call fcn.140287d84
nop
call fcn.140287d84
nop
call fcn.140287d84
nop
call fcn.140287d84
int3