Function at 0x14002babc
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, [0x1400b1050]
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bb29
test byte [rax + 0x1c], 1
je 0x14002bb29
cmp byte [rax + 0x19], 5
jb 0x14002bb29
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 0x14002bb58
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 0x14002bb5a
xor edi, edi
mov r14b, 4
cmp rax, r12
je 0x14002bb89
test byte [rax + 0x1c], 2
je 0x14002bb89
cmp byte [rax + 0x19], r14b
jb 0x14002bb89
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 0x14002bc01
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 0x14002bbcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002bbce
xor edi, edi
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bc01
test byte [rax + 0x1c], 2
je 0x14002bc01
cmp byte [rax + 0x19], r14b
jb 0x14002bc01
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 0x14002bc73
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14002bc3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002bc40
xor edi, edi
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bc73
test byte [rax + 0x1c], 2
je 0x14002bc73
cmp byte [rax + 0x19], r14b
jb 0x14002bc73
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 0x14002bce5
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14002bcb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002bcb2
xor edi, edi
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002bce5
test byte [rax + 0x1c], 2
je 0x14002bce5
cmp byte [rax + 0x19], 4
jb 0x14002bce5
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 0x14002bdd8
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 0x14002bd43
test byte [rax + 0x1c], 2
je 0x14002bd43
cmp byte [rax + 0x19], 4
jb 0x14002bd43
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 0x14002bdd8
cmp rax, r12
je 0x14002bd6e
test byte [rax + 0x1c], 2
je 0x14002bd6e
cmp byte [rax + 0x19], 4
jb 0x14002bd6e
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 [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, r14d
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14002e9e8
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r15
call fcn.14002e900
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002bdd1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
mov rax, qword [0x1400cf018]
cmp rax, r12
je 0x14002be0a
test byte [rax + 0x1c], 1
je 0x14002be0a
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
movzx ecx, byte [rax + 0x19]
cmp ecx, edx
jl 0x14002be0a
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