Function at 0x14002fb3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rax, qword [section..data]
lea r15, section..data
lea r12, [0x1400b5090]
mov esi, 0x5dd
cmp rax, r15
je 0x14002fb9b
test byte [rax + 0x1c], 1
je 0x14002fb9b
cmp byte [rax + 0x19], 5
jb 0x14002fb9b
mov rcx, qword [rax + 0x10]
mov edx, SafeArrayUnlock
mov r9d, esi
mov r8, r12
call fcn.14000ad20
mov rax, qword [section..data]
mov rbx, qword [0x1400cf690]
mov ebp, 0x80070000
test rbx, rbx
jne 0x14002fbcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14002fbc3
movzx edi, ax
or edi, ebp
mov rax, qword [section..data]
jmp 0x14002fbce
xor edi, edi
cmp rax, r15
je 0x14002fbfa
test byte [rax + 0x1c], 2
je 0x14002fbfa
cmp byte [rax + 0x19], 4
jb 0x14002fbfa
mov rcx, qword [rax + 0x10]
mov edx, SafeArrayUnlock
mov r9d, edi
mov r8, r12
call fcn.14000637c
mov rax, qword [section..data]
test rbx, rbx
je 0x14002fe5b
mov r8d, 0x3f9
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14002fc3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14002fc3e
movzx edi, ax
or edi, ebp
jmp 0x14002fc3e
xor edi, edi
mov rax, qword [section..data]
cmp rax, r15
je 0x14002fc71
test byte [rax + 0x1c], 2
je 0x14002fc71
cmp byte [rax + 0x19], 4
jb 0x14002fc71
mov rcx, qword [rax + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, edi
mov r8, r12
call fcn.14000637c
mov rax, qword [section..data]
test rsi, rsi
je 0x14002fe5b
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14002fcb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14002fcb3
movzx edi, ax
or edi, 0x80070000
jmp 0x14002fcb3
xor edi, edi
mov rax, qword [section..data]
cmp rax, r15
je 0x14002fce6
test byte [rax + 0x1c], 2
je 0x14002fce6
cmp byte [rax + 0x19], 4
jb 0x14002fce6
mov rcx, qword [rax + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, edi
mov r8, r12
call fcn.14000637c
mov rax, qword [section..data]
test rbp, rbp
je 0x14002fe5b
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14002fd24
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14002fd26
movzx edi, ax
or edi, 0x80070000
jmp 0x14002fd26
xor edi, edi
mov rax, qword [section..data]
cmp rax, r15
je 0x14002fd59
test byte [rax + 0x1c], 2
je 0x14002fd59
cmp byte [rax + 0x19], 4
jb 0x14002fd59
mov rcx, qword [rax + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, r12
call fcn.14000637c
mov rax, qword [section..data]
test esi, esi
je 0x14002fe5b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
neg rax
sbb edi, edi
not edi
and edi, 0x80004005
mov rax, qword [section..data]
cmp rax, r15
je 0x14002fdb3
test byte [rax + 0x1c], 2
je 0x14002fdb3
cmp byte [rax + 0x19], 4
jb 0x14002fdb3
mov rcx, qword [rax + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, r12
call fcn.14000637c
mov rax, qword [section..data]
test rbx, rbx
je 0x14002fe5b
cmp rax, r15
je 0x14002fdde
test byte [rax + 0x1c], 2
je 0x14002fdde
cmp byte [rax + 0x19], 4
jb 0x14002fdde
mov rcx, qword [rax + 0x10]
mov edx, DispGetParam
mov r8, r12
call fcn.1400062b0
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
mov rax, qword [rax + 0x18]
lea rcx, [0x1400cce40]
call qword [case.0x140071786.0]
mov r8d, esi
lea rcx, [rsp + 0x60]
add rax, 0x18
mov rdx, rbx
mov qword [rsp + 0x60], rax
call fcn.140031cc8
mov rbx, qword [rsp + 0x60]
mov rcx, r14
mov rdx, rbx
call fcn.14002e0e8
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002fe54
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
mov rax, qword [section..data]
cmp rax, r15
je 0x14002fe8d
test byte [rax + 0x1c], 1
je 0x14002fe8d
movzx ecx, byte [rax + 0x19]
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x14002fe8d
mov rcx, qword [rax + 0x10]
mov edx, DispGetParam
mov r9d, edi
mov r8, r12
call fcn.14000637c
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret