Function at 0x140098820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rdx
movaps xmmword [rsp + 0x70], xmm6
movzx edx, r8w
mov rdi, rcx
xor r15d, r15d
lea r8, [0x140390cc8]
mov rcx, rbx
mov qword [rbp + 0x48], r15
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140098ba8
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
je 0x140098ba5
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140098ba5
mov edx, r15d
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140098ba5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movsd xmm6, qword [0x1403d25e0]
test rax, rax
je 0x140098a8b
mov r8d, r15d
mov rdx, r14
mov rcx, rax
call fcn.1402eebc0
xor r15d, r15d
lea r8, [rbp + 0x48]
xor edx, edx
mov qword [rbp + 0x48], r15
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140098ba8
mov r12, qword [rbp + 0x48]
call fcn.140099610
mov rbx, rax
cmp dword [rax + 0x34], r15d
jne 0x140098ba8
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14b, 1
cmp qword [rbx], r15
jne 0x140098960
xor eax, eax
mov dword [rbp - 0x48], 1
lea r8, [rbp - 0x58]
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x38], rax
mov rcx, rbx
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
movzx r14d, r14b
cmovne r14d, r15d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14b, r14b
je 0x140098ba8
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbp - 0x60], r15
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x30], rax
mov rcx, r12
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rbp - 0x60]
mov qword [rbp - 0x28], rcx
mov dword [rbp - 0x20], r15d
test eax, eax
je 0x1400989aa
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x140098ba8
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140099050
mov rcx, qword [rbp - 0x28]
mov ebx, eax
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
test ebx, ebx
js 0x140098ba8
movsd xmm0, qword [0x140450f90]
ucomisd xmm0, xmm6
jp 0x1400989ee
jne 0x1400989ee
movsd xmm0, qword [0x140450f98]
ucomisd xmm0, xmm6
jp 0x1400989ee
je 0x140098a76
mov ecx, 0x18
cmp dword [rbp + 0x50], r15d
je 0x140098a33
mov r14, qword [rbp + 0x48]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x140098a6f
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbp - 0x60], r15
lea rdx, [rbp - 0x60]
mov qword [rbx], rax
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rbp - 0x60]
mov qword [rbx + 8], rcx
mov dword [rbx + 0x10], eax
jmp 0x140098a72
mov r14, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x140098a6f
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbp - 0x60], r15
lea r8, [rbp - 0x60]
mov qword [rbx], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov rcx, qword [rbp - 0x60]
mov qword [rbx + 8], rcx
mov dword [rbx + 0x10], eax
jmp 0x140098a72
mov rbx, r15
mov qword [rdi + 0x50], rbx
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140098a8e
xor r15d, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x50], 0
je 0x140098b4d
cmp dword [rdi + 0x24], 0x20
jne 0x140098b4d
movsxd rax, dword [rdi + 0x20]
mov r9, qword [rdi + 0x10]
mov esi, eax
shr esi, 0x1f
test esi, esi
je 0x140098ac8
shr rax, 2
not eax
cdqe
lea r9, [r9 + rax*4]
cmp dword [rdi + 0x18], 0
mov r11d, r15d
jle 0x140098b4d
cmp dword [rdi + 0x1c], 0
mov r10d, r15d
jle 0x140098b44
mov eax, esi
xor rax, 1
lea rbx, [rax*8 - 4]
nop dword [rax + rax]
movzx ecx, byte [r9]
mov eax, 0x80808081
movzx r8d, byte [r9 + 3]
inc r10d
imul ecx, r8d
mul ecx
movzx ecx, byte [r9 + 1]
mov eax, 0x80808081
shr edx, 7
mov byte [r9], dl
imul ecx, r8d
mul ecx
movzx ecx, byte [r9 + 2]
mov eax, 0x80808081
shr edx, 7
mov byte [r9 + 1], dl
imul ecx, r8d
mul ecx
shr edx, 7
mov byte [r9 + 2], dl
add r9, rbx
cmp r10d, dword [rdi + 0x1c]
jl 0x140098af0
inc r11d
cmp r11d, dword [rdi + 0x18]
jl 0x140098ad1
movsd xmm0, qword [0x140450f90]
ucomisd xmm0, xmm6
jp 0x140098b6d
jne 0x140098b6d
movsd xmm0, qword [0x140450f98]
ucomisd xmm0, xmm6
jp 0x140098b6d
je 0x140098b9e
cmp dword [rbp + 0x50], 0
mov edx, 3
mov eax, 7
mov rcx, rdi
cmovne edx, eax
call fcn.140098c00
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140098b9e
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rdi + 0x50], r15
mov eax, 1
jmp 0x140098bd4
xor r15d, r15d
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140098bbb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbp + 0x48], r15
test rsi, rsi
je 0x140098bd2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x70]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret