Function at 0x140001580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14001e018]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
lea r8, [0x140013478]
mov edx, 0x4bc
mov qword [rbp - 0x29], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
lea r15d, [rsi + 1]
mov rbx, rax
test rax, rax
je 0x14000165d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000165d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000165d
mov edx, r14d
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14000165d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140001654
mov r8d, r14d
mov rdx, rdi
mov rcx, rax
call fcn.140003170
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rbp - 0x29]
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x14000165d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rbp - 0x29]
mov rdi, rbx
mov rax, rbx
test rbx, rbx
je 0x140001725
lea rax, [rbp - 0x21]
mov qword [rbp - 0x11], rsi
lea r9, [0x140013758]
mov qword [rsp + 0x20], rax
mov r8d, r15d
mov qword [rbp - 0x21], rsi
xor edx, edx
lea rcx, [0x140013778]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000170d
mov rcx, qword [rbp - 0x21]
mov r8d, r15d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x21]
test eax, eax
js 0x140001707
mov dword [rbp - 9], esi
lea rdx, [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x60]
test eax, eax
js 0x140001703
cmp dword [rbp - 9], r15d
jne 0x140001703
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 1]
mov qword [rbp - 1], rsi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x140001703
mov rdx, qword [rbp - 1]
lea r8, [rbp - 0x11]
lea rcx, [0x140013768]
call sub.WindowsCodecs.dll_WICConvertBitmapSource
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x11]
mov r14, rcx
mov rax, rcx
test rcx, rcx
jne 0x14000172c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140001810
mov rax, qword [rcx]
lea r8, [rbp - 0x15]
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x19], esi
mov dword [rbp - 0x15], esi
call qword [rax + 0x18]
test eax, eax
js 0x1400017fb
mov ecx, dword [rbp - 0x19]
test ecx, ecx
je 0x1400017fb
mov eax, dword [rbp - 0x15]
test eax, eax
je 0x1400017fb
xorps xmm0, xmm0
mov dword [rbp + 0x13], ecx
neg eax
mov qword [rbp + 0x33], rsi
xor ecx, ecx
mov dword [rbp + 0x17], eax
movdqu xmmword [rbp + 0x23], xmm0
mov dword [rbp + 0xf], 0x28
mov qword [rbp + 0x1b], 0x200001
mov qword [rbp + 7], rsi
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x28], esi
lea r9, [rbp + 7]
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov rdx, rbx
xor ecx, ecx
mov r15, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
test r15, r15
je 0x1400017fb
mov eax, dword [rbp - 0x19]
xor edx, edx
mov r10, qword [r14]
mov rcx, r14
lea r8d, [rax*4]
mov rax, qword [rbp + 7]
mov r9d, r8d
mov qword [rsp + 0x20], rax
imul r9d, dword [rbp - 0x15]
call qword [r10 + 0x38]
test eax, eax
jns 0x1400017f8
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r15, rsi
mov rsi, r15
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x10]
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
mov rax, rsi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400022e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret