Function at 0x14001c08c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2a0
mov r9, qword [0x14010dc80]
xor edi, edi
mov rsi, rcx
cmp r9, rdi
jne 0x14001c38e
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp rax, rdi
jne 0x14001c204
lea r8, [rsp + 0x2c0]
lea rdx, str._SystemRoot_WinSxS
lea rcx, [0x14010df00]
xor r9d, r9d
mov qword [rsp + 0x2c8], rdi
mov qword [rsp + 0x2c0], rdi
mov byte [rsp + 0x20], 1
call fcn.14006b814
mov rdx, qword [rsp + 0x2c0]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x2c8]
call fcn.1400d342c
cmp rax, rdi
je 0x14001c1d6
mov rcx, qword [rsp + 0x2c0]
lea r8d, [rdi + 0x5c]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001c137
mov word [rax], di
cmp word [rsp + 0x7c], 0x2e
je 0x14001c1bb
test byte [rsp + 0x50], 0x10
je 0x14001c1bb
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.1400580ac
mov r8, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2d0]
lea r9, [rsp + 0x7c]
lea rdx, str._s_sGdiPlus.dll
call fcn.140014d04
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x2d0]
mov rbx, rax
call fcn.140050424
cmp rbx, rdi
jne 0x14001c1d6
mov rcx, qword [rsp + 0x2c8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001c137
lea rcx, [rsp + 0x2c0]
call fcn.140050424
mov rcx, qword [rsp + 0x2c8]
cmp rcx, rdi
je 0x14001c1fc
cmp rcx, 0xffffffffffffffff
je 0x14001c1fc
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 [0x14010dc88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x14010dca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x14010dc90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x14010dc98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x14010dca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x14010dcc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x14010dcc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x14010dcd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x14010dcb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x14010dcb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x14010dcd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x14010dce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14010dce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14010dcf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x14010dcf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov rcx, rbx
mov qword [0x14010dd00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
mov qword [0x14010dc80], rax
mov rax, qword [0x14010ddc8]
mov r8, qword [0x14010dca8]
cmp rax, rdi
jne 0x14001c3da
cmp r8, rdi
je 0x14001c3da
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [0x14010ddc8]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call r9
mov r8, qword [0x14010dca8]
mov rax, qword [0x14010ddc8]
cmp rsi, 0xffffffffffffffff
je 0x14001c40b
mov qword [rsp + 0x2d8], rdi
cmp rsi, rdi
je 0x14001c408
cmp r8, rdi
je 0x14001c408
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