Function at 0x14000cfa0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x148], rbx
mov rax, qword [0x1400a4650]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, r8
mov r14, rdx
mov esi, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
movzx edx, si
mov r8, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14000d131
mov qword [rbp - 0x69], 7
xor ebx, ebx
mov qword [rbp - 0x71], rbx
mov word [rsp + 0x48], bx
lea r8d, [rax + 2]
lea rdx, [0x14008d910]
lea rcx, [rsp + 0x48]
call fcn.140006150
nop
mov edx, esi
lea rcx, [rbp - 1]
call fcn.1400072d0
nop
mov r8, rax
lea rdx, [0x14008d928]
lea rcx, [rbp - 0x41]
call fcn.140007280
nop
lea r8, [0x14008d918]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140002e60
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140002e60
lea r8, [rsp + 0x48]
cmp qword [rbp - 0x69], 8
cmovae r8, qword [rsp + 0x48]
cmp qword [rax + 0x18], 8
jb 0x14000d08b
mov rax, qword [rax]
xor r9d, r9d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rbp - 0x49], 8
jb 0x14000d0a9
mov rcx, qword [rbp - 0x61]
call fcn.1400429c0
mov qword [rbp - 0x49], 7
mov qword [rbp - 0x51], rbx
mov word [rbp - 0x61], bx
cmp qword [rbp - 9], 8
jb 0x14000d0c9
mov rcx, qword [rbp - 0x21]
call fcn.1400429c0
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], rbx
mov word [rbp - 0x21], bx
cmp qword [rbp - 0x29], 8
jb 0x14000d0e9
mov rcx, qword [rbp - 0x41]
call fcn.1400429c0
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], rbx
mov word [rbp - 0x41], bx
cmp qword [rbp + 0x17], 8
jb 0x14000d109
mov rcx, qword [rbp - 1]
call fcn.1400429c0
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp qword [rbp - 0x69], 8
jb 0x14000d12a
mov rcx, qword [rsp + 0x48]
call fcn.1400429c0
xor al, al
jmp 0x14000d20b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d19d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
sete al
jmp 0x14000d20b
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov r8, r15
mov rdx, r13
mov rcx, rax
call fcn.140042a80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400429e0
mov rbx, qword [rsp + 0x148]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret