Function at 0x14001d064
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 0x14001d0aa
test byte [rdx], 0x10
je 0x14001d0aa
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 0x14001d0bb
mov dword [rsp + 0x348], ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbx
mov r9, qword [0x140119cb8]
cmp r9, rbx
jne 0x14001d434
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov rbx, rax
cmp rax, rdi
jne 0x14001d207
lea r8, [rsp + 0x30]
lea rdx, str._SystemRoot_WinSxS
lea rcx, [0x140119fa0]
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], bpl
call fcn.14007059c
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400de778
cmp rax, rdi
je 0x14001d1e2
mov rcx, qword [rsp + 0x30]
lea r8d, [rdi + 0x5c]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001d149
mov word [rax], di
cmp word [rsp + 0xcc], 0x2e
je 0x14001d1c7
test byte [rsp + 0xa0], 0x10
je 0x14001d1c7
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.14005bce8
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0xcc]
lea rdx, str._s_sGdiPlus.dll
call fcn.1400156dc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140053e80
cmp rbx, rdi
jne 0x14001d1e2
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001d149
lea rcx, [rsp + 0x30]
call fcn.140053e80
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x14001d202
cmp rcx, 0xffffffffffffffff
je 0x14001d202
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 [0x140119cc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x140119ce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x140119cc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x140119cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x140119cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x140119cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x140119d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x140119d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x140119ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x140119cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x140119d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x140119d18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x140119d20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x140119d28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x140119d30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetPixelOffsetMode
mov rcx, rbx
mov qword [0x140119d38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetSmoothingMode
mov rcx, rbx
mov qword [0x140119d40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromStream
mov rcx, rbx
mov qword [0x140119d48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageType
mov rcx, rbx
mov qword [0x140119d50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHICON
mov qword [0x140119d58], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageDimension
mov rcx, rbx
mov qword [0x140119d68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHICONFromBitmap
mov rcx, rbx
mov qword [0x140119d70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov rcx, rbx
mov qword [0x140119d60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r9, rax
mov qword [0x140119cb8], rax
mov rax, qword [0x140119e40]
cmp rax, rbx
jne 0x14001d47e
cmp qword [0x140119ce0], rbx
je 0x14001d47e
xor eax, eax
lea rdx, [rsp + 0x80]
lea rcx, [0x140119e40]
xor r8d, r8d
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
call r9
mov rax, qword [0x140119e40]
cmp rsi, 0xffffffffffffffff
je 0x14001d7cb
cmp rsi, rbx
jne 0x14001d494
xor eax, eax
jmp 0x14001d7cb
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.14005ffb0
mov edx, 0x7c
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, rbx
je 0x14001d4f8
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 [0x140119ce0]
cmp rdi, rbx
jne 0x14001d522
cmp rax, rbx
jne 0x14001d692
mov ecx, 0x23
cmp cx, word [rsi]
jne 0x14001d538
mov r13, qword [0x140119df0]
mov rbp, rsi
jmp 0x14001d594
cmp rbp, rbx
je 0x14001d689
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 0x14001d576
mov r8, rdi
sub r8, rbp
sar r8, 1
jmp 0x14001d582
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rcx, [rsp + 0x48]
mov rdx, rbp
call fcn.14005bedc
mov rbp, qword [rsp + 0x48]
mov esi, 2
cmp rdi, rbx
je 0x14001d731
add rdi, rsi
je 0x14001d731
lea rcx, str.Bitmap
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001d5fd
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 0x14001d72f
lea r8, [rsp + 0x358]
xor edx, edx
mov rcx, rbx
call qword [0x140119cf8]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x14001d72f
lea rcx, str.ICON
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001d623
mov edi, 3
mov dword [rsp + 0x340], 4
jmp 0x14001d65b
lea rcx, str.ICON_GROUP
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
je 0x14001d64f
lea rcx, str.ICONGROUP
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001d731
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.140069b4c
mov rbx, rax
xor eax, eax
jmp 0x14001d6f6
cmp rax, rbx
je 0x14001d79e
mov rcx, rsi
call fcn.140060934
cmp al, bl
je 0x14001d6c7
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001c124
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14005a4a0
mov qword [rsp + 0x358], rax
jmp 0x14001d79e
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 0x14001d78b
lea esi, [rax + 2]
cmp dword [rsp + 0x348], eax
je 0x14001d705
or qword [r12], rsi
jmp 0x14001d727
lea rdx, [rsp + 0x358]
mov rcx, rbx
call qword [0x140119d68]
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 0x14001d77b
cmp qword [rsp + 0x358], rbx
jne 0x14001d77b
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.14001c8ac
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14005a4a0
mov qword [rsp + 0x358], rax
cmp rax, rbx
jne 0x14001d79e
cmp r14, rbx
je 0x14001d79e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001d79e
lea rdx, [rsp + 0x358]
mov rcx, rsi
call qword [0x140119ce0]
xor ebx, ebx
cmp r15, rbx
je 0x14001d7ac
mov eax, 0x7c
mov word [r15], ax
mov rbx, qword [rsp + 0x358]
lea rcx, [rsp + 0x50]
call fcn.140053e80
lea rcx, [rsp + 0x48]
call fcn.140053e80
mov rax, rbx
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret