Function at 0x14009ea78
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 [0x1401d4618]
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 0x14009eabe
mov rax, qword [rdx]
jmp 0x14009eac1
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.140018b18
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.140008a84
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
sete al
test al, al
jne 0x14009eb56
mov esi, r15d
test rcx, rcx
je 0x14009eb56
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 0x14009eb28
lea r8, [rbp - 0x51]
lea rdx, [rsp + 0x38]
lea rcx, [0x1402647a0]
call fcn.1400add10
mov rax, qword [rsp + 0x38]
cmp rax, qword [0x1402647a0]
setne sil
test sil, sil
je 0x14009ecd0
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 0x14009ecd0
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 0x14009ecd0
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
setne sil
test sil, sil
je 0x14009ecd0
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.1400124fc
nop
nop
xor r8d, r8d
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x11]
call fcn.14000fd08
nop
mov r9b, r13b
mov r8, rax
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.14009e54c
mov rdx, rax
lea rcx, [rbp - 0x71]
call fcn.140035450
mov rdx, rax
mov rcx, r12
call fcn.14004aa88
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x14009ec7e
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009ec7e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14009ec7e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x14009ecb3
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009ecb3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14009ecb3
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.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x31]
call fcn.1400122b8
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 0x14009ecf4
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.140018bec
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.14000867c
mov al, sil
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140121d80
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret