Function at 0x1400c4e98
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140301ed0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 8
mov dword [rsp + 0x24], 0x2d
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor eax, eax
mov byte [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x29], rax
mov r8d, 0x400
mov qword [rsp + 0x31], rax
lea rcx, str.Gdiplus.dll
mov dword [rsp + 0x39], eax
mov word [rsp + 0x3d], ax
mov byte [rsp + 0x3f], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14030ae30], rax
test rax, rax
jne 0x1400c4f27
xor r8d, r8d
lea rcx, str.Gdiplus.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14030ae30], rax
test rax, rax
je 0x1400c5136
xor edx, edx
lea rcx, str.Shlwapi.dll
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14030ae20], rax
test rax, rax
jne 0x1400c4f81
xor r8d, r8d
lea rcx, str.Shlwapi.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp qword [0x14030ae20], 0
mov qword [0x14030ae30], rax
jne 0x1400c4f88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x14030ae30], 0
jmp 0x1400c5136
mov rax, qword [0x14030ae30]
lea rdx, str.GdipCreateBitmapFromStream
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, [0x1402de560]
mov qword [0x14030b140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae20]
lea rdx, str.SHCreateMemStream
mov qword [0x14030b148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov qword [0x14030b0d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipGetImagePixelFormat
mov qword [0x14030b0b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipCreateBitmapFromScan0
mov qword [0x14030b120], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipGetImageHorizontalResolution
mov qword [0x14030b168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipGetImageVerticalResolution
mov qword [0x14030b160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipBitmapSetResolution
mov qword [0x14030b128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipGetImageGraphicsContext
mov qword [0x14030b0c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipSetSmoothingMode
mov qword [0x14030b0c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipSetInterpolationMode
mov qword [0x14030b0b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, str.GdipDrawImageRectI
mov qword [0x14030b158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, [0x1402de6b0]
mov qword [0x14030b130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14030ae30]
lea rdx, [0x1402de6c8]
mov qword [0x14030b150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov dword [rsp + 0x28], 1
lea rdx, [rsp + 0x28]
mov qword [0x14030b138], rax
lea rcx, [0x14030ae40]
call qword [0x14030b148]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401d9840
add rsp, 0x58
ret