Function at 0x1400d3df0
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, [0x14026d090]
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 0x1400d401b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x1400d401b
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 0x1400d401b
lea ecx, [r13 + 2]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x1400d401b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [rsp + 0x80]
movsd xmm6, qword [0x1402a7908]
test rax, rax
je 0x1400d3fb0
mov r8, rsi
mov rdx, r12
mov rcx, rax
call fcn.14022a570
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 0x1400d401b
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400d45e0
test eax, eax
js 0x1400d401b
movsd xmm0, qword [0x140319478]
ucomisd xmm0, xmm6
jp 0x1400d3f13
jne 0x1400d3f13
movsd xmm0, qword [0x1403194c8]
ucomisd xmm0, xmm6
jp 0x1400d3f13
je 0x1400d3f9c
test ebp, ebp
mov ecx, 0x18
je 0x1400d3f58
mov r12, qword [rsp + 0x20]
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rsi, rax
je 0x1400d3f95
lea rax, [0x140285338]
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 0x1400d3f98
mov r12, qword [rdi + 8]
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rsi, rax
je 0x1400d3f95
lea rax, [0x140285338]
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 0x1400d3f98
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 0x1400d3fc5
mov rcx, rdi
call fcn.1400d4070
movsd xmm0, qword [0x140319478]
ucomisd xmm0, xmm6
jp 0x1400d3fe5
jne 0x1400d3fe5
movsd xmm0, qword [0x1403194c8]
ucomisd xmm0, xmm6
jp 0x1400d3fe5
je 0x1400d4014
mov edx, 3
mov eax, 7
test ebp, ebp
cmovne edx, eax
mov rcx, rdi
call fcn.1400d4170
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x1400d4014
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rdi + 0x48], r13
mov eax, 1
jmp 0x1400d4049
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400d4030
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x20], r13
test rbx, rbx
je 0x1400d4047
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