Function at 0x180001990
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 - 0x30], rax
test rax, rax
je 0x180001c9e
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 - 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToStream
mov rcx, rdi
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rdi
mov qword [rbp - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageThumbnail
mov rcx, rdi
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x28]
xor r8d, r8d
mov dword [rbp - 0x10], 1
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
call rbx
lea r8, [rbp + 8]
mov rcx, rdi
call fcn.180001cbc
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x80]
mov rcx, r14
sub eax, dword [rsp + 0x78]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp - 0x7c]
sub eax, dword [rsp + 0x7c]
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 - 0x20], rax
test rax, rax
je 0x180001c80
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, [0x180008180]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rdi
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rsp + 0x60], rsi
call qword [rbp - 0x18]
mov eax, dword [rbp + 0x88]
mov rcx, qword [rsp + 0x60]
cdq
lea r9, [rsp + 0x68]
sub eax, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x68], 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 - 0x38]
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [rbp - 0x78]
mov rcx, qword [rsp + 0x68]
call qword [rbp - 0x48]
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x70]
mov rax, qword [rbp - 0x68]
mov ecx, dword [rbp - 0x60]
mov rdx, qword [rbp + 0x70]
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rdx], rax
mov rax, qword [rbp + 0x78]
mov dword [rbp - 0x50], esi
mov dword [rax], ecx
lea rcx, [rbp - 0x78]
mov esi, 1
call fcn.18000169c
mov rdx, rbx
mov rcx, r14
call r13
mov rcx, rdi
call r12
mov rcx, r14
call r15
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rbp - 0x30]
mov r14, qword [rbp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x28]
call qword [rbp - 0x40]
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