Function at 0x14001bc70
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2a0
mov r9, qword [0x14010bc48]
xor edi, edi
mov rsi, rcx
cmp r9, rdi
jne 0x14001bf72
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp rax, rdi
jne 0x14001bde8
lea r8, [rsp + 0x2c0]
lea rdx, str._SystemRoot_WinSxS
lea rcx, [0x14010bee0]
xor r9d, r9d
mov qword [rsp + 0x2c8], rdi
mov qword [rsp + 0x2c0], rdi
mov byte [rsp + 0x20], 1
call fcn.14006a8f4
mov rdx, qword [rsp + 0x2c0]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x2c8]
call fcn.1400d1568
cmp rax, rdi
je 0x14001bdba
mov rcx, qword [rsp + 0x2c0]
lea r8d, [rdi + 0x5c]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001bd1b
mov word [rax], di
cmp word [rsp + 0x7c], 0x2e
je 0x14001bd9f
test byte [rsp + 0x50], 0x10
je 0x14001bd9f
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.1400571c8
mov r8, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2d0]
lea r9, [rsp + 0x7c]
lea rdx, str._s_sGdiPlus.dll
call fcn.140014c04
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x2d0]
mov rbx, rax
call fcn.14004f564
cmp rbx, rdi
jne 0x14001bdba
mov rcx, qword [rsp + 0x2c8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001bd1b
lea rcx, [rsp + 0x2c0]
call fcn.14004f564
mov rcx, qword [rsp + 0x2c8]
cmp rcx, rdi
je 0x14001bde0
cmp rcx, 0xffffffffffffffff
je 0x14001bde0
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 [0x14010bc50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x14010bc70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x14010bc58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x14010bc60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x14010bc68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x14010bc88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x14010bc90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x14010bc98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x14010bc78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x14010bc80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x14010bca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x14010bca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14010bcb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14010bcb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x14010bcc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov rcx, rbx
mov qword [0x14010bcc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
mov qword [0x14010bc48], rax
mov rax, qword [0x14010bd98]
mov r8, qword [0x14010bc70]
cmp rax, rdi
jne 0x14001bfbe
cmp r8, rdi
je 0x14001bfbe
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [0x14010bd98]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call r9
mov r8, qword [0x14010bc70]
mov rax, qword [0x14010bd98]
cmp rsi, 0xffffffffffffffff
je 0x14001bfef
mov qword [rsp + 0x2d8], rdi
cmp rsi, rdi
je 0x14001bfec
cmp r8, rdi
je 0x14001bfec
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