Function at 0x1400c3530
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
sub rsp, 0x40
mov rbp, rdx
movzx edx, r8w
mov rdi, rcx
xor r13d, r13d
lea r8, [0x1402731c0]
mov rcx, rbp
movaps xmmword [rsp + 0x30], xmm6
mov rbx, r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x1400c375b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x1400c375b
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov r12, rax
je 0x1400c375b
lea ecx, [r13 + 2]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x1400c375b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [rsp + 0x80]
movsd xmm6, qword [0x1402af8f0]
test rax, rax
je 0x1400c36f0
mov r8, rsi
mov rdx, r12
mov rcx, rax
call fcn.14022e920
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x1400c375b
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400c3d20
test eax, eax
js 0x1400c375b
movsd xmm0, qword [0x140322538]
ucomisd xmm0, xmm6
jp 0x1400c3653
jne 0x1400c3653
movsd xmm0, qword [0x140322588]
ucomisd xmm0, xmm6
jp 0x1400c3653
je 0x1400c36dc
test ebp, ebp
mov ecx, 0x18
je 0x1400c3698
mov r12, qword [rsp + 0x20]
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rsi, rax
je 0x1400c36d5
lea rax, [0x14028b628]
lea rdx, [rsp + 0x28]
mov rcx, r12
mov qword [rsi], rax
mov qword [rsp + 0x28], r13
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov rcx, qword [rsp + 0x28]
mov dword [rsi + 0x10], eax
mov qword [rsi + 8], rcx
jmp 0x1400c36d8
mov r12, qword [rdi + 8]
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rsi, rax
je 0x1400c36d5
lea rax, [0x14028b628]
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x28], r13
mov qword [rsi], rax
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov rcx, qword [rsp + 0x28]
mov qword [rsi + 8], rcx
mov dword [rsi + 0x10], eax
jmp 0x1400c36d8
mov rsi, r13
mov qword [rdi + 0x48], rsi
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test ebp, ebp
je 0x1400c3705
mov rcx, rdi
call fcn.1400c37b0
movsd xmm0, qword [0x140322538]
ucomisd xmm0, xmm6
jp 0x1400c3725
jne 0x1400c3725
movsd xmm0, qword [0x140322588]
ucomisd xmm0, xmm6
jp 0x1400c3725
je 0x1400c3754
mov edx, 3
mov eax, 7
test ebp, ebp
cmovne edx, eax
mov rcx, rdi
call fcn.1400c38b0
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x1400c3754
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rdi + 0x48], r13
mov eax, 1
jmp 0x1400c3789
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400c3770
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x20], r13
test rbx, rbx
je 0x1400c3787
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret