Function at 0x1800097c8
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x128
lea rcx, str.GDIPLUS.DLL
mov r14, r8
xor esi, esi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rbp - 0x58], rax
test rax, rax
je 0x180009ac4
lea rdx, str.GdiplusStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusShutdown
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rdi
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToStream
mov rcx, rdi
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rdi
mov qword [rbp - 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageThumbnail
mov rcx, rdi
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x78]
xor r8d, r8d
mov dword [rbp - 0x10], 1
mov qword [rbp - 0x60], rax
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
call rbx
lea r8, [rbp + 8]
mov rcx, rdi
call fcn.1800096d4
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x78]
mov rcx, r14
sub eax, dword [rsp + 0x70]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x7c]
sub eax, dword [rsp + 0x74]
mov dword [rbp + 0x88], eax
call qword [sym.imp.USER32.dll_GetWindowDC]
lea rcx, str.GDI32.DLL
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x180009aa6
lea rdx, str.CreateCompatibleDC
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateCompatibleBitmap
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SelectObject
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BitBlt
mov rcx, r15
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteObject
mov rcx, r15
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteDC
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x58]
mov r15, rax
call rbx
mov r8d, dword [rbp + 0x88]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r14, rax
call rdi
mov rcx, r14
mov rdx, rax
mov rdi, rax
call r13
mov r9d, dword [rsp + 0x50]
mov dword [rsp + 0x40], 0xcc0020
mov rbx, rax
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x88]
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call rsi
xor esi, esi
lea rax, [0x180010430]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rdi
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], 1
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x28], esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov qword [rsp + 0x68], rsi
call qword [rbp - 0x68]
mov eax, dword [rbp + 0x88]
mov rcx, qword [rsp + 0x68]
cdq
lea r9, [rsp + 0x60]
sub eax, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x60], rsi
sar eax, 1
mov qword [rsp + 0x20], rsi
mov r8d, eax
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
mov edx, eax
call qword [rbp - 0x60]
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x60]
call qword [rbp - 0x50]
mov rcx, qword [rsp + 0x60]
mov rsi, qword [rbp - 0x80]
call rsi
mov rcx, qword [rsp + 0x68]
call rsi
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp + 0x70]
mov qword [rcx], rax
mov rcx, qword [rbp + 0x78]
mov eax, dword [rbp - 0x28]
mov dword [rcx], eax
mov rdx, rbx
mov rcx, r14
mov esi, 1
call r13
mov rcx, rdi
call r12
mov rcx, r14
call r15
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rbp - 0x58]
mov r14, qword [rbp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x78]
call qword [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret