Function at 0x140007c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov esi, ecx
movzx edx, cx
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140007d36
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, esi
lea rdx, str.Cant_find_WORD_resource__d__err__d_
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 2
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140007ef3
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007eee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007f27
jmp 0x140007eee
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp eax, 2
je 0x140007dd7
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, edi
lea rdx, str.WORD_resource_has_unexpected_size__d___d_
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 2
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140007ef3
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007eee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007f2d
jmp 0x140007eee
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140007e6e
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, esi
lea rdx, str.Cant_load_WORD_resource__d__err__d_
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 2
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140007ef3
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007eee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007f33
jmp 0x140007eee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x140007ef7
mov rbx, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, esi
lea rdx, str.Cant_get_address_of_WORD_resource__d__err__d_
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 2
call fcn.14000edc0
cmp qword [rbp - 0x18], 0x10
lea rdx, [rbp - 0x30]
mov rcx, rbx
cmovae rdx, qword [rbp - 0x30]
call fcn.14000f340
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140007ef3
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007eee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007f21
call fcn.14001c70c
xor al, al
jmp 0x140007f00
movzx eax, word [rax]
mov word [r14], ax
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3
call fcn.140025138
int3