Function at 0x140053c00
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc8
mov r14, rcx
mov dword [rcx + 8], 1
xor ebp, ebp
mov qword [rcx], rbp
mov byte [rcx + 0x10], bpl
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x30], ebp
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x30], ebp
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0xa0], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x40], 4
mov eax, eax
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x38], 0x1f
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x68], rax
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rsp + 0x108], rax
lea r9, [rsp + 0x108]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x50]
lea rcx, str.JRiver_Process_v_d___d_
call fcn.14005db80
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x110]
call fcn.1400333a0
nop
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
lea rsi, [rbp - 1]
cmp eax, 0x7ffffc17
je 0x140053d57
mov eax, dword [rdx + 0x10]
cmp eax, esi
je 0x140053d4d
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140053d57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov ecx, 0x20
call fcn.1400df728
mov rdi, rax
mov qword [rsp + 0x118], rax
lea rax, vtable.JRSharedMemory.0
mov qword [rdi], rax
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x10], rbp
mov rbx, qword [rsp + 0x110]
test rbx, rbx
je 0x140053e10
cmp word [rbx], 0
je 0x140053e10
xor r9d, r9d
mov rdx, rbx
lea rcx, [rdi + 8]
call fcn.140038290
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc70
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140053df6
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x18], rax
cmp qword [rdi + 0x18], 0
jne 0x140053e10
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140053e10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], rbp
mov rcx, r14
call fcn.1400552a0
mov dword [r14 + 8], 1
mov qword [r14], rdi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140053e3e
cmp byte [rax], 0
jne 0x140053e3e
mov rcx, r14
call fcn.140053e80
mov byte [r14 + 0x10], 1
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140053e68
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140053e5e
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140053e68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, r14
add rsp, 0xc8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret