Function at 0x14007d8f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rsi, rcx
mov r8, qword [rcx + 0xa8]
mov eax, dword [r8 + 8]
dec eax
test eax, 0xfffffff6
je 0x14007dc03
lea rax, [rbp - 0x68]
mov qword [rbp - 0x78], rax
xor r15d, r15d
mov dword [rbp - 0x70], r15d
mov dword [rbp - 0x6c], 0x104
mov word [rbp - 0x68], r15w
lea rax, [0x1401b7690]
mov qword [rbp - 0x80], rax
add r8, 0x29c
lea rdx, str._sConfig_
lea rcx, [rbp - 0x80]
call fcn.1400038c0
mov rcx, qword [rbp - 0x78]
call fcn.140011720
lea r8, str.Extract_license
lea rdx, str.Install
lea rcx, [0x140229810]
call fcn.140092000
lea r12, [0x1401b76b0]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 0xffffffffffffffff
xor r14b, r14b
mov r8, qword [rsi + 0xa8]
add r8, 0x29c
lea rdx, str._sConfig_terminal.lic
lea rcx, [rbp - 0x80]
call fcn.1400038c0
mov rbx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14007d9e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x78], rcx
test rbx, rbx
je 0x14007da1a
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rsp + 0x78], rax
cmp rcx, 0xffffffffffffffff
je 0x14007db53
mov rdi, qword [rsi + 0xb0]
movzx eax, word [rdi + 0x1e]
test ax, ax
je 0x14007dad4
cmp eax, dword [rdi + 0x70]
jne 0x14007dad4
lea rdx, [rdi + 8]
mov eax, r15d
mov dword [rbp + 0x1d0], eax
test rdx, rdx
je 0x14007da80
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1d0]
mov r8d, 0x58
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007da7a
mov eax, r15d
mov dword [rbp + 0x1d0], eax
jmp 0x14007da80
mov eax, dword [rbp + 0x1d0]
lock add qword [0x1401f4d68], rax
cmp dword [rbp + 0x1d0], 0x58
jne 0x14007dad4
mov ebx, r15d
cmp dword [rdi + 0x70], ebx
jbe 0x14007dabf
nop dword [rax]
mov ecx, ebx
shl rcx, 4
add rcx, qword [rdi + 0x68]
lea rdx, [rsp + 0x70]
call fcn.14001b690
test al, al
je 0x14007dad4
inc ebx
cmp ebx, dword [rdi + 0x70]
jb 0x14007daa0
mov r14b, 1
lea rcx, [rsi + 0x8f0]
mov rdx, qword [rbp - 0x78]
call fcn.14001ce50
jmp 0x14007db37
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
lea rax, [0x14021b140]
mov qword [rsp + 0x48], rax
lea rax, [0x14021b040]
mov qword [rsp + 0x40], rax
lea rax, str.Install_Fail_License_Extract
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r15
lea rax, [0x140215c8a]
mov qword [rsp + 0x20], rax
lea r9, [0x140215c3a]
lea r8, [0x140215b3a]
mov edx, 1
lea rcx, [0x140215a10]
call fcn.140058af0
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14007dbb6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], 0xffffffffffffffff
jmp 0x14007dbb6
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
lea rax, [0x14021b140]
mov qword [rsp + 0x48], rax
lea rax, [0x14021b040]
mov qword [rsp + 0x40], rax
lea rax, str.Install_Fail_License_Open
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r15
lea rax, [0x140215c8a]
mov qword [rsp + 0x20], rax
lea r9, [0x140215c3a]
lea r8, [0x140215b3a]
mov edx, 1
lea rcx, [0x140215a10]
call fcn.140058af0
lea rax, str.done
lea r9, str.failed
test r14b, r14b
cmovne r9, rax
lea r8, str.Extract_license__s
lea rdx, str.Install
lea rcx, [0x140229810]
call fcn.140092000
nop
mov qword [rsp + 0x70], r12
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14007dbfd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, r14b
jmp 0x14007dc05
mov al, 1
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret