Function at 0x1400399c0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov rbx, qword [0x1401f7b98]
test rbx, rbx
jne 0x140039a17
lea ecx, [rbx + 0x28]
call fcn.1400f2ce0
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140039a0d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x140039a10
mov rbx, r15
mov qword [0x1401f7b98], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jne 0x140039a78
mov rcx, qword [0x1401f7b98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140039a65
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039a5b
mov ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140039a65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp qword [rsi], 0
je 0x140039ad1
mov rcx, qword [0x1401f7b98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140039abe
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039ab4
mov ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140039abe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
imul eax, dword [rdi + 0x88], 0x343fd
add eax, 0x269ec3
shr eax, 0x10
and eax, 0x7fff
mov dword [rdi + 0x88], eax
mov ebx, 0xffffffff
cmp qword [rsi], 0
jne 0x140039d0e
mov rbp, qword [r14]
cmp dword [rbp - 0x10], 0
jle 0x140039b8f
lea edx, [rbx + 0x5d]
mov rcx, rbp
call fcn.140135eb8
test rax, rax
je 0x140039b8f
cmp word [rax], 0
je 0x140039b8f
sub rax, rbp
sar rax, 1
test eax, eax
js 0x140039b8f
mov rbp, qword [r14]
cmp dword [rbp - 0x10], 0
jle 0x140039b52
lea rdx, [0x140193b68]
mov rcx, rbp
call fcn.140135f34
test rax, rax
je 0x140039b52
sub rax, rbp
sar rax, 1
cmp eax, 1
je 0x140039b79
mov rbp, qword [r14]
cmp dword [rbp - 0x10], 0
jle 0x140039b8f
lea rdx, [0x140193b70]
mov rcx, rbp
call fcn.140135f34
test rax, rax
je 0x140039b8f
sub rax, rbp
sar rax, 1
test eax, eax
jne 0x140039b8f
mov r9d, 8
mov rdx, qword [r14]
mov rcx, rsi
call fcn.140049af0
jmp 0x140039d0e
xor edx, edx
mov cl, 1
call fcn.14004a260
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x140039bad
add rdx, 0x620
jmp 0x140039bb4
lea rdx, [0x14018ac20]
lea rcx, [rsp + 0x70]
call fcn.140002450
nop
mov rax, qword [rsp + 0x70]
cmp dword [rax - 0x10], 0
jle 0x140039cce
mov r8, r14
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140038110
nop
mov r9d, 8
mov rdx, qword [rax]
mov rcx, rsi
call fcn.140049af0
movzx ebp, al
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov ecx, dword [rdx + 0x10]
cmp ecx, 0x7ffffc17
je 0x140039c27
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039c1d
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140039c27
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bpl, bpl
jne 0x140039cdd
lea r8, [0x140193b78]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140038200
nop
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140038110
nop
mov r9d, 8
mov rdx, qword [rax]
mov rcx, rsi
call fcn.140049af0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140039c9b
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039c91
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140039c9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140039ccc
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039cc2
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140039ccc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140039cdd
xor r9d, r9d
mov rdx, qword [r14]
mov rcx, rsi
call fcn.140049af0
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140039d0e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039d04
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140039d0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x140039e58
lea rax, [rdi + 0x28]
cmp rsi, rax
jne 0x140039d6e
lea rdx, str.GetJRToolsDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039d40
mov ecx, 0x30d70
call rax
mov qword [rdi + 0x38], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140039e16
mov rax, qword [0x1401f7bb0]
test rax, rax
je 0x140039d5d
mov r15, qword [rax + 8]
mov rax, qword [rcx]
mov r8, r15
movzx edx, byte [rdi + 0x30]
call qword [rax]
jmp 0x140039e58
lea rax, [rdi + 0x40]
cmp rsi, rax
jne 0x140039da6
lea rdx, str.GetJRPlayerDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039d8f
call rax
mov qword [rdi + 0x50], rax
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140039e16
mov rax, qword [rcx]
movzx edx, byte [rdi + 0x48]
call qword [rax]
jmp 0x140039e58
lea rax, [rdi + 0x10]
cmp rsi, rax
jne 0x140039ddb
lea rdx, str.GetJRImageAppDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039dc7
call rax
mov qword [rdi + 0x20], rax
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140039e16
mov rax, qword [rcx]
movzx edx, byte [rdi + 0x30]
call qword [rax]
jmp 0x140039e58
lea rax, [rdi + 0x70]
cmp rsi, rax
jne 0x140039e20
lea rdx, str.GetJRTelevisionDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039dff
call rax
mov qword [rdi + 0x80], rax
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140039e16
mov rax, qword [rcx]
movzx edx, byte [rdi + 0x78]
call qword [rax]
jmp 0x140039e58
mov rcx, rsi
call fcn.14004a0c0
jmp 0x140039e58
lea rdx, str.JRReaderInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039e38
movzx ecx, byte [rdi + 8]
call rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140039e58
lea rdx, str.JRDiscInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039e58
movzx ecx, byte [rdi + 0x60]
call rax
mov rcx, qword [0x1401f7b98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rsi], 0
setne dil
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140039e9b
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039e90
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140039e9b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
movzx eax, dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret