Function at 0x14001b85c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2a0
mov r9, qword [0x140106c40]
xor edi, edi
mov rsi, rcx
cmp r9, rdi
jne 0x14001bb5e
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp rax, rdi
jne 0x14001b9d4
lea r8, [rsp + 0x2c0]
lea rdx, str._SystemRoot_WinSxS
lea rcx, [0x140106ec0]
xor r9d, r9d
mov qword [rsp + 0x2c8], rdi
mov qword [rsp + 0x2c0], rdi
mov byte [rsp + 0x20], 1
call fcn.140069b2c
mov rdx, qword [rsp + 0x2c0]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x2c8]
call fcn.1400cbe9c
cmp rax, rdi
je 0x14001b9a6
mov rcx, qword [rsp + 0x2c0]
lea r8d, [rdi + 0x5c]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001b907
mov word [rax], di
cmp word [rsp + 0x7c], 0x2e
je 0x14001b98b
test byte [rsp + 0x50], 0x10
je 0x14001b98b
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x7c]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rcx + rbx + 0x1e]
lea rcx, [rsp + 0x2d0]
call fcn.140056040
mov r8, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2d0]
lea r9, [rsp + 0x7c]
lea rdx, str._s_sGdiPlus.dll
call fcn.140014608
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x2d0]
mov rbx, rax
call fcn.14004ea6c
cmp rbx, rdi
jne 0x14001b9a6
mov rcx, qword [rsp + 0x2c8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001b907
lea rcx, [rsp + 0x2c0]
call fcn.14004ea6c
mov rcx, qword [rsp + 0x2c8]
cmp rcx, rdi
je 0x14001b9cc
cmp rcx, 0xffffffffffffffff
je 0x14001b9cc
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x2c8], rdi
lea rdx, str.GdiplusShutdown
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromFile
mov rcx, rbx
mov qword [0x140106c48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x140106c68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x140106c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x140106c58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x140106c60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x140106c80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x140106c88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x140106c90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x140106c70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x140106c78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x140106c98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x140106ca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x140106ca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x140106cb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x140106cb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov rcx, rbx
mov qword [0x140106cc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
mov qword [0x140106c40], rax
mov rax, qword [0x140106d90]
mov r8, qword [0x140106c68]
cmp rax, rdi
jne 0x14001bbaa
cmp r8, rdi
je 0x14001bbaa
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [0x140106d90]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call r9
mov r8, qword [0x140106c68]
mov rax, qword [0x140106d90]
cmp rsi, 0xffffffffffffffff
je 0x14001bbdb
mov qword [rsp + 0x2d8], rdi
cmp rsi, rdi
je 0x14001bbd8
cmp r8, rdi
je 0x14001bbd8
lea rdx, [rsp + 0x2d8]
mov rcx, rsi
call r8
mov rdi, qword [rsp + 0x2d8]
mov rax, rdi
add rsp, 0x2a0
pop rdi
pop rsi
pop rbx
ret