Function at 0x1400a1964
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [rcx + 8]
xor r12d, r12d
mov r15d, r9d
mov rsi, r8
mov rbx, rcx
test rax, rax
je 0x1400a1ad9
mov rcx, qword [rcx + 8]
lea edx, [r12 + 7]
lea r8d, [r12 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400a1b28
mov rcx, qword [rbx + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov rdx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x1400a1b91
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rax + r14]
test rax, rax
je 0x1400a1bfa
movzx eax, word [rax]
lea r8d, [r12 + 0xf]
add rdx, 2
dec r8d
cmp rdx, rcx
jae 0x1400a1a93
movzx eax, ax
lea rdx, [rdx + rax*2]
movzx eax, word [rdx]
add rdx, 2
test r8d, r8d
jne 0x1400a1a23
cmp rdx, rcx
jae 0x1400a1a93
cmp r12w, ax
je 0x1400a1c61
lea ebx, [rax + 1]
test rsi, rsi
je 0x1400a1a6f
cmp r15d, ebx
jb 0x1400a1ca7
lea r8, [rax + rax]
mov rcx, rsi
mov word [r8 + rsi], r12w
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1aba
test byte [rcx + 0x1c], 1
je 0x1400a1aba
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayPutElement
call fcn.1400a1468
mov edx, 0x80070490
lea rcx, [rbp - 0x10]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1b07
test byte [rcx + 0x1c], 1
je 0x1400a1b07
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400c57d0]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
call fcn.14000cf30
mov edx, 0x8000ffff
lea rcx, [rsp + 0x30]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1b73
test byte [rcx + 0x1c], 1
je 0x1400a1b73
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400c57d0]
mov edx, SafeArrayPutElement
mov r9d, ebx
call fcn.14000a9b0
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1bdc
test byte [rcx + 0x1c], 1
je 0x1400a1bdc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400c57d0]
mov edx, SafeArrayPutElement
mov r9d, ebx
call fcn.14000a9b0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1c45
test byte [rcx + 0x1c], 1
je 0x1400a1c45
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400c57d0]
mov edx, SafeArrayPutElement
mov r9d, ebx
call fcn.14000a9b0
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1c88
test byte [rcx + 0x1c], 1
je 0x1400a1c88
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayPutElement
call fcn.1400a1468
mov edx, 0x80070490
lea rcx, [rbp - 0x50]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rbp - 0x50]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x1400a1cd5
test byte [rcx + 0x1c], 1
je 0x1400a1cd5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400c57d0]
mov edx, 0x1a
call fcn.14000cf30
mov edx, 0x8007007a
lea rcx, [rbp - 0x30]
call fcn.1400a1f88
lea rdx, [0x1400da3a0]
lea rcx, [rbp - 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3