Function at 0x415984
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov ecx, dword [0x4dbec8]
cmp ecx, 0xffffffff
jne 0x41599c
xor eax, eax
leave
ret
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x4159c0
test byte [eax], 0x10
je 0x4159c0
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
jmp 0x4159c9
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
cmp ecx, edi
push ebx
push esi
jne 0x415cf5
push str.GdiPlus.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
jne 0x415ad7
push 0xb
pop ecx
push 1
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
push eax
mov esi, str._SystemRoot_WinSxS
lea edi, [ebp - 0x74]
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x4dc0f8
call fcn.00456647
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call fcn.004ad1e9
add esp, 0xc
test eax, eax
je 0x415ab3
push dword [ebp - 4]
call fcn.00410152
pop ecx
cmp word [ebp - 0x298], 0x2e
je 0x415aa0
test byte [ebp - 0x2c4], 0x10
je 0x415aa0
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov edi, eax
lea eax, [ebp - 0x298]
push eax
call esi
lea eax, [eax + edi + 0x1e]
push eax
lea ecx, [ebp - 0xc]
call fcn.00444e50
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 4]
push str._s_sGdiPlus.dll
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.0043e679
test ebx, ebx
jne 0x415ab3
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405c60
test eax, eax
jne 0x415a38
lea ecx, [ebp - 4]
call fcn.0043e679
lea ecx, [ebp - 0x10]
call fcn.00402ce5
test ebx, ebx
jne 0x415ad5
or dword [0x4dbec8], 0xffffffff
xor eax, eax
jmp 0x415feb
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusShutdown
push ebx
call esi
push str.GdipLoadImageFromFile
push ebx
mov dword [0x4dbecc], eax
call esi
push str.GdipDisposeImage
push ebx
mov dword [0x4dbed8], eax
call esi
push str.GdipCreateFromHDC
push ebx
mov dword [0x4dbed0], eax
call esi
push str.GdipDrawImageRectI
push ebx
mov dword [0x4dbf18], eax
call esi
push str.GdipCreateBitmapFromHBITMAP
push ebx
mov dword [0x4dbed4], eax
call esi
push str.GdipCreateHBITMAPFromBitmap
push ebx
mov dword [0x4dbefc], eax
call esi
push str.GdipSaveImageToFile
push ebx
mov dword [0x4dbf00], eax
call esi
push str.GdipGetImageEncodersSize
push ebx
mov dword [0x4dbf04], eax
call esi
push str.GdipGetImageEncoders
push ebx
mov dword [0x4dbee4], eax
call esi
push str.GdipDrawImageI
push ebx
mov dword [0x4dbee8], eax
call esi
push str.GdipGetImageWidth
push ebx
mov dword [0x4dbf08], eax
call esi
push str.GdipGetImageHeight
push ebx
mov dword [0x4dbf0c], eax
call esi
push str.GdipDrawImageRectRectI
push ebx
mov dword [0x4dbf10], eax
call esi
push str.GdipDeleteGraphics
push ebx
mov dword [0x4dbf14], eax
call esi
push str.GdipSetInterpolationMode
push ebx
mov dword [0x4dbf1c], eax
call esi
push str.GdipSetPixelOffsetMode
push ebx
mov dword [0x4dbf20], eax
call esi
push str.GdipSetSmoothingMode
push ebx
mov dword [0x4dbf24], eax
call esi
push str.GdipLoadImageFromStream
push ebx
mov dword [0x4dbf28], eax
call esi
push str.GdipGetImageType
push ebx
mov dword [0x4dbf2c], eax
call esi
mov dword [0x4dbf30], eax
push str.GdipCreateBitmapFromHICON
push ebx
call esi
push str.GdipGetImageDimension
push ebx
mov dword [0x4dbf3c], eax
call esi
push str.GdipCreateHICONFromBitmap
push ebx
mov dword [0x4dbf40], eax
call esi
push str.GdipSetTextRenderingHint
push ebx
mov dword [0x4dbf34], eax
call esi
push str.GdipImageGetFrameDimensionsList
push ebx
mov dword [0x4dbf38], eax
call esi
push str.GdipImageSelectActiveFrame
push ebx
mov dword [0x4dbedc], eax
call esi
push str.GdipImageGetFrameDimensionsCount
push ebx
mov dword [0x4dbee0], eax
call esi
push str.GdipImageGetFrameCount
push ebx
mov dword [0x4dbeec], eax
call esi
push str.GdipGetPropertyItemSize
push ebx
mov dword [0x4dbef0], eax
call esi
push str.GdipGetPropertyItem
push ebx
mov dword [0x4dbef4], eax
call esi
push str.GdipBitmapLockBits
push ebx
mov dword [0x4dbef8], eax
call esi
push str.GdipBitmapUnlockBits
push ebx
mov dword [0x4dbf44], eax
call esi
push str.GdipCreateBitmapFromScan0
push ebx
mov dword [0x4dbf48], eax
call esi
push str.GdipCreateBitmapFromResource
push ebx
mov dword [0x4dbf4c], eax
call esi
push str.GdipCloneBitmapAreaI
push ebx
mov dword [0x4dbf50], eax
call esi
push str.GdipGetImageGraphicsContext
push ebx
mov dword [0x4dbf54], eax
call esi
push str.GdipScaleWorldTransform
push ebx
mov dword [0x4dbf58], eax
call esi
push str.GdipCreateTexture
push ebx
mov dword [0x4dbf5c], eax
call esi
push str.GdipDeleteBrush
push ebx
mov dword [0x4dbf60], eax
call esi
push str.GdipFillRectangle
push ebx
mov dword [0x4dbf64], eax
call esi
mov dword [0x4dbf68], eax
push str.GdiplusStartup
push ebx
call esi
mov ecx, eax
mov dword [0x4dbec8], ecx
cmp dword [0x4dbfec], edi
jne 0x415d23
cmp dword [0x4dbed8], edi
je 0x415d23
xor eax, eax
mov dword [ebp - 0x48], 1
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x48]
push eax
push 0x4dbfec
call ecx
xor edi, edi
mov esi, dword [ebp + 8]
lea eax, [esi - 1]
cmp eax, 0xfffffffe
jb 0x415d38
mov eax, dword [0x4dbfec]
jmp 0x415feb
push 0x7c
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x415d63
mov word [eax], di
push 0x23
push edi
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ecx, dword [0x4dbed8]
mov ebx, eax
mov ax, word [esi]
cmp ax, 0x23
je 0x415d94
cmp dword [ebp - 4], edi
jne 0x415d8e
cmp ecx, edi
jne 0x415ed5
cmp ax, 0x23
jne 0x415db1
push 0x23
mov ebx, esi
call fcn.004ab8fe
add esp, 4
test al, al
jne 0x415da7
lea ebx, [esi + 2]
mov eax, dword [0x4dbfb0]
mov dword [ebp - 0xc], eax
jmp 0x415e02
cmp ebx, edi
je 0x415ecd
mov ax, word [ebx]
push 2
push edi
push esi
mov word [ebp - 0x18], ax
mov word [ebx], di
call fcn.0041310a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov ax, word [ebp - 0x18]
mov word [ebx], ax
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x415dee
sub eax, ebx
sar eax, 1
jmp 0x415df5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00444f56
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 4], edi
je 0x415f42
push 2
pop esi
add dword [ebp - 4], esi
je 0x415f42
mov eax, dword [ebp - 4]
cmp word [eax], di
jne 0x415e22
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x415f42
push dword [ebp - 4]
call fcn.00440733
test al, al
pop ecx
je 0x415e67
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov esi, eax
cmp esi, edi
je 0x415f42
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [0x4dbefc]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x415f42
push dword [ebp - 4]
call fcn.00440706
test al, al
pop ecx
je 0x415e84
mov dword [ebp - 4], 3
mov dword [ebp - 0x14], 0x14
jmp 0x415e9f
push dword [ebp - 4]
call fcn.004406c7
test al, al
pop ecx
je 0x415f42
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0xc]
call fcn.00451111
add esp, 0x18
test byte [ebp - 0x13], 1
mov esi, eax
je 0x415f18
cmp esi, edi
mov dword [ebp - 8], esi
je 0x415f3f
mov eax, dword [ebp + 0xc]
or dword [eax], 4
jmp 0x415f3a
cmp ecx, edi
je 0x415fca
push esi
call fcn.00448f61
test al, al
pop ecx
je 0x415f01
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00414d70
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00443aaf
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x415fca
push 0x10
push edi
push edi
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x415f8f
mov esi, eax
cmp dword [ebp - 0x30], edi
je 0x415f28
mov eax, dword [ebp + 0xc]
or dword [eax], 2
mov dword [ebp - 8], esi
jmp 0x415f3a
lea eax, [ebp - 8]
push eax
push esi
call dword [0x4dbf3c]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp dword [ebp - 8], edi
jne 0x415f42
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x415f7f
cmp dword [ebp - 8], edi
jne 0x415f7f
cmp dword [ebp - 4], edi
jne 0x415f58
mov dword [ebp - 4], 2
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
call fcn.004153c9
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00443aaf
add esp, 0x20
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x415fca
cmp dword [ebp - 0x10], edi
je 0x415fca
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x415fca
lea eax, [ebp - 8]
push eax
push esi
call dword [0x4dbed8]
cmp dword [ebp - 8], edi
je 0x415fca
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x415fca
push 0x2e
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, edi
je 0x415fca
push 0x4c3b50
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x415fca
or dword [ebx], 4
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x415fd6
mov word [eax], 0x7c
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x28]
call fcn.0043e679
lea ecx, [ebp - 0x1c]
call fcn.0043e679
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret