Function at 0x14001d710
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
xor ebx, ebx
mov r12, rdx
mov rsi, rcx
mov ebp, 1
cmp rdx, rbx
je 0x14001d756
test byte [rdx], 0x10
je 0x14001d756
mov rax, qword [rdx + 8]
mov dword [rsp + 0x348], ebp
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x68], rax
jmp 0x14001d767
mov dword [rsp + 0x348], ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbx
mov r9, qword [0x14011bcf8]
mov r13d, 0x2e
cmp r9, rbx
jne 0x14001db87
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov rbx, rax
cmp rax, rdi
jne 0x14001d8b9
lea r8, [rsp + 0x30]
lea rdx, str._SystemRoot_WinSxS
lea rcx, [0x14011c020]
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], bpl
call fcn.140071328
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400e0b7c
cmp rax, rdi
je 0x14001d894
mov rcx, qword [rsp + 0x30]
lea r8d, [r13 + 0x2e]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001d7fb
mov word [rax], di
cmp word [rsp + 0xcc], r13w
je 0x14001d879
test byte [rsp + 0xa0], 0x10
je 0x14001d879
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0xcc]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rcx + rbx + 0x1e]
lea rcx, [rsp + 0x40]
call fcn.14005c9e0
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0xcc]
lea rdx, str._s_sGdiPlus.dll
call fcn.140015d40
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140054c44
cmp rbx, rdi
jne 0x14001d894
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001d7fb
lea rcx, [rsp + 0x30]
call fcn.140054c44
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x14001d8b4
cmp rcx, 0xffffffffffffffff
je 0x14001d8b4
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x38], rdi
lea rdx, str.GdiplusShutdown
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromFile
mov rcx, rbx
mov qword [0x14011bd00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x14011bd20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x14011bd08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x14011bd10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x14011bd18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x14011bd68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x14011bd70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x14011bd78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x14011bd38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x14011bd40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x14011bd80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x14011bd88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14011bd90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14011bd98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x14011bda0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetPixelOffsetMode
mov rcx, rbx
mov qword [0x14011bda8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetSmoothingMode
mov rcx, rbx
mov qword [0x14011bdb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromStream
mov rcx, rbx
mov qword [0x14011bdb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageType
mov rcx, rbx
mov qword [0x14011bdc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHICON
mov qword [0x14011bdc8], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageDimension
mov rcx, rbx
mov qword [0x14011bde0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHICONFromBitmap
mov rcx, rbx
mov qword [0x14011bde8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetTextRenderingHint
mov rcx, rbx
mov qword [0x14011bdd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageGetFrameDimensionsList
mov rcx, rbx
mov qword [0x14011bdd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageSelectActiveFrame
mov rcx, rbx
mov qword [0x14011bd28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageGetFrameDimensionsCount
mov rcx, rbx
mov qword [0x14011bd30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageGetFrameCount
mov rcx, rbx
mov qword [0x14011bd48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetPropertyItemSize
mov rcx, rbx
mov qword [0x14011bd50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetPropertyItem
mov rcx, rbx
mov qword [0x14011bd58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov rcx, rbx
mov qword [0x14011bd60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r9, rax
mov qword [0x14011bcf8], rax
mov rax, qword [0x14011beb8]
cmp rax, rbx
jne 0x14001dbd1
cmp qword [0x14011bd20], rbx
je 0x14001dbd1
xor eax, eax
lea rdx, [rsp + 0x80]
lea rcx, [0x14011beb8]
xor r8d, r8d
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
call r9
mov rax, qword [0x14011beb8]
cmp rsi, 0xffffffffffffffff
je 0x14001df7a
cmp rsi, rbx
je 0x14001df7a
lea rax, [rsi + 2]
lea rdx, [rsp + 0x350]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x358], rbx
mov r13, rbx
mov r14, rbx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x350], ebp
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x340], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call fcn.140060ca8
mov edx, 0x7c
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, rbx
je 0x14001dc48
mov word [rax], bx
xor edx, edx
mov rcx, rsi
mov r15, rax
lea r8d, [rdx + 0x23]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
mov rax, qword [0x14011bd20]
cmp rdi, rbx
jne 0x14001dc72
cmp rax, rbx
jne 0x14001ddec
mov ecx, 0x23
cmp cx, word [rsi]
jne 0x14001dc88
mov r13, qword [0x14011be68]
mov rbp, rsi
jmp 0x14001dce4
cmp rbp, rbx
je 0x14001dde3
movzx ebx, word [rbp]
xor eax, eax
xor edx, edx
lea r8d, [rax + 2]
mov rcx, rsi
mov word [rbp], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov word [rbp], bx
xor ebx, ebx
mov r14, rax
mov r13, rax
cmp rdi, rbx
je 0x14001dcc6
mov r8, rdi
sub r8, rbp
sar r8, 1
jmp 0x14001dcd2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rcx, [rsp + 0x48]
mov rdx, rbp
call fcn.14005cbd4
mov rbp, qword [rsp + 0x48]
mov esi, 2
cmp rdi, rbx
je 0x14001dea0
add rdi, rsi
je 0x14001dea0
lea rcx, str.Bitmap
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001dd4b
mov rdx, rbp
mov rcx, r13
mov rdi, rsi
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov rbx, rax
xor eax, eax
cmp rbx, rax
je 0x14001dd44
lea r8, [rsp + 0x358]
xor edx, edx
mov rcx, rbx
call qword [0x14011bd68]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
xor ebx, ebx
jmp 0x14001dea0
lea rcx, str.ICON
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001dd71
mov edi, 3
mov dword [rsp + 0x340], 0x14
jmp 0x14001dd8d
mov rcx, rdi
call fcn.140057030
cmp al, bl
je 0x14001dea0
mov edi, 0xe
mov dword [rsp + 0x340], esi
mov r9d, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x70]
lea rax, [rsp + 0x340]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x20], rbx
call fcn.14006a454
bt dword [rsp + 0x340], 8
mov rbx, rax
jae 0x14001de6a
mov qword [rsp + 0x358], rax
xor eax, eax
cmp rbx, rax
je 0x14001de96
or qword [r12], 4
jmp 0x14001de88
cmp rax, rbx
je 0x14001df4d
mov rcx, rsi
call fcn.14006162c
cmp al, bl
je 0x14001de24
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001c7cc
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
call fcn.14005afa8
mov qword [rsp + 0x358], rax
jmp 0x14001df4d
xor r9d, r9d
mov rdx, rsi
xor ecx, ecx
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_LoadImageW]
mov rbx, rax
xor eax, eax
cmp rbx, rax
je 0x14001defd
lea esi, [rax + 2]
cmp dword [rsp + 0x348], eax
je 0x14001de6e
or qword [r12], rsi
mov qword [rsp + 0x358], rbx
jmp 0x14001de88
xor eax, eax
jmp 0x14001de53
lea rdx, [rsp + 0x358]
mov rcx, rbx
call qword [0x14011bde0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyIcon]
xor ebx, ebx
cmp qword [rsp + 0x358], rbx
jne 0x14001dea0
jmp 0x14001de98
xor ebx, ebx
mov qword [rsp + 0x358], rbx
cmp r13, rbx
je 0x14001deed
cmp qword [rsp + 0x358], rbx
jne 0x14001deed
cmp rdi, rbx
lea r9, [rsp + 0x50]
mov rdx, rbp
cmove rdi, rsi
mov rcx, r13
mov qword [rsp + 0x20], rbx
mov r8, rdi
call fcn.14001cf54
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
call fcn.14005afa8
mov qword [rsp + 0x358], rax
cmp rax, rbx
jne 0x14001df4d
cmp r14, rbx
je 0x14001df4d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001df4d
lea rdx, [rsp + 0x358]
mov rcx, rsi
call qword [0x14011bd20]
xor ebx, ebx
cmp qword [rsp + 0x358], rbx
je 0x14001df4d
cmp r12, rbx
je 0x14001df4d
lea r8d, [rbx + 0x2e]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rbx
je 0x14001df4d
lea rcx, [rax + 2]
lea rdx, [0x1401008e0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001df4d
or qword [r12], 4
cmp r15, rbx
je 0x14001df5b
mov eax, 0x7c
mov word [r15], ax
mov rbx, qword [rsp + 0x358]
lea rcx, [rsp + 0x50]
call fcn.140054c44
lea rcx, [rsp + 0x48]
call fcn.140054c44
mov rax, rbx
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret