Function at 0x1400ce810
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, [0x14025ad20]
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 0x1400cea3b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x1400cea3b
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 0x1400cea3b
lea ecx, [r13 + 2]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x1400cea3b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [rsp + 0x80]
movsd xmm6, qword [0x140294638]
test rax, rax
je 0x1400ce9d0
mov r8, rsi
mov rdx, r12
mov rcx, rax
call fcn.140219480
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 0x1400cea3b
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400cf000
test eax, eax
js 0x1400cea3b
movsd xmm0, qword [0x140304428]
ucomisd xmm0, xmm6
jp 0x1400ce933
jne 0x1400ce933
movsd xmm0, qword [0x140304478]
ucomisd xmm0, xmm6
jp 0x1400ce933
je 0x1400ce9bc
test ebp, ebp
mov ecx, 0x18
je 0x1400ce978
mov r12, qword [rsp + 0x20]
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rsi, rax
je 0x1400ce9b5
lea rax, [0x140272848]
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 0x1400ce9b8
mov r12, qword [rdi + 8]
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rsi, rax
je 0x1400ce9b5
lea rax, [0x140272848]
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 0x1400ce9b8
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 0x1400ce9e5
mov rcx, rdi
call fcn.1400cea90
movsd xmm0, qword [0x140304428]
ucomisd xmm0, xmm6
jp 0x1400cea05
jne 0x1400cea05
movsd xmm0, qword [0x140304478]
ucomisd xmm0, xmm6
jp 0x1400cea05
je 0x1400cea34
mov edx, 3
mov eax, 7
test ebp, ebp
cmovne edx, eax
mov rcx, rdi
call fcn.1400ceb90
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x1400cea34
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rdi + 0x48], r13
mov eax, 1
jmp 0x1400cea69
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400cea50
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x20], r13
test rbx, rbx
je 0x1400cea67
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