Function at 0x14002bc6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov r15, rdx
lea r12, [0x1400cf018]
mov ebp, 0x5dd
lea r13, [0x1400b1140]
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bcd9
test byte [rax + 0x1c], 1
je 0x14002bcd9
cmp byte [rax + 0x19], 5
jb 0x14002bcd9
mov edx, SafeArrayAccessData
mov r9d, ebp
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400cf018]
mov rsi, qword [0x1400d4690]
test rsi, rsi
jne 0x14002bd08
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rax, qword [0x1400cf018]
jmp 0x14002bd0a
xor edi, edi
mov r14b, 4
cmp rax, r12
je 0x14002bd39
test byte [rax + 0x1c], 2
je 0x14002bd39
cmp byte [rax + 0x19], r14b
jb 0x14002bd39
mov edx, SafeArrayAccessData
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400cf018]
xor ebx, ebx
test rsi, rsi
je 0x14002bdb1
mov r8d, 0x3f9
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14002bd7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002bd7e
xor edi, edi
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bdb1
test byte [rax + 0x1c], 2
je 0x14002bdb1
cmp byte [rax + 0x19], r14b
jb 0x14002bdb1
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400cf018]
xor ebp, ebp
test rbx, rbx
je 0x14002be23
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14002bdee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002bdf0
xor edi, edi
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002be23
test byte [rax + 0x1c], 2
je 0x14002be23
cmp byte [rax + 0x19], r14b
jb 0x14002be23
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400cf018]
xor r14d, r14d
test rbp, rbp
je 0x14002be95
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14002be60
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002be62
xor edi, edi
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002be95
test byte [rax + 0x1c], 2
je 0x14002be95
cmp byte [rax + 0x19], 4
jb 0x14002be95
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400cf018]
test r14d, r14d
je 0x14002bf88
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
mov rcx, rax
neg rcx
sbb edi, edi
not edi
and edi, 0x80004005
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bef3
test byte [rax + 0x1c], 2
je 0x14002bef3
cmp byte [rax + 0x19], 4
jb 0x14002bef3
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov rax, qword [0x1400cf018]
test rbx, rbx
je 0x14002bf88
cmp rax, r12
je 0x14002bf1e
test byte [rax + 0x1c], 2
je 0x14002bf1e
cmp byte [rax + 0x19], 4
jb 0x14002bf1e
mov edx, DispGetParam
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400034f0
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, r14d
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14002eb98
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r15
call fcn.14002eab0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bf81
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bfba
test byte [rax + 0x1c], 1
je 0x14002bfba
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
movzx ecx, byte [rax + 0x19]
cmp ecx, edx
jl 0x14002bfba
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035c4
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret