Function at 0x14001d2a4
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 0x14001d2ea
test byte [rdx], 0x10
je 0x14001d2ea
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 0x14001d2fb
mov dword [rsp + 0x348], ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbx
mov r9, qword [0x14011acb8]
cmp r9, rbx
jne 0x14001d674
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov rbx, rax
cmp rax, rdi
jne 0x14001d447
lea r8, [rsp + 0x30]
lea rdx, str._SystemRoot_WinSxS
lea rcx, [0x14011afa0]
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], bpl
call fcn.140070858
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400df3ac
cmp rax, rdi
je 0x14001d422
mov rcx, qword [rsp + 0x30]
lea r8d, [rdi + 0x5c]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001d389
mov word [rax], di
cmp word [rsp + 0xcc], 0x2e
je 0x14001d407
test byte [rsp + 0xa0], 0x10
je 0x14001d407
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.14005bf78
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0xcc]
lea rdx, str._s_sGdiPlus.dll
call fcn.140015824
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140054110
cmp rbx, rdi
jne 0x14001d422
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001d389
lea rcx, [rsp + 0x30]
call fcn.140054110
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x14001d442
cmp rcx, 0xffffffffffffffff
je 0x14001d442
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 [0x14011acc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x14011ace0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x14011acc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x14011acd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x14011acd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x14011acf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x14011ad00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x14011ad08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x14011ace8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x14011acf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x14011ad10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x14011ad18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14011ad20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x14011ad28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x14011ad30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetPixelOffsetMode
mov rcx, rbx
mov qword [0x14011ad38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetSmoothingMode
mov rcx, rbx
mov qword [0x14011ad40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromStream
mov rcx, rbx
mov qword [0x14011ad48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageType
mov rcx, rbx
mov qword [0x14011ad50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHICON
mov qword [0x14011ad58], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageDimension
mov rcx, rbx
mov qword [0x14011ad68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHICONFromBitmap
mov rcx, rbx
mov qword [0x14011ad70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov rcx, rbx
mov qword [0x14011ad60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r9, rax
mov qword [0x14011acb8], rax
mov rax, qword [0x14011ae40]
cmp rax, rbx
jne 0x14001d6be
cmp qword [0x14011ace0], rbx
je 0x14001d6be
xor eax, eax
lea rdx, [rsp + 0x80]
lea rcx, [0x14011ae40]
xor r8d, r8d
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
call r9
mov rax, qword [0x14011ae40]
cmp rsi, 0xffffffffffffffff
je 0x14001da0b
cmp rsi, rbx
jne 0x14001d6d4
xor eax, eax
jmp 0x14001da0b
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.140060294
mov edx, 0x7c
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, rbx
je 0x14001d738
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 [0x14011ace0]
cmp rdi, rbx
jne 0x14001d762
cmp rax, rbx
jne 0x14001d8d2
mov ecx, 0x23
cmp cx, word [rsi]
jne 0x14001d778
mov r13, qword [0x14011adf0]
mov rbp, rsi
jmp 0x14001d7d4
cmp rbp, rbx
je 0x14001d8c9
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 0x14001d7b6
mov r8, rdi
sub r8, rbp
sar r8, 1
jmp 0x14001d7c2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rcx, [rsp + 0x48]
mov rdx, rbp
call fcn.14005c16c
mov rbp, qword [rsp + 0x48]
mov esi, 2
cmp rdi, rbx
je 0x14001d971
add rdi, rsi
je 0x14001d971
lea rcx, str.Bitmap
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001d83d
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 0x14001d96f
lea r8, [rsp + 0x358]
xor edx, edx
mov rcx, rbx
call qword [0x14011acf8]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x14001d96f
lea rcx, str.ICON
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001d863
mov edi, 3
mov dword [rsp + 0x340], 4
jmp 0x14001d89b
lea rcx, str.ICON_GROUP
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
je 0x14001d88f
lea rcx, str.ICONGROUP
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001d971
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.140069e08
mov rbx, rax
xor eax, eax
jmp 0x14001d936
cmp rax, rbx
je 0x14001d9de
mov rcx, rsi
call fcn.140060c18
cmp al, bl
je 0x14001d907
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001c340
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14005a730
mov qword [rsp + 0x358], rax
jmp 0x14001d9de
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 0x14001d9cb
lea esi, [rax + 2]
cmp dword [rsp + 0x348], eax
je 0x14001d945
or qword [r12], rsi
jmp 0x14001d967
lea rdx, [rsp + 0x358]
mov rcx, rbx
call qword [0x14011ad68]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rbx, qword [rsp + 0x358]
mov qword [rsp + 0x358], rbx
xor ebx, ebx
cmp r13, rbx
je 0x14001d9bb
cmp qword [rsp + 0x358], rbx
jne 0x14001d9bb
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.14001caec
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14005a730
mov qword [rsp + 0x358], rax
cmp rax, rbx
jne 0x14001d9de
cmp r14, rbx
je 0x14001d9de
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001d9de
lea rdx, [rsp + 0x358]
mov rcx, rsi
call qword [0x14011ace0]
xor ebx, ebx
cmp r15, rbx
je 0x14001d9ec
mov eax, 0x7c
mov word [r15], ax
mov rbx, qword [rsp + 0x358]
lea rcx, [rsp + 0x50]
call fcn.140054110
lea rcx, [rsp + 0x48]
call fcn.140054110
mov rax, rbx
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret