Function at 0x140006ac8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov r13, rcx
movzx r12d, r8w
xor ebx, ebx
test r12, r12
je 0x140006ce5
cmp qword [r9 + 0x10], rbx
jne 0x140006c0b
lea ecx, [rbx + 0x30]
call fcn.14000d0e4
mov rdi, rax
mov qword [rsp + 0x28], rax
lea ebp, [rbx + 1]
test rax, rax
je 0x140006b49
mov dword [rax + 8], ebx
lea rax, vtable.BaseUI::GDIPlusImageAdapter.0
mov qword [rdi], rax
mov byte [rdi + 0x10], bpl
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
mov dword [rdi + 0x28], ebx
call fcn.1400097a8
mov rsi, rdi
test rdi, rdi
je 0x140006b4f
add dword [rdi + 8], ebp
jmp 0x140006b4f
mov rsi, rbx
mov rdi, rbx
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140006b96
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [r14], rax
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x28]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [r14 + 0x10], eax
mov rax, qword [rsp + 0x28]
mov qword [r14 + 8], rax
jmp 0x140006b99
mov r14, rbx
mov qword [rsi + 0x18], r14
test r14, r14
jne 0x140006bbd
dec dword [rdi + 8]
cmp dword [rdi + 8], ebx
jg 0x140006ce5
mov rax, qword [rsi]
mov edx, ebp
mov rcx, rsi
call qword [rax]
jmp 0x140006ce5
add dword [rdi + 8], ebp
inc dword [rdi + 8]
mov rcx, qword [r13]
mov qword [r13], rsi
test rcx, rcx
je 0x140006bdf
dec dword [rcx + 8]
cmp dword [rcx + 8], ebx
jg 0x140006bdf
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
dec dword [rdi + 8]
cmp dword [rdi + 8], ebx
jg 0x140006bf1
mov rax, qword [rsi]
mov edx, ebp
mov rcx, rsi
call qword [rax]
dec dword [rdi + 8]
cmp dword [rdi + 8], ebx
jg 0x140006c03
mov rax, qword [rsi]
mov edx, ebp
mov rcx, rsi
call qword [rax]
mov bl, bpl
jmp 0x140006ce5
cmp qword [r9 + 0x18], 8
jb 0x140006c15
mov r9, qword [r9]
mov r8, r9
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140006ce5
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140006ce5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test r14, r14
je 0x140006cdc
mov ebp, eax
mov edx, eax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140006cdc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140006cdc
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call fcn.140061930
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rdx, qword [rsp + 0x20]
mov rcx, r13
call fcn.14000699c
mov sil, al
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140006cd9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov bl, sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret