Function at 0x1400a4a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13b, r9b
mov r12, r8
mov rdi, rdx
mov r14, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400a4a96
mov rax, qword [rdx]
jmp 0x1400a4a99
mov rax, rdx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str.TaskFactory::TryLoadScenario___Start_loading__s_scenario
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x34d519
lea r8d, [rdx + 0x24]
call fcn.14001bb90
mov qword [rbp - 0x39], 7
xor r15d, r15d
mov qword [rbp - 0x41], r15
mov word [rbp - 0x51], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.1400082c0
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
sete al
test al, al
jne 0x1400a4b2e
mov esi, r15d
test rcx, rcx
je 0x1400a4b2e
lea rax, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rax, qword [rbp - 0x51]
lea rbx, [rbp - 0x51]
cmovae rbx, qword [rbp - 0x51]
movzx ecx, word [rax + rsi*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
mov word [rbx + rsi*2], ax
inc rsi
cmp rsi, qword [rbp - 0x41]
jb 0x1400a4b00
lea r8, [rbp - 0x51]
lea rdx, [rsp + 0x30]
lea rcx, [0x140279230]
call fcn.1400a6738
mov rax, qword [rsp + 0x30]
cmp rax, qword [0x140279230]
setne sil
test sil, sil
je 0x1400a4caa
movzx edx, word [rax + 0x40]
lea r8, str.RT_SCENARIO
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
setne sil
test sil, sil
je 0x1400a4caa
mov rdx, rax
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
setne sil
test sil, sil
je 0x1400a4caa
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
setne sil
test sil, sil
je 0x1400a4caa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp - 0x19], 0xf
and qword [rbp - 0x21], 0
mov byte [rbp - 0x31], 0
mov r8d, r15d
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140012860
nop
xor r8d, r8d
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x11]
call fcn.1400102cc
nop
mov r9b, r13b
mov r8, rax
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.1400a4508
nop
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.140058270
mov rdx, rax
mov rcx, r12
call fcn.14004f714
nop
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x1400a4c58
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a4c58
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a4c58
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x1400a4c8d
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a4c8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a4c8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x11]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x31]
call fcn.140012684
lea rcx, str.successful
lea rax, str.not_successful
test sil, sil
cmovne rax, rcx
mov qword [rsp + 0x38], rax
cmp qword [rdi + 0x18], 8
jb 0x1400a4cce
mov rdi, qword [rdi]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, str.TaskFactory::TryLoadScenario___Loading__s_scenario_is__s
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x34d51a
lea r8d, [rdx + 0x24]
call fcn.14001bc64
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.140007eb8
mov al, sil
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140022430
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret