Function at 0x140001d10
Capabilities:
Check mutex on windows
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x60
mov r13, rcx
call fcn.140001bf0
cmp eax, 0xe
jg 0x140001d3a
call fcn.140001cc0
cmp eax, 4
jle 0x140001f10
lea rcx, [0x14001a220]
call fcn.140006e10
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r12, rax
mov rcx, rax
call rsi
mov rcx, r12
mov r14, rax
call fcn.140006ea0
lea rcx, [0x14001a241]
call fcn.140006d90
mov rcx, r14
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov rdx, rax
call rdi
mov rcx, r12
mov rbx, rax
call fcn.140006ea0
test rbx, rbx
je 0x140001f20
lea r14, [rsp + 0x20]
mov rcx, r14
call rbx
cmp dword [rsp + 0x40], 3
ja 0x140001e18
lea rcx, [0x14001a220]
call fcn.140006e10
mov r12, rax
mov rcx, rax
call rsi
mov rcx, r12
mov r15, rax
call fcn.140006ea0
lea rcx, [0x14001a241]
call fcn.140006d90
mov rcx, r15
mov r12, rax
mov rdx, rax
call rdi
mov rcx, r12
mov rbx, rax
call fcn.140006ea0
mov rcx, r14
test rbx, rbx
je 0x140001f38
call rbx
cmp dword [rsp + 0x40], 7
jbe 0x140001e90
mov rcx, r13
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
jmp 0x140005cf0
lea rcx, [0x14001a260]
call fcn.140006e10
mov r12, rax
mov rcx, rax
call rsi
mov rcx, r12
mov r15, rax
call fcn.140006ea0
lea rcx, [0x14001a281]
call fcn.140006d90
mov rcx, r15
mov r12, rax
mov rdx, rax
call rdi
mov rcx, r12
mov rbx, rax
call fcn.140006ea0
mov dword [rsp + 0x20], 0x40
mov rcx, r14
call rbx
test eax, eax
je 0x140001da3
mov rax, qword [rsp + 0x28]
shr rax, 0x14
cmp eax, 0xeff
jg 0x140001dfd
jmp 0x140001da3
lea rcx, [0x14001a260]
call fcn.140006e10
mov r12, rax
mov rcx, rax
call rsi
mov rcx, r12
mov r15, rax
call fcn.140006ea0
lea rcx, [0x14001a281]
call fcn.140006d90
mov rcx, r15
mov r12, rax
mov rdx, rax
call rdi
mov rcx, r12
mov rbx, rax
call fcn.140006ea0
mov dword [rsp + 0x20], 0x40
mov rcx, r14
call rbx
test eax, eax
je 0x140001ef6
mov rax, qword [rsp + 0x28]
shr rax, 0x14
cmp eax, 0x1fff
jg 0x140001dfd
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140001810
cmp eax, 4
jg 0x140001d3a
jmp 0x140001ef6
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x140001d9c
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x140001df2
push r15
push r14
push r13
push r12
sub rsp, 0x28
mov qword [0x14001f0c0], rcx
mov r14, rcx
lea rcx, [0x1400190a0]
call fcn.140006e10
xor ecx, ecx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r13, rax
test rax, rax
je 0x140005d5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140005d70
call fcn.1400082d0
test eax, eax
je 0x140005d98
mov rdx, r12
mov rcx, r14
call fcn.140005010
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp fcn.140006ea0
lea rcx, [0x14001a8be]
call fcn.140006e10
mov rcx, rax
mov r15, rax
call fcn.140008140
test eax, eax
jne 0x140005db0
mov rcx, r15
call fcn.140006ea0
jmp 0x140005d53
mov rcx, r14
call fcn.140005af0
test eax, eax
jne 0x140005d53
jmp 0x140005d48
call fcn.1400082d0
test eax, eax
je 0x140005dd0
mov rdx, r12
mov rcx, r14
call fcn.140005010
jmp 0x140005d8b
mov rcx, r14
call fcn.140005af0
test eax, eax
jne 0x140005d8b
jmp 0x140005db9