Function at 0x140001270
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x140026058]
xor rax, rsp
mov qword [rsp + 0x220], rax
lea rdx, [0x14001a3d0]
lea rcx, str.license_nr.txt
call fcn.140005e84
mov rbx, rax
test rax, rax
je 0x14000148a
lea r8, str.PDFLIB_KeyGen_Mutex
mov qword [rsp + 0x248], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x1400014c0
cmp dword [0x140026c60], 0
je 0x1400012f8
mov ecx, 2
call fcn.140005ae8
mov rcx, rax
lea r8, str.license_nr.txt
lea rdx, str.try_to_lock:__s_n
call fcn.140001730
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400014ef
mov eax, dword [0x140026c60]
test eax, eax
je 0x14000133e
mov ecx, 2
call fcn.140005ae8
mov rcx, rax
lea r8, str.license_nr.txt
lea rdx, str.locked:__s_n
call fcn.140001730
mov eax, dword [0x140026c60]
cmp eax, 2
jne 0x140001371
lea rcx, str.File_locked__press__RET__to_continue_n
call fcn.140001fe0
xor ecx, ecx
call fcn.140005ae8
mov r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0x200
call fcn.140005dc0
test rax, rax
je 0x14000151e
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x200
call fcn.140005dc0
test rax, rax
je 0x140001542
mov rcx, rbx
mov qword [rsp + 0x240], rsi
call fcn.140005e90
lea rcx, [rsp + 0x20]
call fcn.14000599c
mov esi, eax
lea ecx, [rax - 0x30d40]
cmp ecx, 0x30d3f
ja 0x14000145b
lea r8d, [rax + 1]
lea rdx, str._06d
lea rcx, section..data
call fcn.1400020a0
lea r8, section..data
mov rcx, rbx
lea rdx, [0x14001a4f0]
call fcn.140001730
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x140001566
cmp dword [0x140026c60], 0
je 0x140001421
mov ecx, 2
call fcn.140005ae8
mov rcx, rax
lea r8, str.license_nr.txt
lea rdx, str.unlocked:__s_n
call fcn.140001730
mov rcx, rbx
call fcn.140005bf4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x240]
mov rdi, qword [rsp + 0x248]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400028e0
add rsp, 0x230
pop rbx
ret
mov rcx, rbx
call fcn.140005bf4
mov ecx, 2
call fcn.140005ae8
mov rcx, rax
lea rdx, str.Licence_nr_out_of_range:__d_n
mov r8d, esi
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3
call fcn.140004a60
mov ecx, 2
mov rbx, rax
call fcn.140005ae8
mov r9d, dword [rbx]
lea r8, str.license_nr.txt
mov rcx, rax
lea rdx, str.Cannot_open_file__s__errno__d__n
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140005ae8
mov rcx, rax
lea rdx, str.CreateMutex_error:__dn_n
mov r8d, ebx
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140005ae8
mov rcx, rax
lea rdx, str.WaitForSingleObject_error:__dn_n
mov r8d, ebx
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3
mov ecx, 2
call fcn.140005ae8
mov rcx, rax
lea rdx, str.fgets_failed_n
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3
mov ecx, 2
call fcn.140005ae8
mov rcx, rax
lea rdx, str.fgets_failed_n
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3
mov rcx, rbx
call fcn.140005bf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140005ae8
mov rcx, rax
lea rdx, str.ReleaseMutex_failed:__d_n
mov r8d, ebx
call fcn.140001730
mov ecx, 1
call fcn.140004ed0
int3