Function at 0x1400a518c
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 [0x140191810]
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 0x1400a51d2
mov rax, qword [rdx]
jmp 0x1400a51d5
mov rax, rdx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
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.14001d3c8
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.140007e10
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
sete al
test al, al
jne 0x1400a526a
mov esi, r15d
test rcx, rcx
je 0x1400a526a
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 0x1400a523c
lea r8, [rbp - 0x51]
lea rdx, [rsp + 0x38]
lea rcx, [0x140267318]
call fcn.1400a5a34
mov rax, qword [rsp + 0x38]
cmp rax, qword [0x140267318]
setne sil
test sil, sil
je 0x1400a53e3
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 0x1400a53e3
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 0x1400a53e3
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
setne sil
test sil, sil
je 0x1400a53e3
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.140014150
nop
xor r8d, r8d
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x11]
call fcn.1400113c4
nop
mov r9b, r13b
mov r8, rax
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.1400a4c60
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.14005a1c8
mov rdx, rax
mov rcx, r12
call fcn.1400780e8
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x1400a5391
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a5391
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a5391
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x1400a53c6
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a53c6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a53c6
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.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x31]
call fcn.140013f00
lea rcx, str.successful
lea rax, str.not_successful
test sil, sil
cmovne rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rdi + 0x18], 8
jb 0x1400a5407
mov rdi, qword [rdi]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x40]
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.14001d49c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.140007a08
mov al, sil
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140021f10
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret