Function at 0x14000e65c
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
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rcx + 8]
xor r12d, r12d
mov r15d, r9d
mov rsi, r8
mov rbx, rcx
test rax, rax
je 0x14000e7ca
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 0x14000e817
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 0x14000e87f
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 0x14000e8e7
movzx eax, word [rax]
lea r8d, [r12 + 0xf]
add rdx, 2
dec r8d
cmp rdx, rcx
jae 0x14000e784
movzx eax, ax
lea rdx, [rdx + rax*2]
movzx eax, word [rdx]
add rdx, 2
test r8d, r8d
jne 0x14000e717
cmp rdx, rcx
jae 0x14000e784
cmp r12w, ax
je 0x14000e94f
lea ebx, [rax + 1]
test rsi, rsi
je 0x14000e763
cmp r15d, ebx
jb 0x14000e995
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 + 0x50]
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 [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e7ab
test byte [rcx + 0x1c], 1
je 0x14000e7ab
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
call fcn.14000ec00
mov edx, 0x80070490
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e7f8
test byte [rcx + 0x1c], 1
je 0x14000e7f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400160e8]
mov edx, 0x14
call fcn.140005984
mov edx, 0x8000ffff
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000e832
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e863
test byte [rcx + 0x1c], 1
je 0x14000e863
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400160e8]
mov edx, 0x15
mov r9d, ebx
call fcn.14000391c
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000e89a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e8cb
test byte [rcx + 0x1c], 1
je 0x14000e8cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400160e8]
mov edx, 0x16
mov r9d, ebx
call fcn.14000391c
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000e902
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e933
test byte [rcx + 0x1c], 1
je 0x14000e933
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400160e8]
mov edx, 0x17
mov r9d, ebx
call fcn.14000391c
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e976
test byte [rcx + 0x1c], 1
je 0x14000e976
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
call fcn.14000ec00
mov edx, 0x80070490
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000e9c3
test byte [rcx + 0x1c], 1
je 0x14000e9c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400160e8]
mov edx, 0x1a
call fcn.140005984
mov edx, 0x8007007a
lea rcx, [rbp - 0x20]
call fcn.14000ed24
lea rdx, [0x140018a58]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3