Function at 0x10006652c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov r13, rdx
lea r14, [0x100152eb8]
mov ecx, 5
lea r12, [0x10001e540]
mov rax, qword [0x100152eb8]
cmp rax, r14
je 0x100066595
test byte [rax + 0x1c], 1
je 0x100066595
cmp byte [rax + 0x19], cl
jb 0x100066595
lea edx, [rcx + 0xe]
mov r9d, 0x5dd
mov r8, r12
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov rax, qword [0x100152eb8]
mov rbp, qword [0x100157690]
test rbp, rbp
jne 0x1000665be
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rax, qword [0x100152eb8]
jmp 0x1000665c0
xor edi, edi
mov esi, 2
cmp rax, r14
je 0x1000665ef
test byte [rax + 0x1c], sil
je 0x1000665ef
cmp byte [rax + 0x19], 4
jb 0x1000665ef
lea edx, [rsi + 0x12]
mov r9d, edi
mov r8, r12
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov rax, qword [0x100152eb8]
xor ebx, ebx
test rbp, rbp
je 0x10006665d
mov edx, 0x5dd
mov r8d, 0x3f9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x100066628
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10006662a
xor edi, edi
mov rax, qword [0x100152eb8]
cmp rax, r14
je 0x10006665d
test byte [rax + 0x1c], sil
je 0x10006665d
cmp byte [rax + 0x19], 4
jb 0x10006665d
mov edx, 0x15
mov r9d, edi
mov r8, r12
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov rax, qword [0x100152eb8]
xor r12d, r12d
test rbx, rbx
je 0x1000666c8
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
jne 0x10006668f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100066691
xor edi, edi
mov rax, qword [0x100152eb8]
cmp rax, r14
je 0x1000666c8
test byte [rax + 0x1c], sil
je 0x1000666c8
cmp byte [rax + 0x19], 4
jb 0x1000666c8
mov edx, 0x16
mov r9d, edi
lea r8, [0x10001e540]
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov rax, qword [0x100152eb8]
test r12, r12
je 0x100066822
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x1000666f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1000666fb
xor edi, edi
mov rax, qword [0x100152eb8]
cmp rax, r14
je 0x100066732
test byte [rax + 0x1c], sil
je 0x100066732
cmp byte [rax + 0x19], 4
jb 0x100066732
mov edx, 0x17
mov r9d, edi
lea r8, [0x10001e540]
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov rax, qword [0x100152eb8]
test ebp, ebp
je 0x100066822
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rcx, rax
neg rcx
sbb edi, edi
not edi
and edi, 0x80004005
mov rax, qword [0x100152eb8]
cmp rax, r14
je 0x10006678d
test byte [rax + 0x1c], sil
je 0x10006678d
cmp byte [rax + 0x19], 4
jb 0x10006678d
mov edx, 0x18
mov r9d, edi
lea r8, [0x10001e540]
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov rax, qword [0x100152eb8]
test rbx, rbx
je 0x100066822
cmp rax, r14
je 0x1000667bc
test byte [rax + 0x1c], sil
je 0x1000667bc
cmp byte [rax + 0x19], 4
jb 0x1000667bc
mov edx, 0x19
lea r8, [0x10001e540]
mov rcx, qword [rax + 0x10]
call fcn.100034764
lea rcx, [0x100151100]
mov rax, qword [0x100151100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, ebp
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.100069590
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, r13
call fcn.1000696b4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10006681b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [0x100152eb8]
jmp 0x100066822
mov rax, qword [0x100152eb8]
cmp rax, r14
je 0x100066857
test byte [rax + 0x1c], 1
je 0x100066857
movzx ecx, byte [rax + 0x19]
test edi, edi
mov edx, 5
cmovns esi, edx
cmp ecx, esi
jl 0x100066857
mov edx, 0x1a
mov r9d, edi
lea r8, [0x10001e540]
mov rcx, qword [rax + 0x10]
call fcn.100036328
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret