Function at 0x140072020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push r12
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rax + 8], rbx
lea r8, [0x1402741a0]
mov qword [rax - 0x28], rdi
mov rbx, rcx
mov rcx, qword [0x140376780]
xor r12b, r12b
mov qword [rax - 0x30], r13
xor r13d, r13d
mov qword [rax - 0x38], r14
mov r15d, r13d
movzx edx, dx
mov r14d, r13d
mov qword [rbp + 0x77], r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140072257
mov rcx, qword [0x140376780]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x140072257
mov rcx, rax
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14007224f
mov rcx, qword [0x140376780]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14007224f
mov edx, eax
lea ecx, [r13 + 2]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x14007224f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14007224f
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rbp + 0x77]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14007224f
lea rax, vtable.ATL::CImage.0
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
mov word [rbp - 1], r13w
mov qword [rbp + 3], 0xffffffffffffffff
mov qword [rbp + 0xf], r13
mov dword [rbp + 0x17], r13d
mov qword [rbp + 0x1f], r13
call fcn.140068df0
mov rdi, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi + 0x30]
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r13, qword [rbp + 0x77]
call fcn.140068df0
mov rdi, rax
cmp dword [rax + 0x34], 0
jne 0x1400721c7
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rdi], 0
jne 0x1400722bc
xor eax, eax
mov dword [rbp - 0x49], 1
lea r8, [rbp - 0x59]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov qword [rbp - 0x39], rax
mov rcx, rdi
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x1400722bc
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov rcx, qword [rbp - 0x21]
lea rax, vtable.ATL::CImage.0
mov qword [rbp - 0x29], rax
test rcx, rcx
je 0x140072209
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 0
mov qword [rbp - 9], 0
mov qword [rbp + 3], 0xffffffffffffffff
mov word [rbp - 1], 0
call qword [sym.imp.GDI32.dll_DeleteObject]
call fcn.140068df0
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbx + 0x30], 1
jne 0x140072245
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140072238
call fcn.1400f828e
lea rcx, [rbx + 8]
mov qword [rbx], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rbp + 0x77]
mov r13, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xe0]
test rcx, rcx
je 0x14007227e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test r14, r14
je 0x140072295
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r14, qword [rsp + 0xa0]
test r15, r15
je 0x1400722ab
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
movzx eax, r12b
add rsp, 0xc0
pop r15
pop r12
pop rbp
ret
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, vtable.Gdiplus::Bitmap.0
xor esi, esi
lea rdx, [rbp + 0x7f]
mov qword [rbp - 0x49], rax
mov rcx, r13
mov qword [rbp + 0x7f], rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov rcx, qword [rbp + 0x7f]
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x39], esi
test eax, eax
je 0x1400722fc
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x1400721c9
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.14006f3a0
mov rcx, qword [rbp - 0x41]
mov edi, eax
call sub.gdiplus.dll_GdipDisposeImage
test edi, edi
js 0x1400721c9
mov r9, qword [rbp - 0x21]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12b, 1
jmp 0x1400721c9