Function at 0x140044cd0
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 [0x140229e10]
test rbx, rbx
jne 0x140044d27
lea ecx, [rbx + 0x28]
call fcn.140111d34
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140044d1d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x140044d20
mov rbx, r15
mov qword [0x140229e10], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jne 0x140044d88
mov rcx, qword [0x140229e10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140044d75
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140044d6b
mov ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140044d75
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 0x140044de1
mov rcx, qword [0x140229e10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140044dce
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140044dc4
mov ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140044dce
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 0x14004501e
mov rbp, qword [r14]
cmp dword [rbp - 0x10], 0
jle 0x140044e9f
lea edx, [rbx + 0x5d]
mov rcx, rbp
call fcn.140153294
test rax, rax
je 0x140044e9f
cmp word [rax], 0
je 0x140044e9f
sub rax, rbp
sar rax, 1
test eax, eax
js 0x140044e9f
mov rbp, qword [r14]
cmp dword [rbp - 0x10], 0
jle 0x140044e62
lea rdx, [0x1401bb378]
mov rcx, rbp
call fcn.140153058
test rax, rax
je 0x140044e62
sub rax, rbp
sar rax, 1
cmp eax, 1
je 0x140044e89
mov rbp, qword [r14]
cmp dword [rbp - 0x10], 0
jle 0x140044e9f
lea rdx, [0x1401baf0c]
mov rcx, rbp
call fcn.140153058
test rax, rax
je 0x140044e9f
sub rax, rbp
sar rax, 1
test eax, eax
jne 0x140044e9f
mov r9d, 8
mov rdx, qword [r14]
mov rcx, rsi
call fcn.14005d4a0
jmp 0x14004501e
xor edx, edx
mov cl, 1
call fcn.140047a40
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x140044ebd
add rdx, 0x620
jmp 0x140044ec4
lea rdx, [0x1401acff0]
lea rcx, [rsp + 0x70]
call fcn.14000a4d0
nop
mov rax, qword [rsp + 0x70]
cmp dword [rax - 0x10], 0
jle 0x140044fde
mov r8, r14
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.14003f2b0
nop
mov r9d, 8
mov rdx, qword [rax]
mov rcx, rsi
call fcn.14005d4a0
movzx ebp, al
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov ecx, dword [rdx + 0x10]
cmp ecx, 0x7ffffc17
je 0x140044f37
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140044f2d
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044f37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bpl, bpl
jne 0x140044fed
lea r8, [0x1401bb380]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.14003f3a0
nop
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14003f2b0
nop
mov r9d, 8
mov rdx, qword [rax]
mov rcx, rsi
call fcn.14005d4a0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140044fab
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140044fa1
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044fab
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 0x140044fdc
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140044fd2
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044fdc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140044fed
xor r9d, r9d
mov rdx, qword [r14]
mov rcx, rsi
call fcn.14005d4a0
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004501e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140045014
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004501e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x140045168
lea rax, [rdi + 0x28]
cmp rsi, rax
jne 0x14004507e
lea rdx, str.GetJRToolsDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140045050
mov ecx, 0x30d70
call rax
mov qword [rdi + 0x38], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140045126
mov rax, qword [0x140229e60]
test rax, rax
je 0x14004506d
mov r15, qword [rax + 8]
mov rax, qword [rcx]
mov r8, r15
movzx edx, byte [rdi + 0x30]
call qword [rax]
jmp 0x140045168
lea rax, [rdi + 0x40]
cmp rsi, rax
jne 0x1400450b6
lea rdx, str.GetJRPlayerDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004509f
call rax
mov qword [rdi + 0x50], rax
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140045126
mov rax, qword [rcx]
movzx edx, byte [rdi + 0x48]
call qword [rax]
jmp 0x140045168
lea rax, [rdi + 0x10]
cmp rsi, rax
jne 0x1400450eb
lea rdx, str.GetJRImageAppDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400450d7
call rax
mov qword [rdi + 0x20], rax
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140045126
mov rax, qword [rcx]
movzx edx, byte [rdi + 0x30]
call qword [rax]
jmp 0x140045168
lea rax, [rdi + 0x70]
cmp rsi, rax
jne 0x140045130
lea rdx, str.GetJRTelevisionDLL
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004510f
call rax
mov qword [rdi + 0x80], rax
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140045126
mov rax, qword [rcx]
movzx edx, byte [rdi + 0x78]
call qword [rax]
jmp 0x140045168
mov rcx, rsi
call fcn.14005da30
jmp 0x140045168
lea rdx, str.JRReaderInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140045148
movzx ecx, byte [rdi + 8]
call rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140045168
lea rdx, str.JRDiscInitialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140045168
movzx ecx, byte [rdi + 0x60]
call rax
mov rcx, qword [0x140229e10]
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 0x1400451ab
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400451a0
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400451ab
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