Function at 0x100036ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x98
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax - 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov r12, rcx
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r15d, 0xffffffff
xor r14d, r14d
test rdi, rdi
jne 0x100036f61
test rbp, rbp
jne 0x100036fc1
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100036f3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x100036f5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1000376cc
mov rax, qword [rdi]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], r14d
je 0x100036fbc
cmp dword [rdx + 0x10], r14d
jge 0x100036f95
cmp dword [rax - 0xc], r14d
jge 0x100036f88
mov ecx, 0x80070057
call fcn.100013860
int3
mov dword [rax - 0x10], r14d
mov rax, qword [rdi]
mov word [rax], r14w
jmp 0x100036fbc
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100036fac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
test rbp, rbp
je 0x10003701f
mov rax, qword [rbp]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], r14d
je 0x10003701f
cmp dword [rdx + 0x10], r14d
jge 0x100036ff7
cmp dword [rax - 0xc], r14d
jge 0x100036fe9
mov ecx, 0x80070057
call fcn.100013860
int3
mov dword [rax - 0x10], r14d
mov rax, qword [rbp]
mov word [rax], r14w
jmp 0x10003701f
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10003700e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rsi
lea rdx, [rsp + 0x30]
mov rcx, qword [r12]
call fcn.10004d560
test eax, eax
je 0x10003768a
test rdi, rdi
je 0x1000370a8
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx - 0x18]
mov rbx, qword [rdi]
sub rbx, 0x18
cmp rcx, rbx
je 0x1000370a8
cmp dword [rbx + 0x10], r14d
jl 0x10003709c
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x10003709c
call fcn.100014130
mov rsi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x100037093
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rdi], rax
jmp 0x1000370a8
mov r8d, dword [rdx - 0x10]
mov rcx, rdi
call fcn.100014b20
test rbp, rbp
je 0x100037642
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0xa8], rbx
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x38], rdi
mov rsi, r14
xor edx, edx
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
mov r13d, 1
test rax, rax
je 0x1000372ae
nop
nop
test rsi, rsi
jne 0x1000372ae
xor r9d, r9d
lea edx, [rsi + 6]
mov r8d, 0x13e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbp, rax
test rax, rax
jne 0x10003713b
mov rsi, r14
jmp 0x1000371a9
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100037151
mov rsi, r14
jmp 0x1000371a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x100037167
mov rsi, r14
jmp 0x1000371a4
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rsi
mov ecx, 1
nop
cmp rsi, rdx
jae 0x100037197
movzx eax, word [rsi]
lea rsi, [rsi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100037180
cmp rsi, rdx
jb 0x10003719c
mov rsi, r14
jmp 0x1000371a4
cmp word [rsi], 0
cmove rsi, r14
test rsi, rsi
jne 0x1000371cc
mov edx, r13d
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
inc r13d
test rax, rax
jne 0x100037110
jmp 0x1000372ae
test r12, r12
je 0x1000372ae
mov edx, 0x13e
mov r8d, 6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1000372ae
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1000372ae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1000372ae
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rsi
mov ecx, 1
cmp rsi, rdx
jae 0x1000372ae
movzx eax, word [rsi]
lea rsi, [rsi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100037235
cmp rsi, rdx
jae 0x1000372ae
movzx eax, word [rsi]
test ax, ax
je 0x1000372ae
movzx ebp, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x10003727f
mov edx, ebp
lea rcx, [rsp + 0xa8]
call fcn.1000140c0
mov rbx, qword [rsp + 0xa8]
lea r12, [rbp + rbp]
lea rdx, [rsi + 2]
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memcpy
test ebp, ebp
js 0x10003762f
cmp ebp, dword [rbx - 0xc]
jg 0x10003762f
mov dword [rbx - 0x10], ebp
mov word [r12 + rbx], 0
mov rsi, r14
xor edx, edx
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
mov r14d, 1
test rax, rax
je 0x10003746b
lea r13d, [r14 + 1]
test rsi, rsi
jne 0x10003746b
xor r9d, r9d
lea edx, [rsi + 6]
mov r8d, 0x13e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbp, rax
test rax, rax
jne 0x100037300
mov rsi, rax
jmp 0x100037370
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100037316
mov rsi, rax
jmp 0x10003736b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x10003736b
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rsi
mov ecx, r13d
nop
nop
cmp rsi, rdx
jae 0x100037357
movzx eax, word [rsi]
lea rsi, [rsi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100037340
cmp rsi, rdx
jb 0x10003735e
xor eax, eax
mov rsi, rax
jmp 0x10003736b
cmp word [rsi], 0
mov eax, 0
cmove rsi, rax
test rsi, rsi
jne 0x100037393
mov edx, r14d
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
inc r14d
test rax, rax
jne 0x1000372d5
jmp 0x10003746b
test r12, r12
je 0x10003746b
mov edx, 0x13e
mov r8d, 6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x10003746b
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10003746b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x10003746b
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rsi
cmp rsi, rcx
jae 0x10003746b
movzx eax, word [rsi]
lea rsi, [rsi + rax*2 + 2]
add r13d, 0xffffffff
jne 0x1000373f7
cmp rsi, rcx
jae 0x10003746b
movzx eax, word [rsi]
test ax, ax
je 0x10003746b
movzx ebp, ax
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebp
or eax, ecx
jge 0x10003743c
mov edx, ebp
lea rcx, [rsp + 0x38]
call fcn.1000140c0
mov rdi, qword [rsp + 0x38]
lea r12, [rbp + rbp]
lea rdx, [rsi + 2]
mov r8, r12
mov rcx, rdi
call sub.msvcrt.dll_memcpy
test ebp, ebp
js 0x100037624
cmp ebp, dword [rdi - 0xc]
jg 0x100037624
mov dword [rdi - 0x10], ebp
mov word [r12 + rdi], 0
movsxd r14, dword [rdi - 0x10]
mov r12, rdi
mov rsi, rdi
sub rsi, rbx
sar rsi, 1
mov r13d, dword [rbx - 0x10]
lea ebp, [r13 + r14]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x1000374ac
mov edx, ebp
lea rcx, [rsp + 0xa8]
call fcn.1000140c0
mov rbx, qword [rsp + 0xa8]
cmp rsi, r13
ja 0x1000374b5
lea r12, [rbx + rsi*2]
mov r8, r14
add r8, r8
lea rcx, [rbx + r13*2]
mov rdx, r12
call sub.msvcrt.dll_memcpy
test ebp, ebp
js 0x100037619
cmp ebp, dword [rbx - 0xc]
jg 0x100037619
mov dword [rbx - 0x10], ebp
movsxd rax, ebp
mov word [rbx + rax*2], 0
mov r12, qword [rsp + 0x30]
movsxd r14, dword [r12 - 0x10]
mov rbp, r12
sub rbp, rbx
sar rbp, 1
mov r13d, dword [rbx - 0x10]
lea esi, [r13 + r14]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x100037528
mov edx, esi
lea rcx, [rsp + 0xa8]
call fcn.1000140c0
mov rbx, qword [rsp + 0xa8]
cmp rbp, r13
ja 0x100037531
lea r12, [rbx + rbp*2]
mov r8, r14
add r8, r8
lea rcx, [rbx + r13*2]
mov rdx, r12
call sub.msvcrt.dll_memcpy
test esi, esi
js 0x10003760e
cmp esi, dword [rbx - 0xc]
jg 0x10003760e
mov dword [rbx - 0x10], esi
movsxd rax, esi
mov word [rbx + rax*2], 0
lea rbp, [rbx - 0x18]
mov r12, qword [rsp + 0xb0]
mov rsi, qword [r12]
sub rsi, 0x18
cmp rbp, rsi
je 0x1000375cd
cmp dword [rsi + 0x10], 0
jl 0x1000375bd
mov rax, qword [rsi]
cmp qword [rbp], rax
jne 0x1000375bd
mov rcx, rbp
call fcn.100014130
mov rbx, rax
mov ecx, r15d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1000375ae
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [r12], rax
mov rdi, qword [rsp + 0x38]
jmp 0x1000375cd
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r12
call fcn.100014b20
nop
lea rdx, [rdi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000375e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r15d
lock xadd dword [rbp + 0x10], eax
dec eax
test eax, eax
jg 0x10003763a
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12, qword [rsp + 0xa0]
jmp 0x100037642
mov ecx, 0x80070057
call fcn.100013860
int3
mov ecx, 0x80070057
call fcn.100013860
int3
mov ecx, 0x80070057
call fcn.100013860
int3
mov ecx, 0x80070057
call fcn.100013860
nop
mov r12, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100037663
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x100037683
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x1000376cc
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000376ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x1000376ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
add rsp, 0x98
ret