Function at 0x14000f110
Capabilities:
Allocate thread local storage
Check mutex on windows
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
lea rbx, [0x14023d458]
lea rsi, [0x14023d468]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rsi
jl 0x14000f150
lea r8, str.016c41be_f0a5_4b05_a6ba_d543a018e3bc
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14000f19b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000f19b
lea rcx, str.DVR_already_running__exit.__m__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000f554
lea r8, str.DVRSafeExit
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14000f1d2
lea rcx, str.DVR_already_running__exit.__e__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000f554
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 4
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r8d, r8d
lea r9, str.DVRSafeExit
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [0x14023d398], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xorps xmm0, xmm0
mov byte [0x14023d342], 0
xor esi, esi
mov qword [0x14023d3a0], rax
lea rcx, [rbp + 0x27]
mov qword [rbp + 0x3f], rsi
movdqu xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rsi
call fcn.14000eb40
test eax, eax
jne 0x14000f541
lea ecx, [rsi + 8]
call fcn.14014f310
lea rcx, [0x14000ed60]
mov r9, rax
lea r8, [0x14000f6d0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.14016b4dc
mov qword [rbp + 0x17], rax
test rax, rax
je 0x14000f57e
cmp dword [rbp + 0x1f], esi
je 0x14000f5b0
movaps xmm0, xmmword [rbp + 0x17]
lea rcx, [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
call fcn.140129c40
test eax, eax
jne 0x14000f58c
xorps xmm0, xmm0
lea ecx, [rsi + 3]
movdqa xmmword [rbp + 0x17], xmm0
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [rsi + 1]
xor ecx, ecx
call fcn.14016b5e8
lea ecx, [rsi + 8]
call fcn.14014f310
lea rcx, [0x14000efe0]
mov r9, rax
lea r8, [0x14000f6d0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.14016b4dc
mov qword [rbp + 7], rax
test rax, rax
je 0x14000f5a2
cmp dword [rbp + 0xf], esi
je 0x14000f5b0
movaps xmm0, xmmword [rbp + 7]
lea rcx, [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
call fcn.140129c40
test eax, eax
jne 0x14000f594
mov rcx, qword [rbp + 0x27]
xorps xmm0, xmm0
mov rdx, rdi
movdqa xmmword [rbp + 7], xmm0
call fcn.140055fd0
mov rcx, qword [rbp + 0x37]
mov byte [0x14023d342], 1
test rcx, rcx
je 0x14000f350
call fcn.14002f8f0
call fcn.1400617e0
mov rax, qword [0x14023d288]
test rax, rax
je 0x14000f36a
mov rcx, qword [0x14023d248]
call rax
mov rcx, qword [0x14023d338]
test rcx, rcx
je 0x14000f37c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x14023d310]
mov qword [0x14023d338], rsi
test rbx, rbx
je 0x14000f3ab
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000f39e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.14014f59c
cmp dword [0x140230ce8], 2
mov qword [0x14023d220], rsi
mov qword [0x14023d288], rsi
mov qword [0x14023d208], rsi
mov qword [0x14023d350], rsi
mov qword [0x14023d290], rsi
mov qword [0x14023d2a8], rsi
mov qword [0x14023d260], rsi
mov qword [0x14023d348], rsi
mov qword [0x14023d2b8], rsi
mov qword [0x14023d210], rsi
mov qword [0x14023d298], rsi
mov qword [0x14023d380], rsi
mov qword [0x14023d2f8], rsi
mov qword [0x14023d2d8], rsi
mov qword [0x14023d330], rsi
mov qword [0x14023d370], rsi
mov qword [0x14023d2d0], rsi
mov qword [0x14023d270], rsi
mov qword [0x14023d320], rsi
mov qword [0x14023d238], rsi
mov qword [0x14023d250], rsi
mov qword [0x14023d278], rsi
mov qword [0x14023d218], rsi
mov qword [0x14023d300], rsi
mov qword [0x14023d2e0], rsi
mov qword [0x14023d1f0], rsi
mov qword [0x14023d368], rsi
mov qword [0x14023d360], rsi
mov qword [0x14023d2a0], rsi
mov qword [0x14023d308], rsi
mov qword [0x14023d1f8], rsi
mov qword [0x14023d240], rsi
mov qword [0x14023d318], rsi
mov qword [0x14023d2b0], rsi
mov qword [0x14023d2c0], rsi
mov qword [0x14023d2c8], rsi
mov qword [0x14023d378], rsi
mov qword [0x14023d2e8], rsi
mov qword [0x14023d1e8], rsi
mov qword [0x14023d228], rsi
mov qword [0x14023d1e0], rsi
mov qword [0x14023d280], rsi
mov qword [0x14023d358], rsi
mov qword [0x14023d258], rsi
mov qword [0x14023d200], rsi
mov qword [0x14023d328], rsi
mov qword [0x14023d2f0], rsi
mov qword [0x14023d230], rsi
mov qword [0x14023d268], rsi
jne 0x14000f510
call fcn.140083110
mov rcx, qword [0x140230d30]
mov word [0x140230d38], si
test rcx, rcx
je 0x14000f528
call fcn.14016e938
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x14000f537
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp dword [rbp + 0xf], esi
jne 0x14000f59c
cmp dword [rbp + 0x1f], esi
jne 0x14000f59c
mov rcx, qword [0x14023d398]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 6
mov dword [rbp + 0x1f], esi
call fcn.140129a18
int3
mov ecx, eax
call fcn.1401299dc
int3
mov ecx, eax
call fcn.1401299dc
int3
call fcn.14016b5bc
int3
mov ecx, 6
mov dword [rbp + 0xf], esi
call fcn.140129a18
int3
mov ecx, 1
call fcn.140129a18
int3