Function at 0x14001ea84
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x310
mov r9, qword [0x140131d88]
mov r12, rdx
mov rsi, rcx
cmp r9, 0xffffffffffffffff
jne 0x14001eab5
xor eax, eax
jmp 0x14001f402
xor ebx, ebx
mov ebp, 1
cmp rdx, rbx
je 0x14001eae4
test byte [rdx], 0x10
je 0x14001eae4
mov rax, qword [rdx + 8]
mov dword [rsp + 0x368], ebp
mov qword [rsp + 0x78], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x80], rax
jmp 0x14001eaf8
mov dword [rsp + 0x368], ebx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov r13d, 0x2e
cmp r9, rbx
jne 0x14001f022
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov rbx, rax
cmp rax, rdi
jne 0x14001ec6e
lea rcx, [rsp + 0x90]
lea rdx, str._SystemRoot_WinSxS
lea r8d, [r13 - 2]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
call fcn.1400f93b0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x90]
lea rcx, [0x1401320e0]
xor r9d, r9d
mov byte [rsp + 0x20], bpl
call fcn.140078800
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.1400f7af4
cmp rax, rdi
je 0x14001ec37
mov rcx, qword [rsp + 0x38]
lea r8d, [r13 + 0x2e]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
je 0x14001eb9e
mov word [rax], di
cmp word [rsp + 0xec], r13w
je 0x14001ec1c
test byte [rsp + 0xc0], 0x10
je 0x14001ec1c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0xec]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rcx + rbx + 0x1e]
lea rcx, [rsp + 0x58]
call fcn.140061694
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0xec]
lea rdx, str._s_sGdiPlus.dll
call fcn.140016b7c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x58]
mov rbx, rax
call fcn.140058efc
cmp rbx, rdi
jne 0x14001ec37
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x14001eb9e
lea rcx, [rsp + 0x38]
call fcn.140058efc
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x14001ec57
cmp rcx, 0xffffffffffffffff
je 0x14001ec57
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x40], rdi
cmp rbx, rdi
jne 0x14001ec6e
or qword [0x140131d88], 0xffffffffffffffff
jmp 0x14001eaae
lea rdx, str.GdiplusShutdown
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromFile
mov rcx, rbx
mov qword [0x140131d90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
mov rcx, rbx
mov qword [0x140131da8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateFromHDC
mov rcx, rbx
mov qword [0x140131d98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectI
mov rcx, rbx
mov qword [0x140131e28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov rcx, rbx
mov qword [0x140131da0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [0x140131df0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSaveImageToFile
mov rcx, rbx
mov qword [0x140131df8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncodersSize
mov rcx, rbx
mov qword [0x140131e00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageEncoders
mov rcx, rbx
mov qword [0x140131dc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageI
mov rcx, rbx
mov qword [0x140131dc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageWidth
mov rcx, rbx
mov qword [0x140131e08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageHeight
mov rcx, rbx
mov qword [0x140131e10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDrawImageRectRectI
mov rcx, rbx
mov qword [0x140131e18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDeleteGraphics
mov rcx, rbx
mov qword [0x140131e20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetInterpolationMode
mov rcx, rbx
mov qword [0x140131e30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetPixelOffsetMode
mov rcx, rbx
mov qword [0x140131e38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetSmoothingMode
mov rcx, rbx
mov qword [0x140131e40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipLoadImageFromStream
mov rcx, rbx
mov qword [0x140131e48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageType
mov rcx, rbx
mov qword [0x140131e50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromHICON
mov qword [0x140131e58], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageDimension
mov rcx, rbx
mov qword [0x140131e70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHICONFromBitmap
mov rcx, rbx
mov qword [0x140131e78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipSetTextRenderingHint
mov rcx, rbx
mov qword [0x140131e60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageGetFrameDimensionsList
mov rcx, rbx
mov qword [0x140131e68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageSelectActiveFrame
mov rcx, rbx
mov qword [0x140131db0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageGetFrameDimensionsCount
mov rcx, rbx
mov qword [0x140131db8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipImageGetFrameCount
mov rcx, rbx
mov qword [0x140131dd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetPropertyItemSize
mov rcx, rbx
mov qword [0x140131dd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetPropertyItem
mov rcx, rbx
mov qword [0x140131de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipBitmapLockBits
mov rcx, rbx
mov qword [0x140131de8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipBitmapUnlockBits
mov rcx, rbx
mov qword [0x140131e80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromScan0
mov rcx, rbx
mov qword [0x140131e88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromResource
mov rcx, rbx
mov qword [0x140131e90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCloneBitmapAreaI
mov rcx, rbx
mov qword [0x140131e98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipGetImageGraphicsContext
mov rcx, rbx
mov qword [0x140131ea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipScaleWorldTransform
mov rcx, rbx
mov qword [0x140131ea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateTexture
mov rcx, rbx
mov qword [0x140131eb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDeleteBrush
mov rcx, rbx
mov qword [0x140131eb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipFillRectangle
mov rcx, rbx
mov qword [0x140131ec0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusStartup
mov qword [0x140131ec8], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r9, rax
mov qword [0x140131d88], rax
mov rax, qword [0x140131f98]
cmp rax, rbx
jne 0x14001f06c
cmp qword [0x140131da8], rbx
je 0x14001f06c
xor eax, eax
lea rdx, [rsp + 0x90]
lea rcx, [0x140131f98]
xor r8d, r8d
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
call r9
mov rax, qword [0x140131f98]
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffe
jae 0x14001f402
lea rax, [rsi + 2]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbx
mov r13, rbx
mov r14, rbx
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x360], ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
call fcn.140065d1c
mov edx, 0x7c
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, rbx
je 0x14001f0db
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 ecx, 0x23
mov rbp, rax
mov rax, qword [0x140131da8]
cmp cx, word [rsi]
je 0x14001f114
cmp rdi, rbx
jne 0x14001f10f
cmp rax, rbx
jne 0x14001f292
cmp cx, word [rsi]
jne 0x14001f125
mov r13, qword [0x140131f48]
mov rbp, rsi
mov esi, 2
jmp 0x14001f18d
cmp rbp, rbx
je 0x14001f289
movzx ebx, word [rbp]
xor eax, eax
mov rcx, rsi
mov word [rbp], ax
call fcn.14001b5a4
mov esi, 2
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov word [rbp], bx
xor ebx, ebx
mov r14, rax
mov r13, rax
cmp rdi, rbx
je 0x14001f16f
mov r8, rdi
sub r8, rbp
sar r8, 1
jmp 0x14001f17b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rcx, [rsp + 0x48]
mov rdx, rbp
call fcn.140061888
mov rbp, qword [rsp + 0x48]
cmp rdi, rbx
je 0x14001f337
add rdi, rsi
je 0x14001f337
movzx eax, word [rdi]
neg ax
sbb rcx, rcx
and rcx, rdi
mov rdi, rcx
cmp rcx, rbx
je 0x14001f337
call fcn.14005b5cc
cmp al, bl
je 0x14001f1f9
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 0x14001f1f2
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call qword [0x140131df0]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
xor ebx, ebx
jmp 0x14001f337
mov rcx, rdi
call fcn.14005b58c
cmp al, bl
je 0x14001f217
mov edi, 3
mov dword [rsp + 0x360], 0x14
jmp 0x14001f233
mov rcx, rdi
call fcn.14005b538
cmp al, bl
je 0x14001f337
mov edi, 0xe
mov dword [rsp + 0x360], esi
mov r9d, dword [rsp + 0x80]
mov r8d, dword [rsp + 0x78]
lea rax, [rsp + 0x360]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x20], rbx
call fcn.14007069c
bt dword [rsp + 0x360], 8
mov rbx, rax
jae 0x14001f30a
mov qword [rsp + 0x30], rax
xor eax, eax
cmp rbx, rax
je 0x14001f330
or qword [r12], 4
jmp 0x14001f325
cmp rax, rbx
je 0x14001f3d8
mov rcx, rsi
call fcn.1400666a0
cmp al, bl
je 0x14001f2c7
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14001daf4
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
call fcn.14005fa08
mov qword [rsp + 0x30], rax
jmp 0x14001f3d8
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 0x14001f38e
lea esi, [rax + 2]
cmp dword [rsp + 0x368], eax
je 0x14001f30e
or qword [r12], rsi
mov qword [rsp + 0x30], rbx
jmp 0x14001f325
xor eax, eax
jmp 0x14001f2f6
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [0x140131e70]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyIcon]
xor ebx, ebx
cmp qword [rsp + 0x30], rbx
jne 0x14001f337
jmp 0x14001f332
xor ebx, ebx
mov qword [rsp + 0x30], rbx
cmp r13, rbx
je 0x14001f37e
cmp qword [rsp + 0x30], rbx
jne 0x14001f37e
cmp rdi, rbx
lea r9, [rsp + 0x60]
mov rdx, rbp
cmove rdi, rsi
mov rcx, r13
mov qword [rsp + 0x20], rbx
mov r8, rdi
call fcn.14001e2c8
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
call fcn.14005fa08
mov qword [rsp + 0x30], rax
cmp rax, rbx
jne 0x14001f3d8
cmp r14, rbx
je 0x14001f3d8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001f3d8
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [0x140131da8]
xor ebx, ebx
cmp qword [rsp + 0x30], rbx
je 0x14001f3d8
cmp r12, rbx
je 0x14001f3d8
lea r8d, [rbx + 0x2e]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rbx
je 0x14001f3d8
lea rcx, [rax + 2]
lea rdx, [0x140115aa8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14001f3d8
or qword [r12], 4
cmp r15, rbx
je 0x14001f3e6
mov eax, 0x7c
mov word [r15], ax
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140058efc
lea rcx, [rsp + 0x48]
call fcn.140058efc
mov rax, rbx
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret