Function at 0x14002b170
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, [0x1400f3190]
mov ebp, 0x5dd
lea r13, [0x1400cf860]
mov rax, qword [0x1400f3190]
cmp rax, r12
je 0x14002b1dd
test byte [rax + 0x1c], 1
je 0x14002b1dd
cmp byte [rax + 0x19], 5
jb 0x14002b1dd
mov edx, SafeArrayAccessData
mov r9d, ebp
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f3190]
mov rsi, qword [0x1400f8a50]
test rsi, rsi
jne 0x14002b206
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rax, qword [0x1400f3190]
jmp 0x14002b208
xor edi, edi
mov r14b, 4
cmp rax, r12
je 0x14002b237
test byte [rax + 0x1c], 2
je 0x14002b237
cmp byte [rax + 0x19], r14b
jb 0x14002b237
mov edx, SafeArrayAccessData
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f3190]
xor ebx, ebx
test rsi, rsi
je 0x14002b2a3
mov r8d, 0x3f9
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14002b26e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002b270
xor edi, edi
mov rax, qword [0x1400f3190]
cmp rax, r12
je 0x14002b2a3
test byte [rax + 0x1c], 2
je 0x14002b2a3
cmp byte [rax + 0x19], r14b
jb 0x14002b2a3
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f3190]
xor ebp, ebp
test rbx, rbx
je 0x14002b309
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x14002b2d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002b2d6
xor edi, edi
mov rax, qword [0x1400f3190]
cmp rax, r12
je 0x14002b309
test byte [rax + 0x1c], 2
je 0x14002b309
cmp byte [rax + 0x19], r14b
jb 0x14002b309
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f3190]
xor r14d, r14d
test rbp, rbp
je 0x14002b36f
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
jne 0x14002b33a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002b33c
xor edi, edi
mov rax, qword [0x1400f3190]
cmp rax, r12
je 0x14002b36f
test byte [rax + 0x1c], 2
je 0x14002b36f
cmp byte [rax + 0x19], 4
jb 0x14002b36f
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f3190]
test r14d, r14d
je 0x14002b45c
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 [0x1400f3190]
cmp rax, r12
je 0x14002b3c7
test byte [rax + 0x1c], 2
je 0x14002b3c7
cmp byte [rax + 0x19], 4
jb 0x14002b3c7
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
mov rax, qword [0x1400f3190]
test rbx, rbx
je 0x14002b45c
cmp rax, r12
je 0x14002b3f2
test byte [rax + 0x1c], 2
je 0x14002b3f2
cmp byte [rax + 0x19], 4
jb 0x14002b3f2
mov edx, DispGetParam
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400035e4
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, r14d
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14002e040
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r15
call fcn.14002df64
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002b455
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
mov rax, qword [0x1400f3190]
cmp rax, r12
je 0x14002b48e
test byte [rax + 0x1c], 1
je 0x14002b48e
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
movzx ecx, byte [rax + 0x19]
cmp ecx, edx
jl 0x14002b48e
mov edx, DispGetParam
mov r9d, edi
mov r8, r13
mov rcx, qword [rax + 0x10]
call fcn.1400036a8
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