Function at 0x1400311d0
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 ecx, 5
mov r14d, 0x5dd
lea r13, [0x1400de460]
mov rax, qword [0x140106190]
cmp rax, r12
je 0x140031240
test byte [rax + 0x1c], 1
je 0x140031240
cmp byte [rax + 0x19], cl
jb 0x140031240
lea edx, [rcx + 0xe]
mov r9d, r14d
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
mov rax, qword [0x140106190]
mov rbp, qword [0x14010bd60]
test rbp, rbp
jne 0x140031269
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rax, qword [0x140106190]
jmp 0x14003126b
xor edi, edi
mov esi, 2
cmp rax, r12
je 0x14003129a
test byte [rax + 0x1c], sil
je 0x14003129a
cmp byte [rax + 0x19], 4
jb 0x14003129a
lea edx, [rsi + 0x12]
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
mov rax, qword [0x140106190]
xor ebx, ebx
test rbp, rbp
je 0x140031306
mov r8d, 0x3f9
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400312d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400312d3
xor edi, edi
mov rax, qword [0x140106190]
cmp rax, r12
je 0x140031306
test byte [rax + 0x1c], sil
je 0x140031306
cmp byte [rax + 0x19], 4
jb 0x140031306
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
mov rax, qword [0x140106190]
xor r14d, r14d
test rbx, rbx
je 0x14003136d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x140031338
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14003133a
xor edi, edi
mov rax, qword [0x140106190]
cmp rax, r12
je 0x14003136d
test byte [rax + 0x1c], sil
je 0x14003136d
cmp byte [rax + 0x19], 4
jb 0x14003136d
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
mov rax, qword [0x140106190]
test r14, r14
je 0x1400314bf
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x14003139e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400313a0
xor edi, edi
mov rax, qword [0x140106190]
cmp rax, r12
je 0x1400313d3
test byte [rax + 0x1c], sil
je 0x1400313d3
cmp byte [rax + 0x19], 4
jb 0x1400313d3
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
mov rax, qword [0x140106190]
test ebp, ebp
je 0x1400314bf
mov rcx, r14
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 0x14003142a
test byte [rax + 0x1c], sil
je 0x14003142a
cmp byte [rax + 0x19], 4
jb 0x14003142a
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
mov rax, qword [0x140106190]
test rbx, rbx
je 0x1400314bf
cmp rax, r12
je 0x140031455
test byte [rax + 0x1c], sil
je 0x140031455
cmp byte [rax + 0x19], 4
jb 0x140031455
mov edx, DispGetParam
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003574
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, ebp
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140034294
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r15
call fcn.1400341b8
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400314b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
mov rax, qword [0x140106190]
cmp rax, r12
je 0x1400314f0
test byte [rax + 0x1c], 1
je 0x1400314f0
movzx ecx, byte [rax + 0x19]
test edi, edi
mov edx, 5
cmovns esi, edx
cmp ecx, esi
jl 0x1400314f0
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.140003634
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