Function at 0x1400cde50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x68]
sub rsp, 0x158
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rbp + 0x10], rax
movzx eax, byte [rbp + 0x90]
xor esi, esi
mov qword [r11 - 0x18], rbx
xorps xmm0, xmm0
mov qword [r11 - 0x20], rdi
mov rbx, rcx
mov qword [r11 - 0x30], r13
xor dil, dil
mov byte [rsp + 0x44], al
mov r13d, esi
xor eax, eax
mov qword [r11 - 0x38], r14
mov qword [rbp - 0x28], rax
mov r14d, esi
mov dword [rbp - 0x20], eax
lea rax, [0x1401c5388]
mov dword [rbp - 0x50], edx
lea rdx, [rbp - 8]
mov dword [rbp - 0x4c], r8d
lea r8d, [rsi + 3]
mov qword [rbp], r9
lea r9, [rbp - 0x68]
mov qword [r11 - 0x40], r15
mov r15d, esi
mov qword [rbp - 8], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x50], esi
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x70], rsi
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp + 8], rsi
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
nop dword [rax + rax]
test eax, eax
js 0x1400ce16f
mov rdx, qword [rbp - 0x68]
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
nop dword [rax]
test eax, eax
js 0x1400ce16f
mov rcx, qword [0x140213cd0]
lea edx, [rsi + 4]
mov rdi, qword [rbp - 0x60]
mov qword [rsp + 0x140], r12
mov r12d, dword [rbp - 0x78]
mov r8d, r12d
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r12d
mov rdx, rdi
mov rcx, rax
mov r14, rax
call fcn.140165120
lea rcx, str.windowscodecs.dll
call fcn.1401047c0
test rax, rax
jne 0x1400cdf8f
lea rcx, str.windowscodecs.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400cdfb8
lea r9, [rsp + 0x48]
mov rcx, rax
lea r8, [0x1401879b0]
lea rdx, [0x1401c53d8]
call fcn.140105bf0
nop word [rax + rax]
test eax, eax
js 0x1400ce163
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x140101f48.0]
nop
test eax, eax
js 0x1400ce163
mov rcx, qword ds:[rbp - 0x80]
mov r8d, r12d
mov rdx, r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [0x1401c53c8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov rcx, qword [rsp + 0x68]
mov r12d, 1
mov rdx, qword [rbp - 0x80]
mov r8d, r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
nop dword [rax]
cmp dword [rsp + 0x50], r12d
jb 0x1400ce163
mov rcx, qword ds:[rsp + 0x68]
lea r8, [rsp + 0x60]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov rcx, qword ds:[rsp + 0x60]
lea rdx, [rbp - 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
cmp byte [rsp + 0x44], sil
lea rax, [0x1401c53b8]
lea rbx, [0x1401c53e8]
cmovne rbx, rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbx]
jne 0x1400ce0f7
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbx + 8]
jne 0x1400ce0f7
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
jmp 0x1400ce296
mov rcx, qword ds:[rsp + 0x48]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov rcx, qword [rsp + 0x58]
xorps xmm0, xmm0
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x30], esi
mov r8, rbx
movsd qword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
mov rax, qword [rax + 0x40]
call qword [case.0x140101f48.0]
mov rcx, qword [rsp + 0x58]
test eax, eax
mov rax, qword [rcx]
jns 0x1400ce257
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov edi, dword [rsp + 0x40]
mov r12, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x150]
test rcx, rcx
je 0x1400ce18e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
nop
test r13, r13
je 0x1400ce19e
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov r13, qword [rsp + 0x138]
test r15, r15
je 0x1400ce1b6
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x128]
test rcx, rcx
je 0x1400ce1d6
mov rax, qword ds:[rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400ce1ec
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ce203
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400ce21a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
test r14, r14
je 0x1400ce236
mov rcx, qword [0x140213cd0]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x130]
test dil, dil
mov rdi, qword [rsp + 0x148]
je 0x1400ce389
mov rax, rsi
jmp 0x1400ce398
mov rax, qword [rax]
lea r8, [rsp + 0x78]
lea rdx, [0x1401879a0]
call qword [case.0x140101f48.0]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword ds:[rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov eax, dword [rbp - 0x50]
xor ecx, ecx
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x4c]
neg eax
mov dword [rbp - 0x48], 0x28
mov dword [rbp - 0x40], eax
mov qword [rbp - 0x3c], 0x200001
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea r9, [rbp - 0x70]
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x48]
mov rcx, r15
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov rcx, qword [rsp + 0x48]
mov rsi, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x58]
lea rdx, [rsp + 0x70]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov rcx, qword ds:[rsp + 0x70]
mov r9d, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x50]
mov dword [rsp + 0x20], 3
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x40]
mov rdx, qword [rsp + 0x78]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400ce163
mov r8d, dword ds:[rbp - 0x50]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x70]
mov r9d, dword [rbp - 0x4c]
imul r9d, r8d
lea r8d, [r8*4]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x58]
mov rax, qword [rcx]
shl r9d, 2
mov rax, qword [rax + 0x38]
call qword [case.0x140101f48.0]
mov edi, dword [rsp + 0x40]
test eax, eax
movzx edi, dil
cmovns edi, r12d
jmp 0x1400ce167
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140161390
add rsp, 0x158
pop rsi
pop rbp
ret