Function at 0x140001380
Capabilities:
Create thread
Get common file path
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x6a0
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov r14, rcx
cmp qword [rcx + 8], 0
jne 0x1400013e4
mov ecx, 8
call fcn.140003eb0
mov rbx, rax
mov qword [rsp + 0x40], rax
mov edx, 0x1000
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
mov qword [r14 + 8], rbx
xor ebp, ebp
mov esi, ebp
lea rdi, [r14 + 0x20]
nop dword [rax]
cmp qword [rdi], 0
jne 0x140001519
mov ecx, 0x28
call fcn.140003eb0
mov r15, rax
mov qword [rsp + 0x40], rax
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], ebp
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov ecx, 8
call fcn.140003eb0
mov rbx, rax
mov qword [rsp + 0x48], rax
mov edx, 0x2f000
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
mov qword [r15], rbx
mov rax, qword [rbx]
mov qword [r15 + 8], rax
mov eax, esi
and eax, 1
add eax, 0x53
mov r9d, esi
shr r9d, 1
mov dword [rsp + 0x20], eax
lea r8, str.Tuner_d_ISDB__c.ts
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400010e0
mov ecx, 8
call fcn.140003eb0
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rax], 0xffffffffffffffff
mov qword [r15 + 0x10], rax
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x270]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.1400010e0
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x140001516
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov qword [rdi], r15
inc esi
add rdi, 8
cmp esi, 4
jb 0x1400013f0
mov rcx, qword [r14]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + pe_nt_image_headers64]
test eax, eax
je 0x140001549
lea rdx, str.Device::GetBufferInfo__
jmp 0x1400016ac
cmp dword [rsp + 0x50], 0
jne 0x140001589
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 4
mov rcx, qword [r14]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0xf0]
test eax, eax
je 0x140001589
lea rdx, str.Device::SetBufferInfo__
jmp 0x1400016ac
mov esi, ebp
nop dword [rax + rax]
mov edi, ebp
nop dword [rax]
nop word [rax + rax]
mov ebx, ebp
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, esi
call qword [rax + 0x100]
test eax, eax
je 0x1400015d1
mov r8d, eax
lea rdx, str.Device::GetBufferPtr__
lea rcx, [0x14003a218]
call fcn.140001020
jmp 0x1400015ed
imul ecx, edi, 0x1ff
add ecx, ebx
shl ecx, 0xc
add ecx, 0xffc
shr ecx, 2
mov rax, qword [rsp + 0x40]
mov dword [rax + rcx*4], ebp
inc ebx
cmp ebx, 0x1ff
jb 0x1400015a2
inc edi
cmp edi, 4
jb 0x1400015a0
inc esi
cmp esi, 0x10
jb 0x140001590
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x108]
test eax, eax
je 0x140001621
lea rdx, str.Device::ResetTransferCounter__
jmp 0x1400016ac
mov ebx, ebp
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x110]
test eax, eax
jne 0x1400016a5
inc ebx
cmp ebx, 0x40
jb 0x140001623
mov rcx, qword [r14]
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x138]
test eax, eax
je 0x140001655
lea rdx, str.Device::SetTransferEnable__
jmp 0x1400016ac
mov byte [r14 + 0x48], 0
mov ecx, 0x18
call fcn.140003eb0
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rax, [0x140001b50]
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140001360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov qword [r14 + 0x40], rbx
jmp 0x1400016bb
lea rdx, str.Device::IncrementTransferCounter__
mov r8d, eax
lea rcx, [0x14003a218]
call fcn.140001020
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140003e90
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret