Function at 0x1400307e4
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, [0x140106190]
mov ebp, 0x5dd
lea r13, [0x1400ddb20]
mov rax, qword [0x140106190]
cmp rax, r12
je 0x140030851
test byte [rax + 0x1c], 1
je 0x140030851
cmp byte [rax + 0x19], 5
jb 0x140030851
mov edx, SafeArrayUnlock
mov r9d, ebp
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
mov rax, qword [0x140106190]
mov rsi, qword [0x14010be20]
test rsi, rsi
jne 0x14003087a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rax, qword [0x140106190]
jmp 0x14003087c
xor edi, edi
mov r14b, 4
cmp rax, r12
je 0x1400308ab
test byte [rax + 0x1c], 2
je 0x1400308ab
cmp byte [rax + 0x19], r14b
jb 0x1400308ab
mov edx, SafeArrayUnlock
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
mov rax, qword [0x140106190]
xor ebx, ebx
test rsi, rsi
je 0x140030917
mov r8d, 0x3f9
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400308e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400308e4
xor edi, edi
mov rax, qword [0x140106190]
cmp rax, r12
je 0x140030917
test byte [rax + 0x1c], 2
je 0x140030917
cmp byte [rax + 0x19], r14b
jb 0x140030917
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
mov rax, qword [0x140106190]
xor ebp, ebp
test rbx, rbx
je 0x14003097d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x140030948
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14003094a
xor edi, edi
mov rax, qword [0x140106190]
cmp rax, r12
je 0x14003097d
test byte [rax + 0x1c], 2
je 0x14003097d
cmp byte [rax + 0x19], r14b
jb 0x14003097d
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
mov rax, qword [0x140106190]
xor r14d, r14d
test rbp, rbp
je 0x1400309e3
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
jne 0x1400309ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400309b0
xor edi, edi
mov rax, qword [0x140106190]
cmp rax, r12
je 0x1400309e3
test byte [rax + 0x1c], 2
je 0x1400309e3
cmp byte [rax + 0x19], 4
jb 0x1400309e3
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
mov rax, qword [0x140106190]
test r14d, r14d
je 0x140030ad0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rcx, rax
neg rcx
sbb edi, edi
not edi
and edi, 0x80004005
mov rax, qword [0x140106190]
cmp rax, r12
je 0x140030a3b
test byte [rax + 0x1c], 2
je 0x140030a3b
cmp byte [rax + 0x19], 4
jb 0x140030a3b
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
mov rax, qword [0x140106190]
test rbx, rbx
je 0x140030ad0
cmp rax, r12
je 0x140030a66
test byte [rax + 0x1c], 2
je 0x140030a66
cmp byte [rax + 0x19], 4
jb 0x140030a66
mov edx, DispGetParam
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003538
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, r14d
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140033848
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r15
call fcn.140033774
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140030ac9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
mov rax, qword [0x140106190]
cmp rax, r12
je 0x140030b02
test byte [rax + 0x1c], 1
je 0x140030b02
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
movzx ecx, byte [rax + 0x19]
cmp ecx, edx
jl 0x140030b02
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035ec
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