Function at 0x140047aa0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rsi, rcx
mov dword [rcx + 8], 1
xor r12d, r12d
mov qword [rcx], r12
mov byte [rcx + 0x10], r12b
cmp dword [0x14021c658], 0xb23a8c33
je 0x140047b07
mov ecx, 0x6c0
call fcn.140111d34
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140047afb
mov rcx, rax
call fcn.140036570
mov rcx, rax
jmp 0x140047afe
mov rcx, r12
mov qword [0x140229e08], rcx
jmp 0x140047b0e
mov rcx, qword [0x140229e08]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov qword [rbp + 0x77], rax
mov dword [rbp - 0x69], r12d
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x69], r12d
movaps xmm1, xmmword [rbp - 0x69]
movdqa xmmword [rbp + 7], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x59], 4
mov eax, eax
mov qword [rbp - 0x51], rax
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 9], xmm0
mov dword [rbp - 0x69], 4
mov qword [rbp - 0x61], 0x1f
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x19], xmm0
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rax
lea rax, [rbp + 7]
mov qword [rbp - 0x39], rax
lea rax, [rbp + 0x17]
mov qword [rbp - 0x31], rax
cmp dword [0x14021c658], 0xb23a8c33
je 0x140047bbe
mov ecx, 0x6c0
call fcn.140111d34
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140047bb2
mov rcx, rax
call fcn.140036570
mov rcx, rax
jmp 0x140047bb5
mov rcx, r12
mov qword [0x140229e08], rcx
jmp 0x140047bc5
mov rcx, qword [0x140229e08]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov qword [rbp + 0x6f], rax
lea r9, [rbp + 0x6f]
mov r8d, 4
lea rdx, [rbp - 0x49]
lea rcx, str.JRiver_Process_v_d___d_
call fcn.140057940
lea rdx, [rbp + 0x6f]
lea rcx, [rbp + 0x77]
call fcn.140037020
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
mov r14, 0xffffffffffffffff
cmp eax, 0x7ffffc17
je 0x140047c2f
mov eax, dword [rdx + 0x10]
cmp eax, r14d
je 0x140047c25
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140047c2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov ecx, 0x20
call fcn.140111d34
mov rdi, rax
mov qword [rbp + 0x7f], rax
mov rbx, qword [rbp + 0x77]
test rax, rax
je 0x140047ce7
lea rax, vtable.JRSharedMemory.0
mov qword [rdi], rax
lea rcx, [rdi + 8]
call fcn.14000a680
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r12
test rbx, rbx
je 0x140047ce5
cmp word [rbx], 0
je 0x140047ce5
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
lea rcx, [rdi + 8]
call fcn.14003bb00
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc70
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140047ccb
mov qword [rsp + 0x20], r12
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 0x140047ce5
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140047ce5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], r12
jmp 0x140047cea
mov rdi, r12
mov rcx, rsi
call fcn.1400492e0
mov dword [rsi + 8], 1
mov qword [rsi], rdi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140047d16
cmp byte [rax], 0
jne 0x140047d16
mov rcx, rsi
call fcn.140047d60
mov byte [rsi + 0x10], 1
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140047d42
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140047d38
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140047d42
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rsi
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret