Function at 0x14001dcd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], r9
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rbx, rdx
mov rdi, rcx
movzx edx, r8w
xor r12d, r12d
lea r8, [0x140286060]
mov qword [rax + 0x20], r12
mov rcx, rbx
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14001de52
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x14001de52
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14001de52
mov edx, r14d
lea ecx, [r12 + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14001de52
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001ded4
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call fcn.1401e66a0
lea r8, [rsp + 0xb8]
mov qword [rsp + 0xb8], r12
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14001de52
mov r15, qword [rsp + 0xb8]
call fcn.140005800
mov rbx, rax
cmp dword [rax + 0x34], r12d
jne 0x14001de52
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bpl, 1
cmp qword [rbx], r12
jne 0x14001de0b
lea r8, [rsp + 0x28]
mov dword [rsp + 0x38], 1
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], r12
mov rcx, rbx
mov qword [rsp + 0x48], r12
call qword [0x14021a340]
test eax, eax
movzx ebp, bpl
cmovne ebp, r12d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bpl, bpl
je 0x14001de52
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rcx, r15
call qword [0x14021a368]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x60], r12d
test eax, eax
je 0x14001de9f
call qword [0x14021a3d0]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14001de6d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0xb8], r12
test rsi, rsi
je 0x14001de84
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001d6b0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [0x14021a3d0]
test ebx, ebx
js 0x14001de52
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0xc0], r12d
je 0x14001df9d
cmp dword [rdi + 0x24], 0x20
jne 0x14001df9d
movsxd rax, dword [rdi + 0x20]
mov r9, qword [rdi + 0x10]
mov esi, eax
shr esi, 0x1f
test esi, esi
je 0x14001df12
shr rax, 2
not eax
cdqe
lea r9, [r9 + rax*4]
mov r11d, r12d
cmp dword [rdi + 0x18], r12d
jle 0x14001df9d
nop
mov r10d, r12d
cmp dword [rdi + 0x1c], r12d
jle 0x14001df94
mov eax, esi
xor rax, 1
lea rbx, [rax*8 - 4]
nop word [rax + rax]
movzx ecx, byte [r9]
mov eax, 0x80808081
movzx r8d, byte [r9 + 3]
inc r10d
imul ecx, r8d
mul ecx
movzx ecx, byte [r9 + 1]
mov eax, 0x80808081
shr edx, 7
mov byte [r9], dl
imul ecx, r8d
mul ecx
movzx ecx, byte [r9 + 2]
mov eax, 0x80808081
shr edx, 7
mov byte [r9 + 1], dl
imul ecx, r8d
mul ecx
shr edx, 7
mov byte [r9 + 2], dl
add r9, rbx
cmp r10d, dword [rdi + 0x1c]
jl 0x14001df40
inc r11d
cmp r11d, dword [rdi + 0x18]
jl 0x14001df20
mov eax, 1
jmp 0x14001de86