Function at 0x7ff662982db4
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rdx
mov qword [0x7ff66298de70], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [0x7ff66298d560]
mov r8d, 0x910
xor edi, edi
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [0x7ff66298cd00]
mov r8d, 0x32c
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [0x7ff66298cba0]
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea r14d, [rdi + 1]
lea r8d, [rdi + 0x7f]
mov dword [0x7ff66298d818], r14d
lea rdx, [0x7ff66298d578]
lea rcx, [0x7ff662989854]
call fcn.7ff662985050
dec eax
xor r9d, r9d
xor ecx, ecx
cmp eax, 0x7f
ja 0x7ff6629830a5
mov r8d, r14d
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov rcx, rax
mov qword [0x7ff66298c838], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
lea r8d, [rdi + 4]
lea rdx, [0x7ff66298de64]
lea rcx, [0x7ff662989860]
call fcn.7ff662985050
test eax, eax
jne 0x7ff662982ec3
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 0x4b1
mov dword [rsp + 0x20], 0x10
call fcn.7ff662984dcc
mov dword [0x7ff66298d544], 0x80070714
jmp 0x7ff6629830be
mov eax, dword [0x7ff66298de64]
test al, 0x40
jne 0x7ff662982ed5
test al, al
jns 0x7ff662982fa3
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x7ff662989870]
call fcn.7ff662985050
xor ecx, ecx
test eax, eax
jne 0x7ff662982efe
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
jmp 0x7ff662982ea2
lea r8, [rsp + 0x30]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
nop dword [rax + rax]
mov qword [0x7ff66298c830], rax
test rax, rax
je 0x7ff662982fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x7ff662982fa3
xor r9d, r9d
lea r8, [0x7ff66298d578]
xor ecx, ecx
test byte [0x7ff66298de64], 0x80
je 0x7ff662982f62
and dword [rsp + 0x28], edi
mov edx, 0x54b
mov dword [rsp + 0x20], 0x10
call fcn.7ff662984dcc
jmp 0x7ff662982f81
mov dword [rsp + 0x28], 4
mov edx, 0x524
mov dword [rsp + 0x20], 0x20
call fcn.7ff662984dcc
cmp eax, 6
je 0x7ff662982fa3
mov rcx, qword [0x7ff66298c830]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov dword [0x7ff66298d544], 0x800700b7
jmp 0x7ff6629830be
and dword [0x7ff66298d540], edi
mov rcx, rsi
call fcn.7ff6629870a8
test eax, eax
jne 0x7ff662982fc4
xor r9d, r9d
mov edx, 0x520
xor ecx, ecx
jmp 0x7ff6629830aa
cmp byte [0x7ff66298cd1a], dil
je 0x7ff662982fde
lea rcx, [0x7ff66298cd1a]
call fcn.7ff66298204c
jmp 0x7ff6629830be
mov r8d, 0xa
lea rdx, [0x7ff662989880]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x7ff662983014
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
cmp dword [0x7ff66298c1ac], 0
je 0x7ff662983029
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
nop dword [rax + rax]
cmp dword [0x7ff66298cd04], 0
je 0x7ff66298303a
mov eax, r14d
jmp 0x7ff6629830c0
mov rcx, rdi
call fcn.7ff662983bf4
test eax, eax
je 0x7ff6629830be
movzx eax, word [0x7ff66298de78]
sub ax, r14w
cmp ax, 2
ja 0x7ff662983032
test dword [0x7ff66298de64], 0x100
je 0x7ff662983032
test byte [0x7ff66298cd18], r14b
jne 0x7ff662983032
call fcn.7ff6629812ec
test eax, eax
jne 0x7ff662983032
mov qword [rsp + 0x28], 0x83e
lea r9, [0x7ff662981500]
xor r8d, r8d
mov qword [rsp + 0x20], 0x547
mov edx, 0x7d6
call fcn.7ff662987ac8
cmp rax, 0x83d
jne 0x7ff6629830be
jmp 0x7ff662983032
mov edx, 0x4b1
and dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
call fcn.7ff662984dcc
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.7ff662988470
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop r14
pop rdi
pop rsi
ret