Function at 0x140062170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rax, qword [section..data]
lea r15, section..data
mov esi, 0x5dd
cmp rax, r15
je 0x1400621ce
test byte [rax + 0x1c], 1
je 0x1400621ce
cmp byte [rax + 0x19], 5
jb 0x1400621ce
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, SafeArrayUnlock
mov r9d, esi
call fcn.1400438d8
mov rax, qword [section..data]
mov rdi, qword [0x1400cc690]
mov ebp, 0x80070000
test rdi, rdi
jne 0x1400621ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400621f6
movzx ebx, ax
or ebx, ebp
mov rax, qword [section..data]
jmp 0x140062201
xor ebx, ebx
cmp rax, r15
je 0x140062231
test byte [rax + 0x1c], 2
je 0x140062231
cmp byte [rax + 0x19], 4
jb 0x140062231
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, SafeArrayUnlock
mov r9d, ebx
call fcn.140045d20
mov rax, qword [section..data]
test rdi, rdi
je 0x14006245d
mov r8d, 0x3f9
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140062273
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140062275
movzx ebx, ax
or ebx, ebp
jmp 0x140062275
xor ebx, ebx
mov rax, qword [section..data]
cmp rax, r15
je 0x1400622ac
test byte [rax + 0x1c], 2
je 0x1400622ac
cmp byte [rax + 0x19], 4
jb 0x1400622ac
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, ebx
call fcn.140045d20
mov rax, qword [section..data]
test rsi, rsi
je 0x14006245d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400622ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400622ee
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400622ee
xor ebx, ebx
mov rax, qword [section..data]
cmp rax, r15
je 0x140062325
test byte [rax + 0x1c], 2
je 0x140062325
cmp byte [rax + 0x19], 4
jb 0x140062325
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, ebx
call fcn.140045d20
mov rax, qword [section..data]
test rbp, rbp
je 0x14006245d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x140062363
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140062365
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140062365
xor ebx, ebx
mov rax, qword [section..data]
cmp rax, r15
je 0x14006239c
test byte [rax + 0x1c], 2
je 0x14006239c
cmp byte [rax + 0x19], 4
jb 0x14006239c
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, DispGetParam
mov r9d, ebx
call fcn.140045d20
mov rax, qword [section..data]
test esi, esi
je 0x14006245d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80004005
mov rax, qword [section..data]
cmp rax, r15
je 0x1400623fa
test byte [rax + 0x1c], 2
je 0x1400623fa
cmp byte [rax + 0x19], 4
jb 0x1400623fa
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, DispGetParam
mov r9d, ebx
call fcn.140045d20
mov rax, qword [section..data]
test rdi, rdi
je 0x14006245d
cmp rax, r15
je 0x140062425
test byte [rax + 0x1c], 2
je 0x140062425
cmp byte [rax + 0x19], 4
jb 0x140062425
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, DispGetParam
call fcn.140045cf4
lea rcx, [rsp + 0x50]
call fcn.1400096e0
mov r8d, esi
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14006343c
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call fcn.14006130c
lea rcx, [rsp + 0x50]
call fcn.1400361ac
mov rax, qword [section..data]
cmp rax, r15
je 0x140062493
test byte [rax + 0x1c], 1
je 0x140062493
movzx ecx, byte [rax + 0x19]
mov edx, ebx
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x140062493
mov rcx, qword [rax + 0x10]
lea r8, [0x1400b2c08]
mov edx, DispGetParam
mov r9d, ebx
call fcn.140045d20
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret